buzz icon indicating copy to clipboard operation
buzz copied to clipboard

fix(desktop): Claude model picks + agent avatars after restart

Open chessing234 opened this issue 4 months ago • 4 comments

Summary

  • Claude Code agents honor the Edit Agent model picker via ANTHROPIC_MODEL at spawn
  • Agents screen keeps custom avatars after restart by preferring the managed agent URL

Test plan

  • [x] just ci
  • [ ] Set a Claude Code agent model ≠ global default → restart → ask which model it is
  • [ ] Set a custom agent avatar → quit/relaunch Buzz → Agents screen still shows it

Closes #2692 Closes #2576

Made with Cursor

chessing234 avatar Jul 24 '26 10:07 chessing234

Heads up: #2695 (opened earlier today, also fixing #2692) carries this same fix — model_env_var: Some(ANTHROPIC_MODEL) + the derived-key addition, with two extras worth keeping whichever PR moves forward:

  • a shared ANTHROPIC_MODEL_ENV_KEY const in env_vars.rs referenced by the runtime entry, the derived-key list, and the existing literal in readiness.rs's provider-model mapping — three call sites, one definition, so the key can't drift;
  • a regression test pinning the claude runtime shape itself (known_acp_runtime_exact("claude").model_env_var == Some("ANTHROPIC_MODEL"), provider still locked).

No attachment to whose lands — happy to close #2695 if you'd rather fold the const + readiness dedup in here (the avatar fix bundled in this PR is orthogonal either way), or rebase mine if you prefer to split. Maintainers' call.

bosoud avatar Jul 24 '26 18:07 bosoud

Folded in the shared ANTHROPIC_MODEL_ENV_KEY + claude runtime shape regression from #2695. Avatar fix stays here; fine if you close #2695 as duplicate.

chessing234 avatar Jul 25 '26 05:07 chessing234

Rebased onto latest main to pick up nostr 0.44.6 (RUSTSEC-2026-0216) and the file-size ratchet baseline. Local Desktop file-size check is clean against current main.

CI workflows are waiting on maintainer approval for this fork push — please Approve and run workflows when you can.

chessing234 avatar Jul 29 '26 14:07 chessing234

@tlongwell-block @wesbillman @wpfleger96 mind taking a look when you get a chance?

chessing234 avatar Aug 02 '26 08:08 chessing234

🔐 Codex Security Review

Status: review required for the current range.

The current range is 78618804ec86a014524ad7d1fb55928e8f5c3edf...bc4b6c055b91ab573fb5a960aa611022d7a4a071. A new review must complete for this exact range. When manual authorization is required, a Block organization member must comment exactly @buzz-security-review bc4b6c055b91ab573fb5a960aa611022d7a4a071 to authorize a new review. Any previous review applies only to its recorded range.

github-actions[bot] avatar Sep 01 '26 15:09 github-actions[bot]

rebased onto main

chessing234 avatar Sep 12 '26 04:09 chessing234