Skip to content

armgit / avibe

Public Imported from GitHub
0

Make your computer a home for your AI partner. Avibe is the local-first Agent OS: Vibey, its built-in AI partner, works out of the box, and Claude Code, Codex & OpenCode run unchanged beside it — reach them from your browser, phone, or any chat app.

fix(workbench): keep the default agent when renaming it

cyh3d71a96079f7
diff --git a/ui/src/components/workbench/AgentsPage.tsx b/ui/src/components/workbench/AgentsPage.tsx
index f3cffc387..9d76bd4a8 100644
--- a/ui/src/components/workbench/AgentsPage.tsx
+++ b/ui/src/components/workbench/AgentsPage.tsx
@@ -561,6 +561,16 @@ const AgentDetailPanel: React.FC<DetailProps> = ({ agent, isDefault, onChange, o
} else {
showToast('Agent renamed', 'success');
}
+ // Carry the default over to the new name. removeVibeAgent() drops the
+ // old row without moving default_agent_name, so renaming the default
+ // agent would otherwise silently fall the default back to another agent.
+ if (isDefault) {
+ try {
+ await api.setDefaultVibeAgent(trimmed);
+ } catch (defErr: any) {
+ showToast(defErr?.message ?? String(defErr), 'warning');
+ }
+ }
// Refresh the list and re-select the renamed agent so the old name
// drops out and the clone shows as the selected detail row.
onRenamed(trimmed);