fix: show clear toast when agent definition is missing

Surface missing agent definitions during delete
Avoid hiding delete errors behind generic failures
Add localized toast copy
This commit is contained in:
Bohdan Triapitsyn
2026-06-16 14:33:08 +03:00
parent 8f1da2f728
commit 3ba93c111e
11 changed files with 34 additions and 12 deletions
+3 -2
View File
@@ -493,8 +493,9 @@ export const useAgentsStore = create<AgentsStore>()(
set({ selectedAgentName: null });
}
return loaded;
} catch {
return false;
} catch (error) {
console.error('Failed to delete agent:', error);
throw error;
} finally {
if (!requiresReload) {
finishConfigUpdate();