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

Prompt is too long /compact Error: Error during compaction: Error: Conversation too long. Press esc twice to go up a few messages and try again.

Open ECamposSoria opened this issue 10 months ago • 1 comments

Preflight Checklist

  • [x] I have searched existing issues and this hasn't been reported yet
  • [x] This is a single bug report (please file separate reports for different bugs)
  • [x] I am using the latest version of Claude Code

What's Wrong?

i can't compact conversation, also can't exit conversation and go back to it, it still don't allow me to compact

What Should Happen?

compact the conversation

Error Messages/Logs

Prompt is too long

/compact
Error: Error during compaction: Error: Conversation too long. Press esc twice to go up a few messages and try again.

Steps to Reproduce

reach full context , and then it won't compact , auto compact won't trigger

Claude Model

Opus

Is this a regression?

Yes, this worked in a previous version

Last Working Version

don't know

Claude Code Version

2.0.72 (Claude Code)

Platform

Anthropic API

Operating System

Ubuntu/Debian Linux

Terminal/Shell

VS Code integrated terminal

Additional Information

No response

ECamposSoria avatar Jan 14 '26 18:01 ECamposSoria

I believe claude.ai is also broken from this.

dwight000 avatar Jan 14 '26 21:01 dwight000

Closing for now — inactive for too long. Please open a new issue if this is still relevant.

github-actions[bot] avatar Feb 27 '26 10:02 github-actions[bot]

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 Mar 08 '26 14:03 github-actions[bot]