Add app-server support for reverting paginated threads (
What changed #
- Add the experimental
thread/revertrequest, which replaces a loaded paginated thread's durable history with the prefix beforebeforeTurnIdwhile preserving the thread ID. - Interrupt any active turn, reload the replacement history without un 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)
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.Lines changed: 33 additions & 0 deletions
Some generated files are not rendered by default. Learn more about
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.Lines changed: 13 additions & 0 deletions
Some generated files are not rendered by default. Learn more about
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.## 0 commit comments
Comments
(0)