Add per-session code-mode execution limits - #37114
Merged
copyberry[bot] merged 1 commit intoAug 5, 2026
Merged
Conversation
## What changed - Add `create_session_with_limits` and session-scoped cell execution limits. - Clamp execute and wait yield times to the session's `max_yield_time_ms` without terminating the running cell. - Negotiate support with remote code-mode hosts and include non-default limits in `session/open`, while keeping unlimited sessions compatible with hosts and providers that do not support limits. ## Testing - Cover yield-time clamping, zero-timeout behavior, and isolation between sessions. - Cover wire serialization, capability negotiation, unsupported hosts, and shared process-host execution. GitOrigin-RevId: 9517321cd605bb87f93eeaa6ba331cc2e346e582
copyberry
Bot
force-pushed
the
copyberry/codex-internal-to-codex-oss/9517321cd605bb87f93eeaa6ba331cc2e346e582
branch
from
August 5, 2026 16:09
4b3ce0e to
9d00bb0
Compare
Contributor
|
I have read the CLA Document and I hereby sign the CLA You can retrigger this bot by commenting recheck in this Pull Request. Posted by the CLA Assistant Lite bot. |
copyberry
Bot
deleted the
copyberry/codex-internal-to-codex-oss/9517321cd605bb87f93eeaa6ba331cc2e346e582
branch
August 5, 2026 16:10
mcbarbera10-cell
temporarily deployed
to
issue-triage
August 5, 2026 16:36 — with
GitHub Actions
Inactive
mcbarbera10-cell
temporarily deployed
to
issue-triage
August 5, 2026 16:36 — with
GitHub Actions
Inactive
mcbarbera10-cell
temporarily deployed
to
issue-triage
August 5, 2026 16:36 — with
GitHub Actions
Inactive
mcbarbera10-cell
temporarily deployed
to
issue-triage
August 5, 2026 16:37 — with
GitHub Actions
Inactive
LIghtJUNction
temporarily deployed
to
issue-triage
August 5, 2026 16:43 — with
GitHub Actions
Inactive
LIghtJUNction
temporarily deployed
to
issue-triage
August 5, 2026 16:43 — with
GitHub Actions
Inactive
LIghtJUNction
temporarily deployed
to
issue-triage
August 5, 2026 16:43 — with
GitHub Actions
Inactive
LIghtJUNction
temporarily deployed
to
issue-triage
August 5, 2026 16:45 — with
GitHub Actions
Inactive
sudeekshamurari
temporarily deployed
to
issue-triage
August 5, 2026 17:07 — with
GitHub Actions
Inactive
sudeekshamurari
temporarily deployed
to
issue-triage
August 5, 2026 17:07 — with
GitHub Actions
Inactive
sudeekshamurari
temporarily deployed
to
issue-triage
August 5, 2026 17:07 — with
GitHub Actions
Inactive
rosso-bayram
temporarily deployed
to
issue-triage
August 5, 2026 17:29 — with
GitHub Actions
Inactive
rosso-bayram
temporarily deployed
to
issue-triage
August 5, 2026 17:29 — with
GitHub Actions
Inactive
rosso-bayram
temporarily deployed
to
issue-triage
August 5, 2026 17:29 — with
GitHub Actions
Inactive
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.
Add per-session code-mode execution limits
What changed
create_session_with_limitsand session-scoped cell execution limits.max_yield_time_mswithout terminating the running cell.
in
session/open, while keeping unlimited sessions compatible with hosts andproviders that do not support limits.
Testing
sessions.
shared process-host execution.