Repository navigation
Interrupt active code-mode cells with their turn - #37483
Merged
copyberry[bot] merged 1 commit intoAug 7, 2026
Merged
copyberry[bot] merged 1 commit into
copyberry[bot] merged 1 commit into
Conversation
## Why Interrupting a turn should also stop code-mode work that the turn left running. ## What changed - Add the disabled-by-default `code_mode_interrupt` feature. - When an interrupted turn has the feature enabled, terminate all active code-mode cells and propagate cancellation through nested tool calls. - Keep the reusable code-mode session alive so its stored state remains available to later turns. ## Testing Add an integration test that interrupts a long-running nested tool, verifies that active and background cells are removed, and confirms that session state is preserved. GitOrigin-RevId: 2b8634776a89b636318a39b9e9ad2eefc07cead8
copyberry
Bot
force-pushed
the
copyberry/codex-internal-to-codex-oss/2b8634776a89b636318a39b9e9ad2eefc07cead8
branch
from
August 7, 2026 18:22
a6fcfa1 to
5095658
Compare
copyberry
Bot
deleted the
copyberry/codex-internal-to-codex-oss/2b8634776a89b636318a39b9e9ad2eefc07cead8
branch
August 7, 2026 18:23
wreynolds79
temporarily deployed
to
issue-triage
August 7, 2026 18:25 — with
GitHub Actions
Inactive
wreynolds79
temporarily deployed
to
issue-triage
August 7, 2026 18:25 — with
GitHub Actions
Inactive
wreynolds79
temporarily deployed
to
issue-triage
August 7, 2026 18:25 — with
GitHub Actions
Inactive
This branch was previously deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Interrupt active code-mode cells with their turn
Why
Interrupting a turn should also stop code-mode work that the turn left running.
What changed
code_mode_interruptfeature.Testing
Add an integration test that interrupts a long-running nested tool, verifies that active and background cells are removed, and confirms that session state is preserved.