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): route agent rename toasts through i18n

cyheea983bd1966
diff --git a/ui/src/components/workbench/AgentsPage.tsx b/ui/src/components/workbench/AgentsPage.tsx
index e24d522f9..64ff4121b 100644
--- a/ui/src/components/workbench/AgentsPage.tsx
+++ b/ui/src/components/workbench/AgentsPage.tsx
@@ -560,9 +560,9 @@ const AgentDetailPanel: React.FC<DetailProps> = ({ agent, isDefault, onChange, o
if (!removeResult.ok) {
// Old name still has references — keep it but tell the user the
// new one exists too.
- showToast(removeResult.message || 'Agent renamed (old one kept due to references)', 'warning');
+ showToast(removeResult.message || t('agents.renameKeptOld'), 'warning');
} else {
- showToast('Agent renamed', 'success');
+ showToast(t('agents.renameSuccess'), 'success');
}
// Carry the default over to the new name. removeVibeAgent() drops the
// old row without moving default_agent_name, so renaming the default
diff --git a/ui/src/i18n/en.json b/ui/src/i18n/en.json
index 1adef0733..15af246f4 100644
--- a/ui/src/i18n/en.json
+++ b/ui/src/i18n/en.json
@@ -1241,6 +1241,8 @@
"importFromOpenCode": "Import from OpenCode",
"importSuccess": "Imported {{imported}}, skipped {{skipped}}.",
"importFailed": "Import failed: {{error}}",
+ "renameSuccess": "Agent renamed",
+ "renameKeptOld": "Agent renamed (old one kept due to references)",
"searchPlaceholder": "Search agents…",
"backendFilter": "Backend",
"backendAll": "All",
diff --git a/ui/src/i18n/zh.json b/ui/src/i18n/zh.json
index f0b11bbd7..6fd46906b 100644
--- a/ui/src/i18n/zh.json
+++ b/ui/src/i18n/zh.json
@@ -1241,6 +1241,8 @@
"importFromOpenCode": "从 OpenCode 导入",
"importSuccess": "已导入 {{imported}} 个,跳过 {{skipped}} 个。",
"importFailed": "导入失败:{{error}}",
+ "renameSuccess": "Agent 已重命名",
+ "renameKeptOld": "Agent 已重命名(旧名因被引用而保留)",
"searchPlaceholder": "搜索 Agent…",
"backendFilter": "Backend",
"backendAll": "全部",