Skip to content

fix(desktop): restart agents after setup fixes#1620

Draft
baxen wants to merge 1 commit into
mainfrom
gpt01/setup-mode-auto-restart
Draft

fix(desktop): restart agents after setup fixes#1620
baxen wants to merge 1 commit into
mainfrom
gpt01/setup-mode-auto-restart

Conversation

@baxen

@baxen baxen commented Jul 8, 2026

Copy link
Copy Markdown
Collaborator

Why

Agents spawned in setup mode keep running a nudge-only buzz-acp listener after the user fixes missing model/provider config, so they never heal until manually restarted.

What

  • Track whether a managed agent process was spawned with BUZZ_ACP_SETUP_PAYLOAD
  • After Edit Agent saves, restart only live setup-mode processes whose current config passes readiness
  • Add runtime tests for the ready-after-config-fix predicate

Risk Assessment

Medium-low — this only affects local managed-agent edit saves and is gated to processes already stamped as setup mode; healthy running agents are not restarted.

References

  • Validation: CMAKE_POLICY_VERSION_MINIMUM=3.5 cargo test -p buzz-desktop managed_agents::runtime::tests::setup_mode_now_ready --lib
  • Validation: cd desktop && pnpm check:file-sizes

Generated with Codex

Co-authored-by: npub137662rjc45tlwzl38m4f828yc3ymzugkudyp8w0jdpvxj7ysen3sm3uh7m <8fb5a50e58ad17f70bf13eea93a8e4c449b17116e34813b9f26858697890cce3@sprout-oss.stage.blox.sqprod.co>
Signed-off-by: npub137662rjc45tlwzl38m4f828yc3ymzugkudyp8w0jdpvxj7ysen3sm3uh7m <8fb5a50e58ad17f70bf13eea93a8e4c449b17116e34813b9f26858697890cce3@sprout-oss.stage.blox.sqprod.co>
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.

2 participants