Codex Session File Locations and Current Thread Recovery
active
Edit Selected
Codex local session/history file locations captured on 2026-03-21 for recovery after restart.
Primary Codex storage root:
- `/home/svc-admin/.codex`
Useful files and directories:
- session index / searchable history:
- `/home/svc-admin/.codex/history.jsonl`
- per-session transcript files:
- `/home/svc-admin/.codex/sessions`
- Codex log file:
- `/home/svc-admin/.codex/log/codex-tui.log`
- shell snapshots:
- `/home/svc-admin/.codex/shell_snapshots`
- state database files:
- `/home/svc-admin/.codex/state_5.sqlite`
- `/home/svc-admin/.codex/logs_1.sqlite`
Current thread identifiers:
- session ID:
- `019d0943-7cb0-7b10-ac78-b01c9c11111b`
- direct per-session transcript path:
- `/home/svc-admin/.codex/sessions/2026/03/20/rollout-2026-03-20T03-21-51-019d0943-7cb0-7b10-ac78-b01c9c11111b.jsonl`
Useful search terms for this thread in `history.jsonl`:
- `LedgerBridge`
- `Jessica`
- `datalab`
- `current_workflow_demo`
Example recovery command:
- `rg '019d0943-7cb0-7b10-ac78-b01c9c11111b|LedgerBridge|Jessica|datalab' /home/svc-admin/.codex/history.jsonl`
Important distinction:
- `history.jsonl` is the easiest searchable index for finding the right thread.
- `sessions/...jsonl` contains the fuller per-session transcript and tool activity for a specific thread.
---
**2026-03-21 00:00:00 UTC | AI Update via MCP**
---
**2026-03-21 07:00:21 UTC | Created via MCP**