Skip to content

[codex] scan session files until project cwd is found#471

Draft
chaochaoweb3 wants to merge 1 commit into
winfunc:mainfrom
chaochaoweb3:codex/scan-session-cwd-lines
Draft

[codex] scan session files until project cwd is found#471
chaochaoweb3 wants to merge 1 commit into
winfunc:mainfrom
chaochaoweb3:codex/scan-session-cwd-lines

Conversation

@chaochaoweb3

Copy link
Copy Markdown

Summary

  • scan each Claude session JSONL file until a non-empty cwd entry is found instead of stopping after the first 10 lines
  • add a regression test where metadata entries push cwd past that previous 10-line limit

Why

The existing fallback still decodes ~/.claude/projects/<encoded> directory names when cwd is not found quickly. That decode is ambiguous for paths with dashes or underscores, which is the same failure mode discussed in #465 and later reports on #444.

Validation

  • git diff --check
  • equivalent scan sanity check with Python

I could not run the Rust test locally because this machine does not currently have cargo or rustfmt installed in PATH.

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