Skip to content

perf(codex): skip unrelated session transcript tails#1554

Open
developerisnow wants to merge 1 commit into
chenhg5:mainfrom
developerisnow:perf/codex-session-list-cache
Open

perf(codex): skip unrelated session transcript tails#1554
developerisnow wants to merge 1 commit into
chenhg5:mainfrom
developerisnow:perf/codex-session-list-cache

Conversation

@developerisnow

@developerisnow developerisnow commented Jul 15, 2026

Copy link
Copy Markdown

Summary

  • Stop parsing a Codex transcript as soon as valid session metadata identifies a different workspace.
  • Preserve full parsing for matching, missing, or malformed metadata.
  • Cover the early-exit regression, malformed leading lines, CODEX_HOME, symlinks, and mtime ordering.

Motivation

The session list walks every JSONL transcript before applying its workspace filter. Large Codex histories therefore spend most of their time decoding transcripts that cannot appear in the result.

Verification

  • go test ./agent/codex -count=1 with Go 1.25: passed.
  • git diff --check: passed.
  • go test ./...: blocked by existing checkout/environment failures: missing generated web/dist assets and two unrelated core SaveFilesToDisk tests.

@developerisnow developerisnow requested a review from chenhg5 as a code owner July 15, 2026 20:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant