Skip to content

fix: #3074 restore SIGINT defaults for UnixLocal PTY children#3075

Merged
seratch merged 1 commit intoopenai:mainfrom
Aphroq:fix/unixlocal-pty-sigint
May 2, 2026
Merged

fix: #3074 restore SIGINT defaults for UnixLocal PTY children#3075
seratch merged 1 commit intoopenai:mainfrom
Aphroq:fix/unixlocal-pty-sigint

Conversation

@Aphroq
Copy link
Copy Markdown
Contributor

@Aphroq Aphroq commented May 1, 2026

Summary

This pull request fixes a UnixLocal PTY bug where TTY-backed child processes can inherit an ignored SIGINT disposition from the parent process and fail to react to Ctrl-C.

Test plan

  • uv run pytest -q tests/sandbox/test_unix_local.py::TestUnixLocalPty::test_pty_ctrl_c_interrupts_long_running_process tests/sandbox/test_unix_local.py::TestUnixLocalPty::test_pty_ctrl_c_interrupts_even_if_parent_ignores_sigint

Issue number

Resolves #3074 for the SIGINT issue

Checks

  • I've added new tests (if relevant)
  • I've added/updated the relevant documentation
  • I've run make lint and make format
  • I've made sure tests pass

@github-actions github-actions Bot added bug Something isn't working feature:sandboxes labels May 1, 2026
@seratch seratch added this to the 0.15.x milestone May 1, 2026
@openai openai deleted a comment from chatgpt-codex-connector Bot May 1, 2026
@seratch
Copy link
Copy Markdown
Member

seratch commented May 2, 2026

@codex review

@chatgpt-codex-connector
Copy link
Copy Markdown

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".

@seratch seratch changed the title fix: restore SIGINT defaults for UnixLocal PTY children fix: #3074 restore SIGINT defaults for UnixLocal PTY children May 2, 2026
@seratch seratch merged commit a47b7ea into openai:main May 2, 2026
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working feature:sandboxes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

UnixLocal PTY children can inherit ignored SIGINT and miss Ctrl-C interrupts

2 participants