[#32]: Compat audit for Codex v0.129.0 persist_extended_history disabled#43
Open
[#32]: Compat audit for Codex v0.129.0 persist_extended_history disabled#43
Conversation
Codex v0.129.0 (PRs #20502/#20682) disables persist_extended_history and enforces always-limited thread history at the app-server level. codex-trace is unaffected: it reads JSONL session files from disk and never fetches history from the app-server, so all turns remain visible regardless of the server-side history window size. When Codex CLI hits the limited window it writes a 'compacted' entry into the session file. codex-trace already handles this via has_compaction, and the new regression test proves: - all turns are captured (no silent truncation) - compacted entries are correctly attributed to the turn in which they appear Fixes #32
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Fixes #32
Codex v0.129.0 (PRs #20502/#20682) disables
persist_extended_historyand enforces an always-limited thread history window at the app-server level. The issue raised concern that codex-trace might silently drop turns for long sessions.Audit Finding
codex-trace is unaffected by this change. The tool reads JSONL session files from disk (
~/.codex/sessions/YYYY/MM/DD/rollout-*.jsonl) — it never connects to the Codex app-server or fetches history from it. All events written to the rollout file are captured regardless of what the app-server returned to the Codex CLI.When Codex CLI hits the limited history window, it writes a
compactedentry into the JSONL session file. codex-trace already handles this viahas_compactiononCodexTurn, and the UI surfaces it as "Context was compacted in this turn." No turns are silently dropped and no reconstruction logic assumes full history from the app-server.The "rollout-file fallback" suggested in the issue is already the primary and only data source.
Changes
src-tauri/src/parser/turn.rsAdded regression test
v0129_persist_extended_history_disabled_all_turns_captured_compaction_flaggedthat:compactedentry inside turn 3has_compactionis correctly set on turn 3 (the turn containing thecompactedentry)Testing