Files
buzz/desktop
Duncan 83c73b34da fix(desktop): land deep-link focus on model and env-key targets
Two deep-link focus targets never received focus in the merged edit
dialog. The model/provider combobox is disabled while model discovery is
in flight, so the one-shot rAF focus effect fired against a disabled
control (a silent no-op) and latched its guard, never retrying. Guard
the latch on focusability and add modelDiscoveryLoading to the deps so
the effect re-runs and focuses once discovery resolves.

The env_key target lives inside the Advanced accordion, which seeds
collapsed, so EnvVarsEditor never mounted to receive its focus key. Add
an effect that expands Advanced when an env_key target is requested.

Replace the blanket onOpenAutoFocus suppression — which stranded focus
on <body> whenever the target wasn't focusable yet — with conditional
suppression: claim focus here only when the normalized target is already
focusable, otherwise let Radix autofocus a baseline control while the
targeted effects move focus once the target materializes.

Extract the three focus effects and the autofocus handler into
useAgentEditDeepLinkFocus, deduplicating the target-id resolution and
keeping AgentEditMergedDialog.tsx under the desktop file-size ratchet.

Co-authored-by: Will Pfleger <pfleger.will@gmail.com>
Signed-off-by: Will Pfleger <pfleger.will@gmail.com>
2026-08-25 13:41:06 -04:00
..
…

Buzz

Desktop chat shell with:

  • Tauri + React + TypeScript + Vite
  • Tailwind CSS
  • shadcn/ui-ready shared components
  • Biome (lint/format/check)
  • Feature-driven frontend structure

Scripts

  • pnpm dev - run the web frontend
  • pnpm tauri dev - run the desktop app
  • pnpm build - typecheck and build frontend
  • pnpm typecheck - TypeScript checks
  • pnpm lint - Biome lint
  • pnpm format - Biome format (write)
  • pnpm check - Biome check

Structure

  • src/shared - reusable app-wide code (ui, lib, styles)
  • src/features - feature modules (vertical slices)
  • src/app - top-level app composition