Skip to content

Skip restored token usage replay for exec resumes - #35621

Merged
copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/3347071142e7453ea9e3ac9ac292aa5384d98430
Jul 27, 2026
Merged

Skip restored token usage replay for exec resumes#35621
copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/3347071142e7453ea9e3ac9ac292aa5384d98430

Conversation

@copyberry

@copyberry copyberry Bot commented Jul 27, 2026

Copy link
Copy Markdown

Skip restored token usage replay for exec resumes

What changed

Set excludeTurns on codex exec thread resume requests so the app server
does not return reconstructed turns or replay their restored token usage.

Testing

Extend the resume --last integration test to verify that resuming a session
emits only the live turn's thread/tokenUsage/updated event.

## What changed

Set `excludeTurns` on `codex exec` thread resume requests so the app server
does not return reconstructed turns or replay their restored token usage.

## Testing

Extend the `resume --last` integration test to verify that resuming a session
emits only the live turn's `thread/tokenUsage/updated` event.

GitOrigin-RevId: 3347071142e7453ea9e3ac9ac292aa5384d98430
@copyberry
copyberry Bot force-pushed the copyberry/codex-internal-to-codex-oss/3347071142e7453ea9e3ac9ac292aa5384d98430 branch from 72a4846 to fea2d8b Compare July 27, 2026 14:14
@copyberry
copyberry Bot merged commit fea2d8b into main Jul 27, 2026
14 of 32 checks passed
@copyberry
copyberry Bot deleted the copyberry/codex-internal-to-codex-oss/3347071142e7453ea9e3ac9ac292aa5384d98430 branch July 27, 2026 14:15
@github-actions github-actions Bot locked and limited conversation to collaborators Jul 27, 2026
@imsmi
imsmi temporarily deployed to issue-triage July 27, 2026 14:25 — with GitHub Actions Inactive
@imsmi
imsmi temporarily deployed to issue-triage July 27, 2026 14:25 — with GitHub Actions Inactive
@imsmi
imsmi temporarily deployed to issue-triage July 27, 2026 14:25 — with GitHub Actions Inactive
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.

2 participants