Files
codex/codex-rs/tui/src
T
Ahmed Ibrahim 764f3c7d03 fix(tui) Defer backtrack trim until rollback confirms (#9401)
Document the backtrack/rollback state machine and invariants between the
transcript overlay, in-flight “live tail”, and core thread state (tui + tui2).

Also adjust behavior for correctness:
- Track a single pending rollback and block additional rollbacks until core responds.
- Defer trimming transcript cells until ThreadRolledBack for the active session.
- Clear the guard on ThreadRollbackFailed so the user can retry.
- After a confirmed trim, schedule a one-shot scrollback refresh on the next draw.
- Clear stale pending rollback state when switching sessions.

---------

Co-authored-by: Josh McKinney <joshka@openai.com>
764f3c7d03 · 2026-01-17 06:29:41 +00:00
History
..
2026-01-14 12:51:42 -08:00
2025-09-15 00:42:53 -07:00
2025-08-05 04:23:22 +00:00
2025-12-18 10:59:53 -08:00
2026-01-06 18:02:05 +00:00
2025-09-30 00:10:04 +00:00