Skip to content

fix(cli): avoid killing background processes on successful exit#46

Merged
Octane0411 merged 1 commit intomainfrom
fix/cli-background-cleanup-policy
Mar 3, 2026
Merged

fix(cli): avoid killing background processes on successful exit#46
Octane0411 merged 1 commit intomainfrom
fix/cli-background-cleanup-policy

Conversation

@Octane0411
Copy link
Collaborator

@Octane0411 Octane0411 commented Mar 3, 2026

Summary

  • change CLI background cleanup policy from unconditional to configurable
  • default mode is now on-error to preserve long-running services after successful agent completion
  • add --cleanup-background never|on-error|always and OAS_CLEANUP_BACKGROUND override

Why

configure-git-webserver and similar terminal-bench tasks require services started by the agent to still be running during verifier. Unconditional cleanup on successful end_turn caused verifier HTTP 000 failures.

Validation

  • cd packages/cli && bunx tsc --noEmit

@Octane0411 Octane0411 merged commit 77589d2 into main Mar 3, 2026
1 check passed
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