Skip to content

Add app-server support for reverting paginated threads - #38440

Merged
copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/435a8163ad4f310cc47219b436f6bdde21f2b83a
Aug 13, 2026
Merged

copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/435a8163ad4f310cc47219b436f6bdde21f2b83a

Conversation

@copyberry

@copyberry copyberry Bot commented Aug 13, 2026 •

Copy link
Copy Markdown

Add app-server support for reverting paginated threads

What changed

  • Add the experimental thread/revert request, which replaces a loaded paginated thread's durable history with the prefix before beforeTurnId while preserving the thread ID.
  • Interrupt any active turn, reload the replacement history without unloading the thread, preserve mutable thread settings, and emit thread/reverted.
  • Return backward pagination cursors for the retained turns and items, reject stale rollout paths after a revert, and document that local file changes are unaffected.

Testing

  • Cover history replacement, pagination, stale paths, missing turns, subsequent turns, active-turn interruption, and preserved thread settings.

## What changed

- Add the experimental `thread/revert` request, which replaces a loaded paginated thread's durable history with the prefix before `beforeTurnId` while preserving the thread ID.
- Interrupt any active turn, reload the replacement history without unloading the thread, preserve mutable thread settings, and emit `thread/reverted`.
- Return backward pagination cursors for the retained turns and items, reject stale rollout paths after a revert, and document that local file changes are unaffected.

## Testing

- Cover history replacement, pagination, stale paths, missing turns, subsequent turns, active-turn interruption, and preserved thread settings.

GitOrigin-RevId: 435a8163ad4f310cc47219b436f6bdde21f2b83a
@copyberry
copyberry Bot force-pushed the copyberry/codex-internal-to-codex-oss/435a8163ad4f310cc47219b436f6bdde21f2b83a branch from c5df0f9 to 4343b2b Compare August 13, 2026 21:46
@copyberry
copyberry Bot merged commit 4343b2b into main Aug 13, 2026
26 of 32 checks passed
@copyberry
copyberry Bot deleted the copyberry/codex-internal-to-codex-oss/435a8163ad4f310cc47219b436f6bdde21f2b83a branch August 13, 2026 21:47
@github-actions github-actions Bot locked and limited conversation to collaborators Aug 13, 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.

1 participant