VS Code Extension: "too long prompt" error blocks all input with no recovery guidance
Resolved 💬 4 comments Opened Feb 1, 2026 by git-surfer-k Closed Mar 14, 2026
Summary
When a conversation becomes too long in the VS Code extension, a "too long prompt" error appears and the extension becomes completely unresponsive to any input. No guidance is provided on how to recover, forcing users to quit VS Code entirely and switch to the terminal CLI.
Steps to Reproduce
- Use Claude Code via the VS Code extension
- Have a long conversation (many back-and-forth exchanges)
- At some point, a "too long prompt" message appears
- After this message, no input is accepted — the extension becomes unresponsive
Expected Behavior
- Auto-compact should trigger before the context limit is reached, OR
- The error message should include actionable recovery instructions (e.g., "Run /compact to compress the conversation" or "Run /clear to start a new session"), OR
- At minimum, /clear and /compact commands should still be accepted even after the error occurs
Actual Behavior
- "too long prompt" message is shown with no additional guidance
- All subsequent input is ignored
- The only workaround is to close VS Code and restart, or switch to the terminal CLI
Suggestion
- Display a clear recovery message alongside the error
- Allow /compact and /clear commands to work even in the error state
- Consider enabling auto-compact by default to prevent this from happening
Environment
- Claude Code VS Code Extension
- macOS (Darwin 25.2.0)
This issue has 4 comments on GitHub. Read the full discussion on GitHub ↗