Skip to content

Escalated an aborted turn to SIGKILL. - #5

Open
moedash wants to merge 1 commit into
mainfrom
moe/sdk-kill-escalation
Open

Escalated an aborted turn to SIGKILL.#5
moedash wants to merge 1 commit into
mainfrom
moe/sdk-kill-escalation

Conversation

@moedash

@moedash moedash commented Aug 20, 2026

Copy link
Copy Markdown
Collaborator

What changed?

Aborting a turn through the SDK escalates to SIGKILL if the child has not exited within a grace period.

Why?

The abort sent the child a polite signal and trusted it to exit. Codex holds a writer lock on the thread for as long as it lives, so a child that ignores the signal blocks every later resume of that thread with already has an active writer. The caller has no way to escalate, because the SDK owns the spawn.

How did you test it?

  • Unit Tests
  • Staging
  • End to End Tests

Against a child that ignores SIGTERM on purpose: the abort now kills it and the caller gets its error, where before both the child and the lock survived.

Aborting a turn sent the child a polite signal and trusted it to exit. Codex holds a writer lock
on the thread for as long as it lives, so a child that ignores the signal blocks every later
resume of that thread with "already has an active writer". Verified against a child that ignores
SIGTERM on purpose.
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