Skip to content

Conversation

@Galaxy-0
Copy link
Contributor

@Galaxy-0 Galaxy-0 commented Jan 3, 2026

This PR addresses issues with background tasks execution and resource cleanup in unified_exec.

  • Renamed release_process_id to terminate_session in SessionManager to explicitly call terminate() on the underlying session, ensuring PTY processes are killed.
  • Added a new terminate_session tool to the unified_exec toolset, allowing manual termination of sessions by ID.
  • Updated ExecCommand approval logic and error handling to use the new termination method.
  • Updated tool specifications and tests to include the new tool.

Fixes: #8656

@etraut-openai
Copy link
Collaborator

@Galaxy-0, thanks for the contribution. Sorry for the slow response. We fell behind on PRs over the holidays, but we're catching up now. Please resolve the merge conflicts and make sure all the CI checks pass.

@etraut-openai
Copy link
Collaborator

@codex review

@etraut-openai etraut-openai added the needs-response Additional information is requested label Jan 7, 2026
@chatgpt-codex-connector
Copy link
Contributor

Codex Review: Didn't find any major issues. 🎉

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

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

Labels

needs-response Additional information is requested

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Background tasks keep spinning independently w/o way to kill them

2 participants