fix(prompt-processing): search the real transcript root in findSessionJsonl - #1934
Open
jbmml wants to merge 1 commit into
Open
fix(prompt-processing): search the real transcript root in findSessionJsonl#1934jbmml wants to merge 1 commit into
jbmml wants to merge 1 commit into
Conversation
…nJsonl
findSessionJsonl searched paiPath('projects'), which resolves to
~/.claude/LIFEOS/projects — a directory that never exists. Claude Code writes
transcripts to <config dir>/projects. The function therefore always returned
null, getCustomTitle always returned null, and the /rename custom-title JSONL
sync never fired. Search CLAUDE_CONFIG_DIR (falling back to ~/.claude)/projects
instead. Fixes danielmiessler#1931.
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.
Fixes #1931.
findSessionJsonlsearchedpaiPath('projects'), which resolves to~/.claude/LIFEOS/projects— a directory that never exists. Claude Code writes transcripts to<config dir>/projects. So the function always returned null,getCustomTitlealways returned null, and the/renamecustom-title JSONL sync never fired.One-line fix: search
process.env.CLAUDE_CONFIG_DIR || ~/.claude+/projects(join/homedirare already imported). Two other stock files resolve the transcript root this way already.