What version
- openai/codex (desktop + CLI)
Severity
P1 - local disk growth and resumability risk from persistent thread fork storage amplification
What is happening
A newly forked/branched thread can still persist a full parent-history payload instead of only fork-local delta when forked_from_id exists, producing large duplicated .jsonl rollouts and rapidly exhausting disk.
Observed local reproduction matches the following parent/thread IDs:
- Parent thread:
019e1823-6e48-75f0-a644-c8c043cef937
- Child thread:
019f9ff6-d5eb-7292-9446-add44e4024b2
- Child thread:
019fa108-23a7-7921-ab39-0092e1227f2d
These files are in ~/.codex/sessions/2026/07/27/ and are still showing duplicated large inherited content characteristics unless rewritten, and they are expected to be reduced to local-only delta with a parent cutoff (history_base).
Expected behavior
- Child thread rollouts must not materialize parent history inline when a fork boundary exists.
- Child rollouts should store the minimum delta after a valid
forked_from_id / boundary offset.
- Legacy readers must remain compatible, with explicit
history_base metadata for managed children.
Why this is urgent
- Existing local report already shows large local growth and high-pressure behavior in
~/.codex/sessions.
- Parent-child duplication can silently multiply costs for long sessions and repeated forking.
- It also increases startup/replay and context-reconstruction cost.
Related context
I have a local patch-set with hardening around:
- managed child validation at read/list/fork paths
- path/rollout lock scoping fixes to avoid resume deadlock
- reference child rejection for malformed / external rows
- fork/reference history cutoff handling in
thread-store and rollout_lineage
Related issues already discussed:
- 22593 (Session forks duplicate parent history on disk)
- 34337 (CLI + Desktop session rollouts consume huge disk)
- 34268 (forks duplicate compaction snapshots)
Please triage as urgent because this is a repeatable storage amplification class and affects both CLI/Desktop shared persistence.
What version
Severity
P1 - local disk growth and resumability risk from persistent thread fork storage amplification
What is happening
A newly forked/branched thread can still persist a full parent-history payload instead of only fork-local delta when
forked_from_idexists, producing large duplicated.jsonlrollouts and rapidly exhausting disk.Observed local reproduction matches the following parent/thread IDs:
019e1823-6e48-75f0-a644-c8c043cef937019f9ff6-d5eb-7292-9446-add44e4024b2019fa108-23a7-7921-ab39-0092e1227f2dThese files are in
~/.codex/sessions/2026/07/27/and are still showing duplicated large inherited content characteristics unless rewritten, and they are expected to be reduced to local-only delta with a parent cutoff (history_base).Expected behavior
forked_from_id/ boundary offset.history_basemetadata for managed children.Why this is urgent
~/.codex/sessions.Related context
I have a local patch-set with hardening around:
thread-storeandrollout_lineageRelated issues already discussed:
Please triage as urgent because this is a repeatable storage amplification class and affects both CLI/Desktop shared persistence.