claude-code icon indicating copy to clipboard operation
claude-code copied to clipboard

[BUG /compact output not available in --continue after exiting (ctrl-c)

Open jscalo opened this issue 10 months ago • 3 comments

Bug Description It said "Context left until auto-compact: 14%" so I did /compact which completed. I saw that there was an update available so I quit (^C^C) and then did claude --continue. But when claude loaded it once again showed "Context left until auto-compact: 14%" as if I hadn't performed the /compact.

Environment Info

  • Platform: macos
  • Terminal: Apple_Terminal
  • Version: 1.0.4
  • Feedback ID: 6ea7608c-735f-4582-bbf3-3101496ffda8

Errors

[There was too much personal info here that I had to redact.]

Note: Error logs were truncated.

jscalo avatar May 28 '25 17:05 jscalo

Sounds like a potential race condition between when compact completed and when you ctrl-c out of the application? I'm unable to repro it, could it be that you exited the app very quickly after compact completed?

sid374 avatar May 28 '25 20:05 sid374

Hmm, it wouldn't have been all that quick. I definitely let the compact fully complete, then noticed the "update available" message, then quit, then relaunched. My guess is ~5-10s between when /compact finished and when I quit.

jscalo avatar May 28 '25 21:05 jscalo

I've tried this several times since and it has not reproduced again. Feel free to close.

jscalo avatar Jun 02 '25 20:06 jscalo

This issue has been automatically locked since it was closed and has not had any activity for 7 days. If you're experiencing a similar issue, please file a new issue and reference this one if it's relevant.

github-actions[bot] avatar Aug 10 '25 14:08 github-actions[bot]