Skip to content

[Auto] context_overflow: The conversation is too long for this model. Try /undo to remove recent turns or #435

Description

@igorcosta

Auto-Reported Error

Field Value
Error Type context_overflow
CLI Version 0.8.3
Model z-ai/glm-5.1
Provider openrouter
Platform darwin 25.5.0
Session ID N/A
Report ID tIqQowBTsbsUgGH1Ua1ub

Error Message

The conversation is too long for this model. Try /undo to remove recent turns or /new to start fresh.
This endpoint's maximum context length is 204800 tokens. However, you requested about 274290 tokens (254087 of text input, 4203 of tool input, 16000 in the output). Please reduce the length of either one, or use the context-compression plugin to compress your prompt automatically.

Stack Trace

ApiError: The conversation is too long for this model. Try /undo to remove recent turns or /new to start fresh.
This endpoint's maximum context length is 204800 tokens. However, you requested about 274290 tokens (254087 of text input, 4203 of tool input, 16000 in the output). Please reduce the length of either one, or use the context-compression plugin to compress your prompt automatically.
    at makeError (file://~/.nvm/versions/node/v24.14.1/lib/node_modules/autohand-cli/dist/chunk-B53A2NM2.js:127:10)
    at classifyApiError (file://~/.nvm/versions/node/v24.14.1/lib/node_modules/autohand-cli/dist/chunk-B53A2NM2.js:96:14)
    at OpenRouterClient.buildApiError (file://~/.nvm/versions/node/v24.14.1/lib/node_modules/autohand-cli/dist/chunk-B53A2NM2.js:914:12)
    at process.processTicksAndRejections (node:internal/process/task_queues:104:5)
    at async OpenRouterClient.makeRequest (file://~/.nvm/versions/node/v24.14.1/lib/node_modules/autohand-cli/dist/chunk-B53A2NM2.js:861:13)
    at async OpenRouterClient.complete (file://~/.nvm/versions/node/v24.14.1/lib/node_modules/autohand-cli/dist/chunk-B53A2NM2.js:801:26)
    at async AutohandAgent.runReactLoop (file://~/.nvm/versions/node/v24.14.1/lib/node_modules/autohand-cli/dist/index.js:15029:22)
    at async AutohandAgent.runInstruction (file://~/.nvm/versions/node/v24.14.1/lib/node_modules/autohand-cli/dist/index.js:14776:11)
    at async RPCAdapter.handlePrompt (file://~/.nvm/versions/node/v24.14.1/lib/node_modules/autohand-cli/dist/index.js:18517:23)

Session Context

  • Conversation length: 34 messages
  • Context usage: 307%
  • Last tools used: N/A
  • Retry attempt: N/A

Additional Context

{}

Auto-reported by Autohand CLI v0.8.3 | Report ID: tIqQowBTsbsUgGH1Ua1ub

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions