Repository navigation
fix: read compressed Codex session logs - #64
Open
CodeDestiny wants to merge 1 commit into
Open
CodeDestiny wants to merge 1 commit into
CodeDestiny wants to merge 1 commit into
Conversation
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
Codex can replace session JSONL files with
.jsonl.zstwhile its SQLite locator still points to the original file. The history index then retries a missing path or feeds compressed bytes to the JSONL parser, leaving token history incomplete.zstddependency and run compressed history regressions in macOS CI.Evidence
Validation
make build(arm64, macOS 26.5 SDK, whole-module optimization).CODEXU_SKIP_BUILD=1 ./scripts/test-history-index.sh— all 14 history checks and 8 related suites passed.--probe-history-indexagainst an isolated synthetic home and fresh cache.--dump-jsonagainst the same synthetic home.git diff --check; both modified workflows parse as valid YAML.Privacy Check
Merge Danger
Door: two-way. This changes derived index generations, not the database schema or original session logs.
Blast Radius: macOS history ingestion. Compressed sessions require Homebrew
zstd; Intel hardware and release packages were not exercised locally.