# Codex adds experimental thread/revert support

> Source: <https://github.com/openai/codex/commit/4343b2bdc4e7eb95880a230e588bd07d9f181c2f>
> Published: 2026-08-13 21:58:21+00:00

# Commit 4343b2b

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.
GitOrigin-RevId: 435a8163ad4f310cc47219b436f6bdde21f2b83a[#38440](https://github.com/openai/codex/pull/38440))

```
1 parent 1992f8c commit 4343b2bCopy full SHA for 4343b2b
```

24 files changed

Lines changed: 939 additions & 21 deletions

## File tree

- codex-rs
- app-server-protocol
- schema
- json
- v2

- precomputed
- typescript
- v2

- src/protocol
- v2

- app-server
- src
- request_processors

- tests/suite/v2

- core/src
- tui/src
- app
- tests

- chatwidget

Lines changed: 31 additions & 0 deletions

Some generated files are not rendered by default. Learn more about

[customizing how changed files appear on GitHub.](https://docs.github.com/github/administering-a-repository/customizing-how-changed-files-appear-on-github)Lines changed: 33 additions & 0 deletions

Some generated files are not rendered by default. Learn more about

[customizing how changed files appear on GitHub.](https://docs.github.com/github/administering-a-repository/customizing-how-changed-files-appear-on-github)Lines changed: 33 additions & 0 deletions

Some generated files are not rendered by default. Learn more about

[customizing how changed files appear on GitHub.](https://docs.github.com/github/administering-a-repository/customizing-how-changed-files-appear-on-github)Lines changed: 13 additions & 0 deletions

Some generated files are not rendered by default. Learn more about

[customizing how changed files appear on GitHub.](https://docs.github.com/github/administering-a-repository/customizing-how-changed-files-appear-on-github)Binary file not shown.

Binary file not shown.

Lines changed: 2 additions & 1 deletion

Some generated files are not rendered by default. Learn more about

[customizing how changed files appear on GitHub.](https://docs.github.com/github/administering-a-repository/customizing-how-changed-files-appear-on-github)## 0 commit comments

Comments

(0)
