Repository navigation
fix(codex): ignore missing mirrored session history - #100484
Conversation
353caf9 to
6bff4ed
Compare
|
Codex review: needs maintainer review before merge. Reviewed July 5, 2026, 6:52 PM ET / 22:52 UTC. Summary PR surface: Source +8, Tests +47. Total +55 across 3 files. Reproducibility: yes. source-reproducible: current main turns any mirrored-history read error into undefined, and the caller logs the reported warning for undefined. I did not run tests because this cleanup review is read-only, but the PR body includes real terminal and Testbox proof for the after-fix path. Review metrics: none identified. Stored data model Root-cause cluster Members:
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything. Merge readiness Overall follows the weaker of proof and patch quality, so missing proof can cap an otherwise strong patch. Risk before merge
Maintainer options:
Next step before merge
Security Review detailsBest possible solution: Land this narrowed maintainer replacement once the normal exact-head merge gates pass, then close or supersede the related contributor PR with the preserved authorship context. Do we have a high-confidence way to reproduce the issue? Yes, source-reproducible: current main turns any mirrored-history read error into undefined, and the caller logs the reported warning for undefined. I did not run tests because this cleanup review is read-only, but the PR body includes real terminal and Testbox proof for the after-fix path. Is this the best way to solve the issue? Yes. Handling only ENOENT in the lower mirrored-history reader is the best fix because it matches the new-session lifecycle and is narrower than suppressing the wrapper warning for all failures. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against a905eb42acda. Label changesLabel changes:
Label justifications:
Evidence reviewedPR surface: Source +8, Tests +47. Total +55 across 3 files. View PR surface stats
What I checked:
Likely related people:
What the crustacean ranks mean
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics. How this review workflow works
|
|
Land-ready proof for
No known proof gaps. The original contributor commits and Alex Tang's authorship are preserved from #99575. |
|
Merged via squash.
|
* fix(codex): ignore missing mirrored session history * test(codex): prove missing mirrored history stays quiet * fix(codex): narrow missing history proof --------- Co-authored-by: Alex Tang <[email protected]>
* fix(codex): ignore missing mirrored session history * test(codex): prove missing mirrored history stays quiet * fix(codex): narrow missing history proof --------- Co-authored-by: Alex Tang <[email protected]> (cherry picked from commit 17ba497)
What Problem This Solves
Codex startup can read mirrored session history before the transcript file exists. The missing file was treated like malformed history, which emitted a misleading warning during a normal new-session race.
Related: #99575
Why This Change Was Made
Treat only
ENOENTas empty mirrored history. Existing but unreadable or malformed transcripts still return the warning-triggering failure result.This is a clean maintainer replacement for #99575 after GitHub's
createCommitOnBranchmutation returned HTTP 499 while updating the contributor fork to currentmain. The original contributor commits and Alex Tang's authorship are preserved; the maintainer commit only narrows the tests and documents the lifecycle invariant.User Impact
New Codex sessions no longer emit a false missing-history warning during startup. Real transcript read or parse failures remain visible.
Evidence
blacksmith-testbox, idtbx_01kwt620rby5h12z4e32wq1shd, 2 files and 11 tests passed.pnpm check:changed; all selected extension production/test typecheck, lint, boundary, database-first, sidecar, and import-cycle gates passed.thread/startcreates new history while resume history is a separate API.