mirror of
https://github.com/openai/codex.git
synced 2026-11-27 23:31:09 +00:00
Preserve restored input after resolved misalignment errors (#42399)
## Why Replaying a thread after a later turn has continued can treat an earlier misalignment policy violation as still active, clearing the restored draft and queued follow-up input. ## What changed - Track the latest turn independently of the bounded replay buffer. - Omit misalignment errors from older turns during snapshot and stored-turn replay while preserving an error on the latest turn. - Keep interrupted tool calls from the older turn visible in history. ## Testing Added buffered replay coverage for restored drafts and queued messages, buffer eviction, current-turn violations, and interrupted tool rendering. GitOrigin-RevId: d6c223d9c5a1905fe1b48dc5f9514a7ccbf61d92
This commit is contained in:
1 parent
e6a944ad75
commit
54a4077c8b
7 files changed
+266
-6
No files matched your search
+6
@@ -0,0 +1,6 @@
|
||||
---
|
||||
source: tui/src/app/tests/buffered_replay.rs
|
||||
expression: rendered
|
||||
---
|
||||
• Called sample.inspect({})
|
||||
└ Error: interrupted
|
||||
+11
@@ -0,0 +1,11 @@
|
||||
---
|
||||
source: tui/src/app/tests/buffered_replay.rs
|
||||
expression: "normalize_snapshot_paths(render_bottom_popup(&app.chat_widget, 80))"
|
||||
---
|
||||
• Queued follow-up inputs
|
||||
↳ keep queued
|
||||
⌥ + ↑ edit last queued message
|
||||
|
||||
› keep draft
|
||||
|
||||
gpt-5.6-sol default · /tmp/project
|
||||
Reference in new issue
Block a user