Self-hosted, Self-Improving, Federated Everything App — dev management, agent orchestration, persistent mind, digital twin, second brain, and creative pipeline from a single dashboard over Tailscale to port the user into the OS
JavaScript ai-agentsdashboarddeveloper-toolsdigital-twinquantified-selfsecond-brainself-hostedtailscale
refactor: remove retired FableLoom polling wrappers (#8544)
[._.]/ Adam Eivy8f712c7c7571
diff --git a/client/src/components/fableloom/LoomEditorialAutomation.test.jsx b/client/src/components/fableloom/LoomEditorialAutomation.test.jsxindex badf480f56..825ae7b98e 100644--- a/client/src/components/fableloom/LoomEditorialAutomation.test.jsx+++ b/client/src/components/fableloom/LoomEditorialAutomation.test.jsx@@ -6,7 +6,6 @@ import { MemoryRouter } from 'react-router';vi.mock('../../services/api', () => ({cancelLoomEditorialAutopilot: vi.fn(),getLoom: vi.fn(),- getLoomEditorialAutopilotRun: vi.fn(),getLoomEditorialAutopilotStatus: vi.fn(),getProviders: vi.fn(),remediateLoomEditorial: vi.fn(),@@ -265,7 +264,6 @@ it('renders snapshots without timer reads and reconciles reconnect/reshow once',await act(async () => { await vi.advanceTimersByTimeAsync(10000); });vi.useRealTimers();expect(api.getLoomEditorialAutopilotStatus).toHaveBeenCalledTimes(1);- expect(api.getLoomEditorialAutopilotRun).not.toHaveBeenCalled();await act(async () => editorialEvent(editorialRun({ revision: 2, message: 'Reviewer running' })));expect(screen.getAllByText('Reviewer running')[0]).toBeInTheDocument();await act(async () => editorialEvent(editorialRun({ loomId: 'other', revision: 3, message: 'Wrong loom' })));diff --git a/client/src/components/fableloom/LoomProductionPanel.test.jsx b/client/src/components/fableloom/LoomProductionPanel.test.jsxindex e689508473..51a3ff6f69 100644--- a/client/src/components/fableloom/LoomProductionPanel.test.jsx+++ b/client/src/components/fableloom/LoomProductionPanel.test.jsx@@ -225,7 +225,6 @@ describe('LoomProductionPanel', () => {await act(async () => { await vi.advanceTimersByTimeAsync(10000); });vi.useRealTimers();expect(api.getLoomEpisodeProductionBatchStatus).toHaveBeenCalledTimes(1);- expect(api.getLoomEpisodeProductionBatch).not.toHaveBeenCalled();expect(api.planLoomEpisodeProduction).toHaveBeenCalledTimes(1);await act(async () => emit({ ...run, episodeId: 'other', status: 'completed', revision: 2 }));expect(api.planLoomEpisodeProduction).toHaveBeenCalledTimes(1);diff --git a/client/src/hooks/README.md b/client/src/hooks/README.mdindex 666183cfb1..8c61c64fd3 100644--- a/client/src/hooks/README.md+++ b/client/src/hooks/README.md@@ -90,7 +90,6 @@ grep -i "what you want to do" client/src/hooks/README.md| `useProcessSnapshot` | PM2 snapshots from entry reads and server pushes, with reconnect/reshow recovery and stale-read protection. | Process lists and native-launch panels; pass an app id for custom PM2 homes. || `useCosTaskUpdates` | Shared five-event CoS task lifecycle subscription; re-subscribes on socket reconnect and forwards normalized task updates to the current callback. | A CoS task surface with its own task-status reducer. || `useSocketResource` | Initial resource read plus global/room-event, reconnect and tab-show reconciliation; single-flight reads, identity guards and immediate mutation updates. | Views replacing content polls with existing socket invalidations. |-| `useSocketResource` | Initial resource read plus room/broadcast event, reconnect and tab-show reconciliation; single-flight reads, identity guards and immediate mutation updates. | Views replacing content polls with existing socket invalidations. || `useFableLoomRun` | Revisioned editorial/production snapshots, identity-safe mutation replies and entry/reconnect/reshow recovery. | FableLoom run views. || `useSocketSubscription` | Refcounted `<namespace>:subscribe`/`unsubscribe` for a `registerSubscriber` room: the first mounted consumer subscribes and re-emits on every socket reconnect, the last to unmount unsubscribes, and `onResubscribe` refetches whatever a consumer may have missed while disconnected. | Any hook/page that emits a literal `<ns>:subscribe` for `cos`/`errors`/`notifications`/`agents`/`instances`/`loops`/`beeper` — don't hand-roll the reconnect dance; `client/src/socketSubscriptionConventions.test.js` enforces this. || `useAccountSyncStatus` | Per-account busy/auth state and deduplicated HTTP/socket sync outcomes. | Calendar and Messages sync controls. |diff --git a/client/src/services/apiFableLoom.js b/client/src/services/apiFableLoom.jsindex 58756e1d69..370b9c34ca 100644--- a/client/src/services/apiFableLoom.js+++ b/client/src/services/apiFableLoom.js@@ -48,8 +48,6 @@ export const startLoomEditorialAutopilot = (id, body = {}, options = {}) =>});export const getLoomEditorialAutopilotStatus = (id, options = {}) =>request(loomPath(id, '/editorial/autopilot/status'), options);-export const getLoomEditorialAutopilotRun = (id, runId, options = {}) =>- request(loomPath(id, `/editorial/autopilot/${encodeURIComponent(runId)}`), options);export const cancelLoomEditorialAutopilot = (id, runId, options = {}) =>request(loomPath(id, `/editorial/autopilot/${encodeURIComponent(runId)}/cancel`), {method: 'POST', body: JSON.stringify({}), ...options,@@ -173,9 +171,6 @@ export const startLoomEpisodeProductionBatch = (id, episodeId, body = {}, optionexport const getLoomEpisodeProductionBatchStatus = (id, episodeId, options = {}) =>request(episodePath(id, episodeId, '/production/batch'), options);-export const getLoomEpisodeProductionBatch = (id, episodeId, runId, options = {}) =>- request(episodePath(id, episodeId, `/production/batch/${encodeURIComponent(runId)}`), options);-export const cancelLoomEpisodeProductionBatch = (id, episodeId, runId, options = {}) =>request(episodePath(id, episodeId, `/production/batch/${encodeURIComponent(runId)}/cancel`), {method: 'POST', body: JSON.stringify({}), ...options,diff --git a/client/src/services/apiFableLoom.test.js b/client/src/services/apiFableLoom.test.jsindex ecda093625..73b274aba4 100644--- a/client/src/services/apiFableLoom.test.js+++ b/client/src/services/apiFableLoom.test.js@@ -94,9 +94,6 @@ describe('apiFableLoom', () => {await api.getLoomEditorialAutopilotStatus('loom-1', { silent: true });expect(request).toHaveBeenCalledWith('/fableloom/loom-1/editorial/autopilot/status', { silent: true });- await api.getLoomEditorialAutopilotRun('loom-1', 'run/1', { silent: true });- expect(request).toHaveBeenCalledWith('/fableloom/loom-1/editorial/autopilot/run%2F1', { silent: true });-await api.cancelLoomEditorialAutopilot('loom-1', 'run-1');expect(request).toHaveBeenCalledWith('/fableloom/loom-1/editorial/autopilot/run-1/cancel', {method: 'POST', body: JSON.stringify({}),@@ -169,8 +166,8 @@ describe('apiFableLoom', () => {body: JSON.stringify({ mode: 'exact_inputs' }),});- await api.getLoomEpisodeProductionBatch('loom-1', 'ep-1', 'batch-1', { silent: true });- expect(request).toHaveBeenCalledWith('/fableloom/loom-1/episodes/ep-1/production/batch/batch-1', { silent: true });+ await api.getLoomEpisodeProductionBatchStatus('loom-1', 'ep-1', { silent: true });+ expect(request).toHaveBeenCalledWith('/fableloom/loom-1/episodes/ep-1/production/batch', { silent: true });await api.cancelLoomEpisodeProductionBatch('loom-1', 'ep-1', 'batch-1');expect(request).toHaveBeenCalledWith('/fableloom/loom-1/episodes/ep-1/production/batch/batch-1/cancel', {