Skip to content

Image dimension error blocks all subsequent commands, requiring context clear #2752

Description

@pablopda

Claude Code Issue Report

Title: Image dimension error blocks all subsequent commands, requiring context clear

Description

When submitting an image that exceeds the 2000 pixel limit in a multi-image request, Claude Code displays an error but then becomes completely unresponsive to any further commands. The only way to recover is to use /clear to reset the context, losing all conversation history.

Steps to Reproduce

  1. Submit an image with dimensions exceeding 2000 pixels (in a conversation with multiple images)
  2. Receive the error: API Error: 400 {"type":"error","error":{"type":"invalid_request_error","message":"messages.33.content.28.image.source.base64.data: At least one of the image dimensions exceed max allowed size for many-image requests: 2000 pixels"}}
  3. Try to run any subsequent command
  4. Observe that no commands work until /clear is used

Expected Behavior

  • The error should be displayed
  • Claude Code should remain responsive to subsequent commands
  • Users should be able to continue working without losing context

Actual Behavior

  • Error is displayed
  • Claude Code becomes unresponsive to all commands
  • Only solution is /clear, which loses all conversation context

Environment

  • Claude Code Version: 1.0.27
  • OS: Ubuntu Linux (6.11.0-14-generic)
  • Node.js Version: v22.16.0
  • Platform: Linux x86_64

Impact

This bug significantly disrupts workflow as users lose all conversation context when encountering this error. This is particularly problematic during long development sessions where context is valuable.

Suggested Fix

Handle the image dimension error gracefully without blocking subsequent command processing.

Metadata

Metadata

Assignees

No one assigned

    Labels

    duplicateThis issue or pull request already exists

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions