Skip to content

[BUG] Some Session files break Auto complete propagation on start #1359

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
1 task done
Helmi opened this issue May 27, 2025 · 1 comment
Open
1 task done

[BUG] Some Session files break Auto complete propagation on start #1359

Helmi opened this issue May 27, 2025 · 1 comment
Assignees
Labels
area:core bug Something isn't working platform:macos Issue specifically occurs on macOS

Comments

@Helmi
Copy link

Helmi commented May 27, 2025

Environment

  • Platform (select one):
    • Anthropic API
  • Claude CLI version: 1.0.3
  • Operating System: macOS 15.5
  • Terminal: iTerm2

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.

@Helmi Helmi added the bug Something isn't working label May 27, 2025
@github-actions github-actions bot added platform:macos Issue specifically occurs on macOS area:core labels May 27, 2025
@Helmi
Copy link
Author

Helmi commented May 27, 2025

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:core bug Something isn't working platform:macos Issue specifically occurs on macOS
Projects
None yet
Development

No branches or pull requests

2 participants