Skip to content

CLI Context Limit Exceeded: Graceful Error Handling Needed #185

Closed as duplicate

Description

@battman21

Bug Description
When using the CLI for a while with larger outputs (files or logs) I get this - and it totally kills the session. The only way out is to kill the terminal. Needs a softer landing! ⎿  API Error: 400 {"type":"error","error":{"type":"invalid_request_error","message":"input length and max_tokens exceed context limit: 190174 + 20000 > 204698,
decrease input length or max_tokens and try again"}}

Environment Info

  • Platform: macos
  • Terminal: Apple_Terminal
  • Version: 0.2.19
  • Feedback ID: b7631f3f-1703-403f-979a-1f19db723c4a

Activity

  1. github-actions commented on Aug 9, 2025

    @github-actions

    This issue has been automatically locked since it was closed and has not had any activity for 7 days. If you're experiencing a similar issue, please file a new issue and reference this one if it's relevant.

  2. locked as resolved and limited conversation to collaborators on Aug 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions