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

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.

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

2 participants