Message Output Length Error #315

Closed
opened 2026-02-16 17:26:11 -05:00 by yindo · 6 comments
Owner

Originally created by @karthiknish on GitHub (Jun 26, 2025).

Originally assigned to: @thdxr on GitHub.

I keep getting this error when I tried to solve a bug

Originally created by @karthiknish on GitHub (Jun 26, 2025). Originally assigned to: @thdxr on GitHub. I keep getting this error when I tried to solve a bug
yindo closed this issue 2026-02-16 17:26:11 -05:00
Author
Owner

@thdxr commented on GitHub (Jun 26, 2025):

can i get a screenshot?

@thdxr commented on GitHub (Jun 26, 2025): can i get a screenshot?
Author
Owner

@alex-r-t commented on GitHub (Jun 26, 2025):

Unfortunately, the error disappears pretty quick, but it shows up in the top-right corner of the interface. Also, when it happens the chat history simply says "Request aborted" with no other information. I think the last thing Opencode was doing was "Preparing write...".

It happened for me on both Claude Sonnet 4 and Opus 4, and I was signed in via OAuth.

Potentially related: I had also just installed the Context7 MCP server configuration and cloned the repo locally for use.

If I can grab a screenshot, I'll post it here.

Other possibly relevant info: Windows 11, WSL2 (Ubuntu 24.04), running within Windows Terminal with PowerShell 7.5.1

@alex-r-t commented on GitHub (Jun 26, 2025): Unfortunately, the error disappears pretty quick, but it shows up in the top-right corner of the interface. Also, when it happens the chat history simply says "Request aborted" with no other information. I think the last thing Opencode was doing was "Preparing write...". It happened for me on both Claude Sonnet 4 and Opus 4, and I was signed in via OAuth. Potentially related: I had also just installed the Context7 MCP server configuration and cloned the repo locally for use. If I can grab a screenshot, I'll post it here. Other possibly relevant info: Windows 11, WSL2 (Ubuntu 24.04), running within Windows Terminal with PowerShell 7.5.1
Author
Owner

@alex-r-t commented on GitHub (Jun 26, 2025):

Got it:

Image

Configured Context7 for this environment, asked it to familiarize itself with the Claude Code SDK for Python, then used this prompt:

Alright, so here's what I'd like you to do: make a web application that guides new users (limited Python and AI/agentic coding experience) through the SDK and shows them how it works. Show them multiple examples to explain the features and lots of documentation to walk them through how the code samples work. Sound good? Make sure to use git with frequent commits to document your progress.

@alex-r-t commented on GitHub (Jun 26, 2025): Got it: ![Image](https://github.com/user-attachments/assets/a996e11a-c449-4afa-a38b-b9cd1595d3c6) Configured Context7 for this environment, asked it to familiarize itself with the Claude Code SDK for Python, then used this prompt: > Alright, so here's what I'd like you to do: make a web application that guides new users (limited Python and AI/agentic coding experience) through the SDK and shows them how it works. Show them multiple examples to explain the features and lots of documentation to walk them through how the code samples work. Sound good? Make sure to use git with frequent commits to document your progress.
Author
Owner

@kenhuang1964 commented on GitHub (Jun 26, 2025):

getting the same issue

@kenhuang1964 commented on GitHub (Jun 26, 2025): getting the same issue
Author
Owner

@edgedlt commented on GitHub (Jun 27, 2025):

Thirding this issue.

Input Tokens 14
Output Tokens 8192

Is that a Claude maximum? I wonder why it is reaching that much.

EDIT: That's with 2 attempts. One attempt result in Output Tokens 4096. We are hitting a Claude limit for some reason. My prompt shouldn't have caused it, creating a simple CLI utility in Python.

@edgedlt commented on GitHub (Jun 27, 2025): Thirding this issue. `Input Tokens 14` `Output Tokens 8192` Is that a Claude maximum? I wonder why it is reaching that much. EDIT: That's with 2 attempts. One attempt result in `Output Tokens 4096`. We are hitting a Claude limit for some reason. My prompt shouldn't have caused it, creating a simple CLI utility in Python.
Author
Owner

@adamdotdevin commented on GitHub (Jun 27, 2025):

duplicate of #268 let's move the convo over there

@adamdotdevin commented on GitHub (Jun 27, 2025): duplicate of #268 let's move the convo over there
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#315