Skip to content

Add per-session code-mode execution limits - #37114

Merged
copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/9517321cd605bb87f93eeaa6ba331cc2e346e582
Aug 5, 2026
Merged

Add per-session code-mode execution limits#37114
copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/9517321cd605bb87f93eeaa6ba331cc2e346e582

Conversation

@copyberry

@copyberry copyberry Bot commented Aug 5, 2026

Copy link
Copy Markdown

Add per-session code-mode execution limits

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.

## 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
copyberry Bot force-pushed the copyberry/codex-internal-to-codex-oss/9517321cd605bb87f93eeaa6ba331cc2e346e582 branch from 4b3ce0e to 9d00bb0 Compare August 5, 2026 16:09
@github-actions

github-actions Bot commented Aug 5, 2026

Copy link
Copy Markdown
Contributor


Thank you for your submission, we really appreciate it. Like many open-source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution. You can sign the CLA by just posting a Pull Request Comment same as the below format.


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
copyberry Bot merged commit 9d00bb0 into main Aug 5, 2026
25 of 30 checks passed
@copyberry
copyberry Bot deleted the copyberry/codex-internal-to-codex-oss/9517321cd605bb87f93eeaa6ba331cc2e346e582 branch August 5, 2026 16:10
@github-actions github-actions Bot locked and limited conversation to collaborators Aug 5, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.