-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Description
App Version
3.24.0
API Provider
AWS Bedrock
Model Used
Claude 4 Sonnet
Roo Code Task Links (Optional)
When using the Bowser tool continuously in a single chat, the application throws an unhandled API error from AWS Bedrock once the conversation history contains more than 20 images:
"Unknown Error: The model returned the following errors: too many images and documents: 21 + 0 > 20"
This halts the workflow and requires starting a new chat.
π Steps to Reproduce
- Start a chat using a Claude 4 model on AWS Bedrock.
- Use the Bowser tool unitl 21 screenshots have accumulated in the same session.
- On the 21st image, the application fails.
π₯ Outcome Summary
Actual Behavior: The app sends all 21+ images to the model, causing the API to return a hard error.
Expected Behavior: The app should gracefully handle this limit. For example, it could automatically discard the oldest images and send only the 20 most recent ones to the model, allowing the chat to continue without error.
The frontend UI already appears to have a similar logic (appendImages) to limit images per-message.
π Relevant Logs or Errors (Optional)
Metadata
Metadata
Assignees
Labels
Type
Projects
Status