You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After launching claude code the Project's custom commands are not available through autocomplete though they still run when called manually.
Steps to Reproduce
🤷
Expected Behavior
Autocomplete should propagate with custom tools
Actual Behavior
It does not show custom tools from the project
Additional Context
I noticed this the first time today in a more active project. After some trial and error i noticed it can be fixed by cleaning up the session files in ~/.claude/projects/
I kept trying and moving around files until i noticed it comes down to certain files causing trouble. I can't 100% reproduce but it seems to mainly be the big files causing troubles - maybe also the partly extreme long lines in the jsonl format are the issue. However - it should likely not cause the custom commands not load on application start. I'm also not sure why it needs to scan through all the session files on a start without -r to resume previous sessions. It should usually not be required to scan previous sessions but it seemingly does. One of the most recent sessions grew a bit too large maybe (8,1MB) so maybe it's caused by this. Some lines are even longer than 60k characters.
Maybe there's a way to at least manually override the loading of previous sessions if i want to start a new one anyways.
The text was updated successfully, but these errors were encountered:
I'll take back the fact that commands still run even though they don't get listed in auto completion. They do not get loaded/exceuted. What is actually happening is claude code is interpreting "/project:folder:comand" exactly as it would understand "project:folder:command" sent as prompt. It's just my commands are all semantical so the exection is somewhat close to what my commands are like but still different.
There's definitely more that breaks with those sessions.
Environment
Bug Description
After launching claude code the Project's custom commands are not available through autocomplete though they still run when called manually.
Steps to Reproduce
🤷
Expected Behavior
Autocomplete should propagate with custom tools
Actual Behavior
It does not show custom tools from the project
Additional Context
I noticed this the first time today in a more active project. After some trial and error i noticed it can be fixed by cleaning up the session files in
~/.claude/projects/
I kept trying and moving around files until i noticed it comes down to certain files causing trouble. I can't 100% reproduce but it seems to mainly be the big files causing troubles - maybe also the partly extreme long lines in the jsonl format are the issue. However - it should likely not cause the custom commands not load on application start. I'm also not sure why it needs to scan through all the session files on a start without -r to resume previous sessions. It should usually not be required to scan previous sessions but it seemingly does. One of the most recent sessions grew a bit too large maybe (8,1MB) so maybe it's caused by this. Some lines are even longer than 60k characters.
Maybe there's a way to at least manually override the loading of previous sessions if i want to start a new one anyways.
The text was updated successfully, but these errors were encountered: