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.
Python agentagent-osaiai-agentsai-partnerchatopsclaudeclaude-codecodexdevtoolsdiscord-botlark-botllmlocal-firstlong-term-memoryopencodeslack-botvibe-codingvibeywechat
fix(ui): keep the Fast tooltip from lingering after a click (#3090)
Call Whiteec94785488f4
diff --git a/ui/e2e/workbench-general/composer-route-trigger.spec.ts b/ui/e2e/workbench-general/composer-route-trigger.spec.tsindex 8fe44337b..35db35c0e 100644--- a/ui/e2e/workbench-general/composer-route-trigger.spec.ts+++ b/ui/e2e/workbench-general/composer-route-trigger.spec.ts@@ -173,3 +173,31 @@ test('a route that runs fast keeps its mark beside the chevron when a crowded phawait page.screenshot({ path: 'e2e/.artifacts/workbench-general/shots/composer-route-trigger-fast.png' });expect(denied).toEqual([]);});++test('the Fast tooltip explains on hover and keyboard focus, and does not linger after a click', async ({ page }) => {+ const denied = await serveChat(page, { running: false, fast: true });+ await page.route('**/api/workbench/prefs', (route) => route.fulfill({ json: {+ ok: true, background_work_banner_enabled: true, fast_mode_default: true,+ } }));+ await page.setViewportSize({ width: 1280, height: 800 });+ await open(page, `/chat/${SESSION_ID}`);+ await page.locator('main').getByRole('button', { name: /pm-claude/ }).click();+ const fast = page.getByRole('button', { name: 'Fast', exact: true });+ await expect(fast).toBeEnabled();+ const tip = page.getByRole('tooltip').filter({ hasText: 'Fast mode' });+ const opacity = () => tip.evaluate((node) => Number(getComputedStyle(node).opacity));++ await fast.hover();+ await expect.poll(opacity).toBe(1);+ // A click leaves the button focused; the tooltip must not stay over the model list.+ await fast.click();+ await page.mouse.move(0, 0);+ await expect(fast).toBeFocused();+ await expect.poll(opacity).toBe(0);+ // Reaching it from the keyboard still explains it.+ await page.keyboard.press('Shift+Tab');+ await page.keyboard.press('Tab');+ await expect(fast).toBeFocused();+ await expect.poll(opacity).toBe(1);+ expect(denied).toEqual([]);+});diff --git a/ui/src/components/workbench/AgentRoutePicker.tsx b/ui/src/components/workbench/AgentRoutePicker.tsxindex 151b77002..60f090d49 100644--- a/ui/src/components/workbench/AgentRoutePicker.tsx+++ b/ui/src/components/workbench/AgentRoutePicker.tsx@@ -934,7 +934,8 @@ const FastMark: React.FC<React.SVGProps<SVGSVGElement>> = ({ className, ...props</svg>);-// The Fast toggle beside the effort heading. Hover or focus explains it; a+// The Fast toggle beside the effort heading. Hover or keyboard focus explains+// it; a click's focus does not, so the tip never lingers over the model list. A// model whose hop offers no fast tier keeps the choice but cannot change it here.const FastToggle: React.FC<{on: boolean;@@ -965,7 +966,7 @@ const FastToggle: React.FC<{<spanid={tipId}role="tooltip"- className="pointer-events-none absolute bottom-full right-0 z-50 mb-1.5 w-56 rounded-md bg-foreground px-2.5 py-2 text-[11px] leading-snug text-background opacity-0 shadow-md transition-opacity group-hover/fast:opacity-100 group-focus-within/fast:opacity-100"+ className="pointer-events-none absolute bottom-full right-0 z-50 mb-1.5 w-56 rounded-md bg-foreground px-2.5 py-2 text-[11px] leading-snug text-background opacity-0 shadow-md transition-opacity group-hover/fast:opacity-100 group-has-[:focus-visible]/fast:opacity-100"><span className="block font-semibold">{t('chat.picker.fastTitle')}</span><span className="block">{t('chat.picker.fastDescription')}</span>