mirror of
https://github.com/block/buzz.git
synced 2026-10-29 21:41:33 +00:00
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>
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 frontendpnpm tauri dev- run the desktop apppnpm build- typecheck and build frontendpnpm typecheck- TypeScript checkspnpm lint- Biome lintpnpm 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