Files
buzz/desktop
npub1fgdl5qqnh3k3f2xkqrvt7cujalhm623x4s7fdjdj5yrtp5fzjl9qrjpucw 428187009d refactor(desktop): make agent provider/model selection provider-agnostic
OSS Buzz must stay provider/model-agnostic; Block-internal defaults belong
in buzz-releases via env vars, not baked into the OSS tree. This removes the
implicit Databricks fallback and the hardcoded Block-specific contamination
introduced by #1201, across three layers:

- buzz-agent config: resolve_provider/resolve_model no longer auto-infer
  Databricks. BUZZ_AGENT_PROVIDER is required; BUZZ_AGENT_MODEL wins over
  provider-specific env vars.
- desktop build/runtime: add a generic BUZZ_BUILD_AGENT_ENV passthrough
  (newline-delimited KEY=VALUE). build.rs validates and emits
  BUZZ_DESKTOP_BUILD_AGENT_ENV; runtime.rs parses it via parse_agent_env_lines()
  and injects each pair onto spawned agents (user env still wins). This lets
  internal builds bake DATABRICKS_HOST without naming Databricks in OSS; OSS
  builds leave it unset and inject nothing.
- persona dialog UI: delete the hardcoded Block model registry (goose-claude-*,
  databricks-gpt-*, etc.) sourced from squareup/goose-releases. Models now come
  exclusively from live discovery (usePersonaModelDiscovery -> discoverAgentModels);
  the only static fallback is the generic 'Default model' + freeform custom input.
  Drops the Databricks-default behavior. databricks_v2 remains a selectable
  provider option (parallel to the Rust enum), not a default.

Co-authored-by: Will Pfleger <pfleger.will@gmail.com>
Signed-off-by: Will Pfleger <pfleger.will@gmail.com>
2026-06-29 19:13:29 -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