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
fix([issue-2669]): silence the last four double-toast custom-catch sites
[._.]/ Adam Eivy311dbc038ae9
diff --git a/.changelog/NEXT.md b/.changelog/NEXT.mdindex df5378fda1..749c716dc5 100644--- a/.changelog/NEXT.md+++ b/.changelog/NEXT.md@@ -101,6 +101,7 @@- Saving Digital Twin settings no longer leaves the Save button stuck on "Saving..." forever when the save fails — it re-enables so you can retry.- [issue-2669] Sharing, Messages, and Calendar screens no longer show two stacked error toasts when a share/subscribe/export/save/sync action fails — the custom-catch callers now pass `{ silent: true }` so only their own toast fires, not the shared `request()` helper's default one too. Swept the Messages/calendar/sharing feature area (both ConfigTabs, InboxTab, ReviewTab, ShareToButton, and the Sharing page) and threaded a backward-compatible `options` arg into the affected API wrappers (`evaluateMessages`, `enableGmailApi`, `getGoogleAuthUrl`, `create/updateMessageAccount`, `create/updateCalendarAccount`, `updateSubcalendars`, `saveGoogleAuthCredentials`, `start/runGoogleAutoConfig`, `confirmDailyReviewEvent`).- [issue-2669] Creative Director screens no longer stack two error toasts when a project action fails. Swept the Creative Director feature area (index + detail pages, Overview and Plan tabs) so every custom-catch caller passes `{ silent: true }` — starting, pausing, resuming, deleting, creating, smoke-testing, saving a directive, re-planning, and toggling a project's audio all now show a single error toast instead of the caller's plus the shared `request()` helper's. Threaded a backward-compatible `options` arg into the affected `apiCreativeDirector.js` wrappers (`listCreativeDirectorProjects`, `createCreativeDirectorProject`, `deleteCreativeDirectorProject`, `start/pause/resumeCreativeDirectorProject`, `createSmokeTestCreativeDirectorProject`, `setCreativeDirectorDirective`, `replanCreativeDirectorProject`).+- [issue-2669] Saving a vocal take, refreshing or recovering an AI provider, and importing a MortalLoom export no longer show two stacked error toasts on failure — the final four custom-catch callers now pass `{ silent: true }` so only their own toast fires, not the shared `request()` helper's default one too. This closes out the client-wide double-toast sweep: a full audit of every remaining custom-catch site confirmed these were the last four, so the whole client is now consistent on the single-toast rule. Threaded a backward-compatible `options` arg into the `recoverProvider` and `importMortalLoom` API wrappers.- Creative Director projects that use the Antigravity provider no longer get stuck on "Planning." The agent now reliably receives its instructions instead of launching and sitting idle at an empty prompt (it waits for Antigravity's input box to be ready before sending, the same way the Claude provider does), so planning actually runs to completion.- A Creative Director project no longer wedges in "Planning" when its agent is interrupted or crashes mid-run. The stuck run is now cleaned up as soon as the dead agent is detected, so the project can retry on its own instead of waiting for the next server restart.- The Creative Director "Runs" tab now shows why a run failed (e.g. "interrupted by restart") instead of leaving failed runs blank with no explanation.diff --git a/client/src/components/settings/MortalLoomTab.jsx b/client/src/components/settings/MortalLoomTab.jsxindex 94f11259a0..c396549d1c 100644--- a/client/src/components/settings/MortalLoomTab.jsx+++ b/client/src/components/settings/MortalLoomTab.jsx@@ -63,7 +63,7 @@ export function MortalLoomTab() {return;}setImporting(true);- const res = await importMortalLoom().catch(() => null);+ const res = await importMortalLoom({ silent: true }).catch(() => null);setImporting(false);if (!res?.ok) {toast.error('Import failed: ' + (res?.reason || 'unknown'));diff --git a/client/src/components/songs/SongRecordings.jsx b/client/src/components/songs/SongRecordings.jsxindex 2d1aed5a76..6683981b00 100644--- a/client/src/components/songs/SongRecordings.jsx+++ b/client/src/components/songs/SongRecordings.jsx@@ -141,7 +141,7 @@ export default function SongRecordings({ recordings = [], layers = [], onChange,}// Upload the WAV; the returned filename is what we persist + play from.const ts = new Date().toISOString().replace(/[:.]/g, '-');- const result = await uploadFile(take.audioBase64, `vocal-${ts}.wav`).catch((err) => {+ const result = await uploadFile(take.audioBase64, `vocal-${ts}.wav`, { silent: true }).catch((err) => {toast.error(err?.message || 'Failed to save recording');return null;});diff --git a/client/src/pages/AIProviders.jsx b/client/src/pages/AIProviders.jsxindex d314db9d45..8612e4f0e2 100644--- a/client/src/pages/AIProviders.jsx+++ b/client/src/pages/AIProviders.jsx@@ -121,7 +121,7 @@ export default function AIProviders() {// next failure re-benches it — recovery is "try again now", not "fix the cause".const handleRecover = async (id) => {setRecovering(prev => ({ ...prev, [id]: true }));- const result = await api.recoverProvider(id).catch(() => null);+ const result = await api.recoverProvider(id, { silent: true }).catch(() => null);if (result) {setStatuses(prev => ({ ...prev, [id]: { ...prev[id], available: true, reason: 'ok', message: 'Provider available', timeUntilRecovery: null } }));toast.success('Provider marked available — it will be retried on the next call');@@ -176,7 +176,7 @@ export default function AIProviders() {const handleRefreshModels = async (id) => {setRefreshing(prev => ({ ...prev, [id]: true }));try {- const result = await api.refreshProviderModels(id);+ const result = await api.refreshProviderModels(id, { silent: true });if (result) {toast.success(`Models refreshed for ${result.name}`);loadData();diff --git a/client/src/services/apiMortalLoom.js b/client/src/services/apiMortalLoom.jsindex c0ebb4750b..c5d0d8b38e 100644--- a/client/src/services/apiMortalLoom.js+++ b/client/src/services/apiMortalLoom.js@@ -1,5 +1,5 @@import { request } from './apiCore.js';export const getMortalLoomStatus = () => request('/mortalloom/status');-export const importMortalLoom = () => request('/mortalloom/import', { method: 'POST' });+export const importMortalLoom = (options) => request('/mortalloom/import', { method: 'POST', ...options });export const getMortalLoomAppStoreUrl = () => request('/mortalloom/app-store');diff --git a/client/src/services/apiProviders.js b/client/src/services/apiProviders.jsindex 5acfd6f47f..220f14791c 100644--- a/client/src/services/apiProviders.js+++ b/client/src/services/apiProviders.js@@ -26,4 +26,4 @@ export const refreshProviderModels = (id, options) => request(`/providers/${id}/// Provider status (usage limits, availability)export const getProviderStatuses = () => request('/providers/status');export const getProviderStatus = (id) => request(`/providers/${id}/status`);-export const recoverProvider = (id) => request(`/providers/${id}/status/recover`, { method: 'POST' });+export const recoverProvider = (id, options) => request(`/providers/${id}/status/recover`, { method: 'POST', ...options });