Bug Description
When the LLM API returns a context overflow error (e.g., Bedrock Claude hitting context limit), the session dies permanently. Users must create a new session, losing all conversation context.
Root Cause
In processor.ts, the ContextOverflowError catch block has a // TODO: Handle context overflow error comment that does nothing. The error falls through to be treated as fatal (message.error = error, return 'stop').
Expected Behavior
The session should auto-compact (summarize conversation, reduce context) and continue, similar to how Codex and Cline handle context overflow.
Steps to Reproduce
- Use a provider with limited context (e.g., Bedrock Claude)
- Have a long conversation with many tool calls
- Eventually hit context limit → session becomes unresponsive
Environment
- Provider: AWS Bedrock (Claude)
- Also affects any provider with context limits
Bug Description
When the LLM API returns a context overflow error (e.g., Bedrock Claude hitting context limit), the session dies permanently. Users must create a new session, losing all conversation context.
Root Cause
In
processor.ts, theContextOverflowErrorcatch block has a// TODO: Handle context overflow errorcomment that does nothing. The error falls through to be treated as fatal (message.error = error,return 'stop').Expected Behavior
The session should auto-compact (summarize conversation, reduce context) and continue, similar to how Codex and Cline handle context overflow.
Steps to Reproduce
Environment