Skip to content

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

Open
Chessing234 wants to merge 3 commits into
block:mainfrom
Chessing234:fix/claude-model-avatar-bugs
Open

fix(desktop): Claude model picks + agent avatars after restart#2701
Chessing234 wants to merge 3 commits into
block:mainfrom
Chessing234:fix/claude-model-avatar-bugs

Conversation

@Chessing234

Copy link
Copy Markdown
Contributor

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

  • 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 and others added 2 commits July 24, 2026 12:47
Wire the claude runtime's model_env_var so Edit Agent selections reach
spawned sessions, and treat ANTHROPIC_MODEL as a derived key.

Closes block#2692

Signed-off-by: Taksh <takshkothari09@gmail.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
Prefer the managed agent avatar URL before the profile query cache so
custom icons don't flash to monograms on cold start.

Closes block#2576

Signed-off-by: Taksh <takshkothari09@gmail.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
@bosoud

bosoud commented Jul 24, 2026

Copy link
Copy Markdown

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.

Single const for discovery, derived-key filter, and readiness so the key cannot drift; pin claude runtime shape with a regression test.

Signed-off-by: Taksh <takshkothari09@gmail.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
@Chessing234

Copy link
Copy Markdown
Contributor Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

2 participants