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): deterministic chat back target + i18n agent status badge

cyhd535abfdb73e
diff --git a/ui/src/components/workbench/AgentsPage.tsx b/ui/src/components/workbench/AgentsPage.tsx
index ca127b2e0..e80fc0e0e 100644
--- a/ui/src/components/workbench/AgentsPage.tsx
+++ b/ui/src/components/workbench/AgentsPage.tsx
@@ -349,6 +349,7 @@ interface AgentRowProps {
}
const AgentRow: React.FC<AgentRowProps> = ({ agent, isSelected, isDefault, onSelect }) => {
+ const { t } = useTranslation();
const description = [agent.model, agent.reasoning_effort, agent.description].filter(Boolean).join(' · ');
return (
<button
@@ -373,7 +374,7 @@ const AgentRow: React.FC<AgentRowProps> = ({ agent, isSelected, isDefault, onSel
</div>
<Badge variant={agent.enabled ? 'success' : 'secondary'} className="font-mono uppercase">
<span className={clsx('size-1.5 rounded-full', agent.enabled ? 'bg-mint' : 'bg-muted')} />
- {agent.enabled ? 'enabled' : 'disabled'}
+ {agent.enabled ? t('agents.statusEnabled') : t('agents.statusDisabled')}
</Badge>
</button>
);
diff --git a/ui/src/components/workbench/ChatPage.tsx b/ui/src/components/workbench/ChatPage.tsx
index 2408f0cd3..e0f396ab5 100644
--- a/ui/src/components/workbench/ChatPage.tsx
+++ b/ui/src/components/workbench/ChatPage.tsx
@@ -238,7 +238,7 @@ export const ChatPage: React.FC = () => {
// wraps every route in py-5 (mobile) / py-8 (desktop), so we subtract
// that here to avoid double-padding.
<div className="-my-5 flex h-[calc(100dvh-2.5rem)] flex-col md:-my-8 md:h-[calc(100dvh-4rem)]">
- <ChatHeaderBar session={session} agents={agents} onPatch={patch} onBack={() => navigate(-1)} />
+ <ChatHeaderBar session={session} agents={agents} onPatch={patch} onBack={() => navigate('/inbox')} />
{error && (
<div className="mx-auto mt-3 w-full max-w-[1080px] rounded-md border border-destructive/40 bg-destructive/[0.06] px-3 py-2 text-[12px] text-destructive">
diff --git a/ui/src/i18n/en.json b/ui/src/i18n/en.json
index 93165291f..35fd4fa6d 100644
--- a/ui/src/i18n/en.json
+++ b/ui/src/i18n/en.json
@@ -1234,6 +1234,8 @@
"title": "Agents",
"subtitle": "{{count}} agents registered across all backends.",
"showDisabled": "Show disabled",
+ "statusEnabled": "enabled",
+ "statusDisabled": "disabled",
"newAgent": "New agent",
"import": "Import",
"importFromClaude": "Import from Claude",
diff --git a/ui/src/i18n/zh.json b/ui/src/i18n/zh.json
index e8542deb7..67c58e056 100644
--- a/ui/src/i18n/zh.json
+++ b/ui/src/i18n/zh.json
@@ -1234,6 +1234,8 @@
"title": "Agents",
"subtitle": "已登记 {{count}} 个 Agent。",
"showDisabled": "显示已禁用",
+ "statusEnabled": "已启用",
+ "statusDisabled": "已停用",
"newAgent": "新建 Agent",
"import": "导入",
"importFromClaude": "从 Claude 导入",