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(chat): name the Agent, not Default, on the composer's route trigger (#2997)

Call White1c4d01240686
diff --git a/ui/src/components/workbench/AgentRoutePicker.test.tsx b/ui/src/components/workbench/AgentRoutePicker.test.tsx
index 24807dd4c..8f5adefe2 100644
--- a/ui/src/components/workbench/AgentRoutePicker.test.tsx
+++ b/ui/src/components/workbench/AgentRoutePicker.test.tsx
@@ -642,6 +642,28 @@ describe('AgentRoutePicker compact presentation', () => {
expect(screen.queryByRole('button', { name: 'chat.picker.newAgent' })).toBeNull();
});
+ it('names an inherited route by its Agent on the trigger and says Default only in the menu', async () => {
+ const user = userEvent.setup();
+ render(
+ <OptimisticOwner
+ presentation="compact"
+ initial={{}}
+ isDefaultRoute
+ defaultRoute={CLAUDE_ROUTE}
+ defaultLabel="Default · claude"
+ onWrite={vi.fn()}
+ />,
+ );
+
+ const trigger = screen.getByRole('button', { name: /claude/ });
+ expect(trigger.textContent).not.toContain('Default');
+ expect(trigger.textContent).toContain('claude');
+
+ await user.click(trigger);
+ await screen.findByText('chat.picker.model');
+ expect(screen.getByRole('button', { name: /chat\.picker\.agent/ }).textContent).toContain('Default · claude');
+ });
+
it('still names refusing Sources and a refused saved effort, as the cascade does', async () => {
hubMode = 'hub';
catalogReasoning = { sonnet: [{ value: 'medium', label: 'medium' }, { value: 'high', label: 'high' }] };
diff --git a/ui/src/components/workbench/AgentRoutePicker.tsx b/ui/src/components/workbench/AgentRoutePicker.tsx
index 2e31ec1d2..03a466238 100644
--- a/ui/src/components/workbench/AgentRoutePicker.tsx
+++ b/ui/src/components/workbench/AgentRoutePicker.tsx
@@ -449,7 +449,9 @@ export const AgentRoutePicker: React.FC<AgentRoutePickerProps> = ({
{getBackendUiMeta(backend).label}
</span>
)}
- <span className="truncate font-semibold text-foreground">{triggerLabel}</span>
+ {/* The composer's quiet trigger names who answers; whether that Agent is
+ inherited from the default is the menu's Agent row to say. */}
+ <span className="truncate font-semibold text-foreground">{compact ? agentLabel : triggerLabel}</span>
{currentModel && (
<>
<span className="text-muted">·</span>