Skip to content

fix(desktop): defer managed-agent pools by default - #4254

Open
kerpopule wants to merge 1 commit into
block:mainfrom
kerpopule:fix/safe-managed-agent-pool-current
Open

fix(desktop): defer managed-agent pools by default#4254
kerpopule wants to merge 1 commit into
block:mainfrom
kerpopule:fix/safe-managed-agent-pool-current

Conversation

@kerpopule

Copy link
Copy Markdown

Summary

  • use the lazy ACP pool path for manual starts and config-driven restarts, matching launch restore
  • lower default managed-agent parallelism from 10 to 1
  • add policy regressions for both paths

Why

Confirmed on Buzz 0.5.3 with a real multi-agent Hermes setup: 33 running buzz-acp parents each eagerly initialized 10 hermes-acp children. That produced 331 Hermes ACP processes using 7,634.4 MiB RSS before Buzz itself, with load average 32.72. The fleet was mostly idle.

Existing records with an explicit parallelism value are intentionally not rewritten. This changes safe defaults and prevents manual/config restarts from eagerly materializing every configured slot.

This adapts the designs from #2639 by @BrianSeong99 and #2676 by @Christian-Sidak onto current main; both earlier PRs currently conflict.

Verification

  • RED: focused runtime test failed because manual starts had no lazy-pool policy
  • cargo fmt --manifest-path desktop/src-tauri/Cargo.toml -- --check
  • focused policy tests: 2 passed
  • cd desktop/src-tauri && cargo test: 2,090 passed, 14 ignored; diagnostic integration tests 3 passed
  • cd desktop/src-tauri && cargo clippy --all-targets -- -D warnings
  • git diff --check
  • independent read-only review: no blocking findings

Fixes #2631.

Manual starts and config-driven restarts now use the lazy ACP pool path already used by launch restore. New and legacy records without explicit parallelism default to one worker instead of ten.\n\nThis prevents a fleet of idle identities from eagerly reserving hundreds of ACP subprocesses. The behavior follows the earlier designs in block#2639 and block#2676, adapted to current main.

Signed-off-by: Steve Darlow <kerpopule@users.noreply.github.com>
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.

[Bug] Default parallelism 24 eagerly spawns large Codex ACP pools, consuming ~14 GB and flooding Recents

1 participant