Skip to content

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

fix(ai-providers): silence duplicate error toast on prompt run failure

[._.]/ Adam Eivyb8021a21d480
diff --git a/client/src/pages/AIProviders.jsx b/client/src/pages/AIProviders.jsx
index b4255e20c2..9a35da428e 100644
--- a/client/src/pages/AIProviders.jsx
+++ b/client/src/pages/AIProviders.jsx
@@ -196,7 +196,7 @@ export default function AIProviders() {
prompt: runPrompt,
workspacePath: workspace?.repoPath,
workspaceName: workspace?.name
- }).catch(err => ({ error: err.message }));
+ }, { silent: true }).catch(err => ({ error: err.message }));
if (result.error) {
setRunOutput(`Error: ${result.error}`);
diff --git a/client/src/services/apiRuns.js b/client/src/services/apiRuns.js
index 81d1fe9f0f..a5137b39ef 100644
--- a/client/src/services/apiRuns.js
+++ b/client/src/services/apiRuns.js
@@ -3,9 +3,10 @@ import { request } from './apiCore.js';
// Runs
export const getRuns = (limit = 50, offset = 0, source = 'all') =>
request(`/runs?limit=${limit}&offset=${offset}&source=${source}`);
-export const createRun = (data) => request('/runs', {
+export const createRun = (data, options) => request('/runs', {
method: 'POST',
- body: JSON.stringify(data)
+ body: JSON.stringify(data),
+ ...options
});
export const getRun = (id) => request(`/runs/${id}`);
// These endpoints deliberately return text/plain. A model response can itself