What Codex
keeps from a turn.
By Alvin
Suppose you reopen the chat a week later. Codex can show the file read and the answer as separate entries because it records events as it works. In its protocol a thread is the conversation, a turn is one request’s work, and an item is an event such as a message or command. Here is the short version developers can inspect. [24]
thread/start or thread/resume
turn/start
item/started
item/completed
turn/completed
Simplified event sequence. A real turn can emit many items and text deltas. Developers use IDs to match activity to the right thread, turn and item. See the current protocol for message shapes. [24]
OpenAI documents a saved local thread log using JSON Lines, one JSON record per line. Archive moves the persisted log into the archive. Resume loads a stored thread. The current checked-out files, running terminals and outside side effects have their own state. [24] [25]
