Skip to content

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

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 linux 6.18.33.2-microsoft-standard-WSL2
Session ID N/A
Report ID vCCc53BUpxlm2GVG2C0jd

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 250598 tokens (230395 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 250598 tokens (230395 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.11.1/lib/node_modules/autohand-cli/dist/chunk-B53A2NM2.js:127:10)
    at classifyApiError (file://~/.nvm/versions/node/v24.11.1/lib/node_modules/autohand-cli/dist/chunk-B53A2NM2.js:96:14)
    at OpenRouterClient.buildApiError (file://~/.nvm/versions/node/v24.11.1/lib/node_modules/autohand-cli/dist/chunk-B53A2NM2.js:914:12)
    at process.processTicksAndRejections (node:internal/process/task_queues:103:5)
    at async OpenRouterClient.makeRequest (file://~/.nvm/versions/node/v24.11.1/lib/node_modules/autohand-cli/dist/chunk-B53A2NM2.js:861:13)
    at async OpenRouterClient.complete (file://~/.nvm/versions/node/v24.11.1/lib/node_modules/autohand-cli/dist/chunk-B53A2NM2.js:801:26)
    at async AutohandAgent.runReactLoop (file://~/.nvm/versions/node/v24.11.1/lib/node_modules/autohand-cli/dist/index.js:15029:22)
    at async AutohandAgent.runInstruction (file://~/.nvm/versions/node/v24.11.1/lib/node_modules/autohand-cli/dist/index.js:14737:7)
    at async RPCAdapter.handlePrompt (file://~/.nvm/versions/node/v24.11.1/lib/node_modules/autohand-cli/dist/index.js:18517:23)

Session Context

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

Additional Context

{}

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

Activity

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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions