Codex adds experimental thread/revert support OpenAI's Codex commit 4343b2b adds experimental thread/revert support, enabling replacement of a loaded paginated thread's durable history with the prefix before a specified turn while preserving the thread ID. The change includes interrupting active turns, reloading replacement history, preserving thread settings, and emitting a 'thread/reverted' event, with 939 additions and 21 deletions across 24 files. 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