Skip to content

Fix Buzz command migration for saved agents#979

Merged
wesbillman merged 1 commit into
mainfrom
codex/buzz-command-migration
Jun 11, 2026
Merged

Fix Buzz command migration for saved agents#979
wesbillman merged 1 commit into
mainfrom
codex/buzz-command-migration

Conversation

@wesbillman

Copy link
Copy Markdown
Collaborator

Summary

Fix saved agent startup after the Sprout→Buzz rename by repairing persisted built-in command/runtime values on desktop startup.

  • Rewrite exact legacy managed-agent commands: sprout-acpbuzz-acp, sprout-agentbuzz-agent, and sprout-dev-mcpbuzz-dev-mcp.
  • Rewrite removed MCP server values (sprout-mcp, sprout-mcp-server, buzz-mcp-server) to buzz-dev-mcp for Buzz agents, or clear them for non-Buzz agents.
  • Rewrite persisted persona runtimes from sprout-agent to buzz-agent, including installed team .persona.md files so team sync cannot reintroduce the old runtime.
  • Run the command repair after provider→runtime migration and before existing MCP reconciliation/team persona sync.

Adversarial Review

  • Existing ManagedAgentRecord launch uses saved acp_command, agent_command, and mcp_command directly, so changing defaults alone would not fix existing agents.
  • Manually changing only acp_command explains the follow-up os error 2: the saved agent_command can still be sprout-agent.
  • personas.json can persist runtime: "sprout-agent"; future deploys from those personas could recreate broken managed-agent records.
  • Installed team persona files can sync back into personas.json, so repairing only JSON stores would be non-durable.
  • Custom commands and explicit paths are left untouched; only exact legacy built-in command names are rewritten.

Tests

  • cargo fmt --manifest-path desktop/src-tauri/Cargo.toml
  • cargo test --manifest-path desktop/src-tauri/Cargo.toml reconcile_legacy_command_names
  • cargo test --manifest-path desktop/src-tauri/Cargo.toml rewrite_legacy_persona_md_runtime
  • cargo test --manifest-path desktop/src-tauri/Cargo.toml reconcile_legacy_team_persona_runtime_files
  • cargo test --manifest-path desktop/src-tauri/Cargo.toml reconcile_mcp_commands
  • git diff --check
  • Pre-commit hook: rust fmt, desktop/web fix + file sizes, mobile format/analyze
  • Pre-push hook: desktop JS tests, desktop Tauri tests, mobile tests, desktop Tauri clippy, workspace clippy, rust unit tests

@wesbillman wesbillman merged commit 824c551 into main Jun 11, 2026
13 checks passed
@wesbillman wesbillman deleted the codex/buzz-command-migration branch June 11, 2026 18:28
tlongwell-block pushed a commit that referenced this pull request Jun 12, 2026
Co-authored-by: npub1mprnacetjua2xx3p5eddmhxyk6wv929ymm5py8kd2xfxurxahspqqlgyta <d8473ee32b973aa31a21a65adddcc4b69cc2a8a4dee8121ecd51926e0cddbc02@sprout-oss.stage.blox.sqprod.co>
Signed-off-by: npub1mprnacetjua2xx3p5eddmhxyk6wv929ymm5py8kd2xfxurxahspqqlgyta <d8473ee32b973aa31a21a65adddcc4b69cc2a8a4dee8121ecd51926e0cddbc02@sprout-oss.stage.blox.sqprod.co>

* origin/main: (35 commits)
  feat(huddle): sentence-at-a-time voice-mode guidelines for lower TTS latency (#996)
  Shard desktop Playwright CI jobs (#992)
  chore(release): release version 0.3.18 (#995)
  Video Player Improvements  (#993)
  Improve first-run welcome setup (#970)
  fix(release): use legacy updater key secret (#991)
  Replace built-in personas with Fizz (#987)
  docs(buzz-acp): rewrite Communication Patterns for mention accuracy and threading clarity (#982)
  chore(justfile): build git-credential-nostr in dev and staging recipes (#980)
  Fix Buzz command migration for saved agents (#979)
  fix(desktop): resolve effective model and prompt from persona in display path (#972)
  docs: clean up remaining Buzz references (#977)
  chore(release): release version 0.3.17 (#976)
  fix(onboarding): skip onboarding when relay already has a profile (#973)
  docs: finish Buzz rename cleanup (#974)
  fix(desktop): let channel members bypass mention agent gate (#965)
  Rename desktop app to Buzz (#960)
  feat(desktop): open profile panel from MembersSidebar rows (#962)
  feat(desktop): per-event notification sounds and alert controls (#968)
  fix(desktop): make header chrome zoom-correct and tidy split-pane (#941)
  ...

# Conflicts:
#	crates/buzz-agent/README.md
#	crates/buzz-agent/src/config.rs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant