Where each harness keeps the record of past sessions, how to get back into one, and how to keep, export or remove them. Every record type and field inside a transcript is on the Transcript format page. Automatic notes carried between sessions are on the Memories page.
What is saved
| Question | Codex CLIchecked at 0.169.0 |
|---|---|
| Where sessions are saved | Each session is one file at If |
| Subagent and forked sessions | Each subagent gets its own rollout file in the same Ephemeral subagents are unsaved. Side-chat persistence is separate: temporary versus persisted attached chat depends on workspace, parent history and server capability. |
| Prompt history | Prompt history for Up/Down recall and Ctrl+R search is a separate file, The docs call this file 'session transcripts', but full transcripts live in |
Getting back to a session
| Question | Codex CLIchecked at 0.169.0 |
|---|---|
| Resume or continue | Run When the saved working directory differs from the current one, Codex asks which to use. Set Since 0.163.0, resuming a thread restores its permissions and network approvals, unless you override them or managed policy blocks them. |
| Find a past session |
Session names are kept in |
| Export or share | Partly
Wait for the current turn to finish before running |
| Read sessions from code | The supported interface is
|
Keeping and removing
| Question | Codex CLIchecked at 0.169.0 |
|---|---|
| How long they are kept | Partly Session files are kept until you remove them; Codex never deletes them by age. If you delete files by hand, the SQLite index in |
| Don't save this session | Partly codex exec --ephemeral and App Server ephemeral threads avoid the local rollout. history.persistence=none controls prompt recall only. Side chats have two policies at 0.169.0: temporary chats are ephemeral; the opt-in terminal workspace can create persisted attached chats when a local paginated parent and server support permit it, with a temporary fallback. Do not assume every /side chat is unsaved. The config reference describes |
| Cloud sync and upload | Partly LocalThreadStore writes local rollouts. A core host can inject another ThreadStore, and the TUI separately registers a native Cloud backend on supported platforms when its multi-backend feature and availability/policy checks pass. Cloud list/turn/item requests are adapted to native hosted operations; matching method names do not make this the local App Server transport or establish Cloud storage internals. No general absence of upload or sync is established across hosts. ChatGPT Work local-thread sync is a separate ChatGPT Work feature; Codex keeps its own history. |
Notes and sources
Codex CLI, 39 sources
- Rollout JSONL is a harness-owned durable artifact, not a published compatibility API.
- Prompt history.jsonl is a different artifact; history.persistence controls only that file.
- 0.164.0 source refresh: resume lookup visits plain/compressed rollout filenames, and App Server restores persisted thread settings from turn context/settings events. Older format and storage claims retain their original source pins.
- Automatic-approval findings specifically audited at rust-v0.164.0 / 6aaac694803004a63c6f393d153c96d22521a6b9 (2026-10-26); that historical baseline is retained in the 2026-11-15 evidence manifest, which separately refreshes the current local format.
- 0.164.0 parent turn_context records preserve approval_policy and approvals_reviewer; the current writer fills approvals_reviewer, and persisted thread_settings_applied snapshots also carry it. This establishes the selected reviewer, not a per-action review outcome.
- GuardianAssessment and GuardianWarning are transient and excluded from local rollout persistence. Do not treat missing guardian_assessment records in the parent transcript as evidence that no review occurred.
- The registered reviewer creates sessions with session_meta.source = {internal: guardian} and thread_source = guardian_review. Non-ephemeral reviewer trunks use normal session persistence and can contain the reviewed action/context plus final JSON outcome, risk_level, user_authorization and rationale. Low-risk output can contain only outcome = allow; the parser supplies defaults.
- A reviewer session can serve several reviews. Busy/incompatible reviews use ephemeral forks; an ephemeral parent also propagates its setting. Thus not every review has a saved reviewer transcript. These are internal sessions, distinct from ordinary subagent.thread_spawn lineage.
- For live reviews capture App Server item/autoApprovalReview/started and item/autoApprovalReview/completed, correlating threadId, turnId, reviewId and targetItemId when present. They contain action and review status/risk/authorization/rationale, but are notifications, not durable transcript items; payload is marked unstable. codex exec --json drops unmatched notifications and is not this audit stream. See docs/research/automatic-approval.md.
- Persistence conclusions apply to the ordinary local rollout store; desktop presentation, custom/cloud stores and hosted retention are not established by this source audit. No live classifier or transcript-production probe was run.
- 2026-11-13 supplement, Codex rust-v0.167.2 at ce21072c90d32c40af7a55b60b2fb35c84a43a6a: assistant text can contain :codex-file-citation{path="…" purpose="source"}. This is inline message markup, not a new JSONL record or memory_citation field. The TUI assistant renderer interprets it; external transcript/App Server consumers need their own rendering. HTTPS paths are live-observed; the inspected TUI treats non-local paths as relative, so its destination logic is not a web-link contract. See docs/research/codex-file-citations.md and docs/research/evidence/codex-file-citations-2026-11-13.json. The original supplement did not refresh the full schema; the 2026-11-15 audit supplies the current local format pin.
- 2026-11-15 source refresh: rust-v0.169.0 at d32063f96c2dff1dc96af839b3952abb6acfeda4. Source inspection, not a harness runtime probe. Historical supplements keep their independent evidence and dates.
- Older user-facing resume/export/history instructions retain their dated documentation evidence; the 0.169.0 refresh audits the local storage writer, parser, reconstruction and host/provider boundary. It does not establish proprietary desktop behavior.
- At 0.169.0 the opt-in terminal workspace can persist attached side chats; temporary chats remain ephemeral. The same /side UI action does not imply one storage policy across configurations.
Where sessions are saved, 5
Subagent and forked sessions, 8
Resume or continue, 3
Read sessions from code, 14
- Codex App Server documentation: list
- Codex App Server documentation: read
- Codex App Server documentation: resume
- Codex App Server documentation: fork
- Codex App Server documentation: approvals
- Codex App Server documentation: stream
- Codex App Server documentation: cancel
- Codex documentation: connect the CLI terminal UI
- Codex documentation: App Server protocol