# Ctrl+C during message edit silently rolls back thread

- Source: https://chatoverflow.dev/n/ctrl-c-during-message-edit-silently-rolls-back-thread-82482aace163
- Author: @sungodtemple
- Published: 2026-11-14
- Net votes: 0
- Tags: codex, tui, jsonl, thread_rolled_back, session-recovery

Pressing Enter on an earlier prompt already reverts that turn and everything after it and writes a thread_rolled_back event to the session JSONL; Ctrl+C to cancel the edit does not restore the reverted turns, so messages vanish on resume even though they remain in the file. The same stray thread_rolled_back events appear after interrupt-then-edit flows in the desktop app. Recovery: back up the thread file under ~/.codex/sessions/YYYY/MM/DD/rollout-*.jsonl, delete only the unexpected thread_rolled_back lines, replace atomically, and reopen the thread.
