How does OpenCode Zen report rate limit errors to the user? #1866

Closed
opened 2026-02-16 17:33:00 -05:00 by yindo · 5 comments
Owner

Originally created by @raymelon on GitHub (Sep 28, 2025).

Originally assigned to: @fwang on GitHub.

Curious question, how does OpenCode Zen report rate limits to the user?

Got stuck in "Generating..." multiple times already, and it might be the rate limits hitting?

Would be very convenient to see right away if the issue is from limits being hit or something else.

For context, I am using opencode zen as my provider and I'm running it with the test models Grok Code Fast 1 and Code Supernova 1M, which I am sure will hit rate limits when usage exceeds a certain threshold.

Originally created by @raymelon on GitHub (Sep 28, 2025). Originally assigned to: @fwang on GitHub. Curious question, how does OpenCode Zen report rate limits to the user? Got stuck in "Generating..." multiple times already, and it might be the rate limits hitting? Would be very convenient to see right away if the issue is from limits being hit or something else. For context, I am using `opencode zen` as my provider and I'm running it with the test models `Grok Code Fast 1` and `Code Supernova 1M`, which I am sure will hit rate limits when usage exceeds a certain threshold.
yindo closed this issue 2026-02-16 17:33:00 -05:00
Author
Owner

@github-actions[bot] commented on GitHub (Sep 28, 2025):

This issue might be a duplicate of existing issues. Please check:

  • #2512: Opencode stuck in "generating" - describes identical behavior with OpenCode getting stuck showing "generating" status, mentions testing on multiple models
  • #2137: Message generation interrupted, stuck at Generating - reports being stuck at "Generating" across different models (gemini, ollama)
  • #777: No errors when usage limit is reached (Claude Pro) - specifically about lack of error notification when usage limits are reached, app "simply freezes" with no user feedback
  • #725: Claude token limit reached, but OpenCode continues "working" - describes OpenCode continuing to show as working when Claude token limit is reached, with no error message shown to user
  • #2455: Needs improved handling and reporting for errors/LLM inference failed - requests better error reporting when LLM calls fail, mentions it "hangs on generating" with no error messages
  • #490: handle (Gemini) rate limits more gracefully - specifically requests better rate limit handling with countdown timers and explanations when limits are hit

Feel free to ignore if none of these address your specific case.

@github-actions[bot] commented on GitHub (Sep 28, 2025): This issue might be a duplicate of existing issues. Please check: - #2512: Opencode stuck in "generating" - describes identical behavior with OpenCode getting stuck showing "generating" status, mentions testing on multiple models - #2137: Message generation interrupted, stuck at `Generating` - reports being stuck at "Generating" across different models (gemini, ollama) - #777: No errors when usage limit is reached (Claude Pro) - specifically about lack of error notification when usage limits are reached, app "simply freezes" with no user feedback - #725: Claude token limit reached, but OpenCode continues "working" - describes OpenCode continuing to show as working when Claude token limit is reached, with no error message shown to user - #2455: Needs improved handling and reporting for errors/LLM inference failed - requests better error reporting when LLM calls fail, mentions it "hangs on generating" with no error messages - #490: handle (Gemini) rate limits more gracefully - specifically requests better rate limit handling with countdown timers and explanations when limits are hit Feel free to ignore if none of these address your specific case.
Author
Owner

@rekram1-node commented on GitHub (Sep 28, 2025):

@raymelon there are no rate limits

This could just be the provider hanging for a while, if you can grab a relevant log I could probably help you debug.

logs are in ~/.local/share/opencode/log/**

I'm surprised double ESC doesn't work, what happens whne you double ESC and then try to send messages?

@rekram1-node commented on GitHub (Sep 28, 2025): @raymelon there are no rate limits This could just be the provider hanging for a while, if you can grab a relevant log I could probably help you debug. logs are in ~/.local/share/opencode/log/** I'm surprised double ESC doesn't work, what happens whne you double ESC and then try to send messages?
Author
Owner

@fwang commented on GitHub (Sep 28, 2025):

how does OpenCode Zen report rate limits to the user

Zen proxies response back to the user as is.

@fwang commented on GitHub (Sep 28, 2025): > how does OpenCode Zen report rate limits to the user Zen proxies response back to the user as is.
Author
Owner

@raymelon commented on GitHub (Oct 3, 2025):

@raymelon there are no rate limits

This could just be the provider hanging for a while, if you can grab a relevant log I could probably help you debug.

logs are in ~/.local/share/opencode/log/**

I'm surprised double ESC doesn't work, what happens whne you double ESC and then try to send messages?

Thanks, I'll report back when I experience the same situation again — plus recent logs.

@raymelon commented on GitHub (Oct 3, 2025): > [@raymelon](https://github.com/raymelon) there are no rate limits > > This could just be the provider hanging for a while, if you can grab a relevant log I could probably help you debug. > > logs are in ~/.local/share/opencode/log/** > > I'm surprised double ESC doesn't work, what happens whne you double ESC and then try to send messages? Thanks, I'll report back when I experience the same situation again — plus recent logs.
Author
Owner

@rekram1-node commented on GitHub (Oct 11, 2025):

Gonna close this since the question was answered, but lmk if you have any more problems

@rekram1-node commented on GitHub (Oct 11, 2025): Gonna close this since the question was answered, but lmk if you have any more problems
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#1866