Skip to content

[BUG] Prompt is too long (Claude for VS Code) #15896

Description

@EntropyReversed

Preflight Checklist

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

What's Wrong?

I lost my few weeks long session due to "Prompt is too long",
When i tired to run /compact I got this:
Error: Error during compaction: Error: Conversation too long. Press esc twice to go up a few messages and try again.

Then I started brand new session, and after literally 10 minutes I got exact same issue again

What Should Happen?

It should compact it by itself, and if it doesn't, /compact should work!

Error Messages/Logs

Steps to Reproduce

Start new session, give task to Claude, after 10 minutes "Prompt is too long" message pops up and compact is not working

Claude Model

Opus

Is this a regression?

Yes, this worked in a previous version

Last Working Version

No response

Claude Code Version

2.0.76 (Claude Code)

Platform

Anthropic API

Operating System

macOS

Terminal/Shell

VS Code integrated terminal

Additional Information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions