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: silence double-toasts in manuscript fixes + local-llm status (#2669)
[._.]/ Adam Eivybad82091ae0e
diff --git a/.changelog/NEXT.md b/.changelog/NEXT.mdindex 1fd1c83eda..965ee18e9e 100644--- a/.changelog/NEXT.md+++ b/.changelog/NEXT.md@@ -24,6 +24,8 @@- [issue-2669] **MeatSpace health forms no longer double-toast on failure.** Saving a genome marker note, or adding/editing a custom drink or custom nicotine product, showed two stacked error toasts when the request failed — once from the API helper and once from the form's own catch. These five sites now suppress the helper toast so a single error is shown.+- [issue-2669] **Manuscript editorial fixes and the Local LLM status load no longer double-toast on failure.** Generating or accepting a suggested manuscript fix, and loading the Local LLM settings status, each stacked two error toasts on failure — once from the API helper and once from the caller's own error handler. These three sites now suppress the helper toast so a single error is shown.+- **Clicking a Creative Commission now opens its own page showing every render it has made.** A commission used to open a sidebar edit form; it now navigates to a routed detail page (`/creative-commission/:id`) that leads with a gallery of every render the commission has produced — each run's final video (with an inline play badge), rendered scene, or produced image, newest first — above the full editable brief/schedule/generation config. Rate a render 👍/👎 and add a note right on its card to steer the next run, run the commission now, pause it, or delete it from the header. The render, its Creative Director output, and the open commission are all directly shareable and bookmarkable (the URL is the source of truth), and a notification about a scheduled run deep-links straight to the render. Creating a new commission still uses the quick "New Commission" drawer on the index; a run whose project was pruned degrades to a status-only card with its output link intact.- [issue-2702] **The Creative Director now shows you what it made.** Project cards on `/creative-director` lead with a preview of the produced media — the final video's poster with a play badge (click the artwork to open the project, the badge to play it inline), a rendered scene, or a produced image from a directive plan — falling back to a tidy "no render yet" placeholder instead of a wall of text. The Overview tab renders the final cut inline instead of showing only a job id, keeping the Media History link alongside it; plans that emit images show the image. Previews respect each project's aspect ratio (16:9 / 9:16 / 1:1), and the grid never downloads a video until you actually press play.diff --git a/client/src/components/pipeline/manuscript/ManuscriptCommentCard.jsx b/client/src/components/pipeline/manuscript/ManuscriptCommentCard.jsxindex 2314b79203..a43edbb1c8 100644--- a/client/src/components/pipeline/manuscript/ManuscriptCommentCard.jsx+++ b/client/src/components/pipeline/manuscript/ManuscriptCommentCard.jsx@@ -244,11 +244,11 @@ export default function ManuscriptCommentCard({onDraftChange({ fixKey, drafts: editDrafts, selected: typeof updater === 'function' ? updater(selectedEdits) : updater });const [runGenerate, generating] = useAsyncAction(- () => generatePipelineManuscriptFix(seriesId, comment.id, { providerOverride, modelOverride }),+ () => generatePipelineManuscriptFix(seriesId, comment.id, { providerOverride, modelOverride }, { silent: true }),{ errorMessage: 'Failed to generate fix' },);const [runAccept, accepting] = useAsyncAction(- (selected) => acceptPipelineManuscriptFix(seriesId, comment.id, { edits: selected }),+ (selected) => acceptPipelineManuscriptFix(seriesId, comment.id, { edits: selected }, { silent: true }),{ errorMessage: 'Failed to apply fix' },);diff --git a/client/src/components/pipeline/manuscript/ManuscriptCommentCard.test.jsx b/client/src/components/pipeline/manuscript/ManuscriptCommentCard.test.jsxindex 38e31d77e5..03839d35b7 100644--- a/client/src/components/pipeline/manuscript/ManuscriptCommentCard.test.jsx+++ b/client/src/components/pipeline/manuscript/ManuscriptCommentCard.test.jsx@@ -75,7 +75,7 @@ describe('ManuscriptCommentCard keyboard shortcuts (#1603)', () => {generatePipelineManuscriptFix.mockResolvedValue({ comment: baseComment });renderCard();pressKey('g');- expect(generatePipelineManuscriptFix).toHaveBeenCalledWith('ser-1', 'c1', expect.any(Object));+ expect(generatePipelineManuscriptFix).toHaveBeenCalledWith('ser-1', 'c1', expect.any(Object), { silent: true });await settle();});@@ -117,7 +117,7 @@ describe('ManuscriptCommentCard keyboard shortcuts (#1603)', () => {pressKey('a');expect(acceptPipelineManuscriptFix).toHaveBeenCalledWith('ser-1', 'c1', expect.objectContaining({edits: expect.arrayContaining([expect.objectContaining({ replace: 'new text' })]),- }));+ }), { silent: true });await settle();});@@ -214,7 +214,7 @@ describe('ManuscriptCommentCard — manual edit path (#1610)', () => {await waitFor(() => expect(acceptPipelineManuscriptFix).toHaveBeenCalledWith('ser-1', 'c1', {edits: [{ issueId: 'iss-1', stageId: 'script', issueNumber: 5, find: 'the muddled span', replace: 'the clear span' }],- }));+ }, { silent: true }));await waitFor(() => expect(onAccepted).toHaveBeenCalled());});diff --git a/client/src/components/settings/LocalLlmTab.jsx b/client/src/components/settings/LocalLlmTab.jsxindex 980db406ee..b7e95bab9d 100644--- a/client/src/components/settings/LocalLlmTab.jsx+++ b/client/src/components/settings/LocalLlmTab.jsx@@ -286,7 +286,7 @@ export function LocalLlmTab() {const loadStatus = useCallback(() => {const requestId = ++statusRequestId.current;setLoading(true);- return getLocalLlmStatus()+ return getLocalLlmStatus({ silent: true }).then((s) => {if (requestId !== statusRequestId.current) return;setStatus(s);diff --git a/client/src/pages/PipelineManuscriptEditor.test.jsx b/client/src/pages/PipelineManuscriptEditor.test.jsxindex bce91e90de..2d4a21b109 100644--- a/client/src/pages/PipelineManuscriptEditor.test.jsx+++ b/client/src/pages/PipelineManuscriptEditor.test.jsx@@ -133,7 +133,7 @@ describe('PipelineManuscriptEditor', () => {fireEvent.click(await screen.findByText('Generate fix'));expect(await screen.findByDisplayValue('She left, but paused.')).toBeInTheDocument();- expect(api.generatePipelineManuscriptFix).toHaveBeenCalledWith('ser-1', 'mrc-1', expect.any(Object));+ expect(api.generatePipelineManuscriptFix).toHaveBeenCalledWith('ser-1', 'mrc-1', expect.any(Object), { silent: true });fireEvent.click(screen.getByText('Accept'));@@ -142,7 +142,7 @@ describe('PipelineManuscriptEditor', () => {await waitFor(() => expect(screen.getByText(/0 open/)).toBeInTheDocument());expect(api.acceptPipelineManuscriptFix).toHaveBeenCalledWith('ser-1', 'mrc-1', {edits: [{ issueNumber: 1, issueId: 'iss-1', stageId: 'prose', find: 'She left.', replace: 'She left, but paused.', fuzzy: undefined }],- });+ }, { silent: true });});it('shows issue tabs and focuses one issue; a deep link opens that issue', async () => {@@ -289,7 +289,7 @@ describe('PipelineManuscriptEditor', () => {revealFromIndex('The ending is abrupt');fireEvent.click(await screen.findByText('Generate fix'));await waitFor(() => expect(api.generatePipelineManuscriptFix).toHaveBeenCalledWith(- 'ser-1', 'mrc-1', { providerOverride: 'anthropic', modelOverride: 'claude-haiku' },+ 'ser-1', 'mrc-1', { providerOverride: 'anthropic', modelOverride: 'claude-haiku' }, { silent: true },));});diff --git a/client/src/services/apiPipeline.js b/client/src/services/apiPipeline.jsindex 4b1b6416ea..fdca71a467 100644--- a/client/src/services/apiPipeline.js+++ b/client/src/services/apiPipeline.js@@ -581,10 +581,11 @@ export const patchPipelineManuscriptComment = (seriesId, commentId, patch, optio});// Generate one or more anchored fix edits for a comment (does not apply them).-export const generatePipelineManuscriptFix = (seriesId, commentId, { providerOverride, modelOverride } = {}) =>+export const generatePipelineManuscriptFix = (seriesId, commentId, { providerOverride, modelOverride } = {}, options = {}) =>request(`/pipeline/series/${encodeURIComponent(seriesId)}/manuscript/review/comments/${encodeURIComponent(commentId)}/fix`, {method: 'POST',body: JSON.stringify({ providerOverride, modelOverride }),+ ...options,});// Apply one or more optionally edited fixes into stage output + mark accepted.