Skip to content

fix: stop container shells when terminals close - #61

Merged
levivilet merged 3 commits into
mainfrom
fix/devcontainer-terminal-3912-disposal
Oct 4, 2026
Merged

levivilet merged 3 commits into
mainfrom
fix/devcontainer-terminal-3912-disposal

Conversation

@levivilet

Copy link
Copy Markdown
Contributor

Closing a devcontainer terminal stopped the host CLI but left its container shell running. Allocate a private terminal session and expose a cleanup command that stops only its owned process group. Atomically closing the session directory prevents a late terminal launch from escaping cleanup, and checking the session nonce protects against a reused PID.

@levivilet
levivilet merged commit 4f3e433 into main Oct 4, 2026
12 checks passed
@levivilet
levivilet deleted the fix/devcontainer-terminal-3912-disposal branch October 4, 2026 19:11
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