Repository navigation
Feature Request: Show Error Message When Claude Usage Limit Is Reached #877
Copy link
Copy link
Closed as duplicate
Closed as duplicate
Copy link
Description
Currently, when the Claude usage limit is reached, Opencode simply gets stuck at "working...". This makes it unclear to the user what has happened, and I have to manually open Claude to check if the usage limit has been reached.
Expected Behavior:
When the Claude usage limit is reached, Opencode should display a clear error message to the user indicating that the limit has been hit.
Current Behavior:
- Opencode UI remains stuck at "working..."
- No error message is shown
- User must check Claude separately to diagnose the issue
Steps to Reproduce:
- Run Opencode with the Claude Sonnet 4 model:
opencode run "explain the codebase" --model anthropic/claude-sonnet-4-20250514 --print-logs - Hit the usage limit for Claude.
- Observe that Opencode gets stuck at "working..." with no error message.
Logs:
Last login: Fri Jul 11 10:08:57 on ttys010
maazchowdhry@MacBook-Pro chatbot_setup_zkk7ic % opencode run "explain the codebase" --model anthropic/claude-sonnet-4-20250514 --print-logs 2>&1 | tee opencode.log
INFO 2025-07-11T09:09:21 +29ms service=app cwd=/Users/maazchowdhry/Downloads/chatbot_setup_zkk7ic creating
INFO 2025-07-11T09:09:21 +0ms service=default version=0.2.27 args=run,explain the codebase,--model,anthropic/claude-sonnet-4-20250514,--print-logs opencode
INFO 2025-07-11T09:09:21 +0ms service=app cwd=/Users/maazchowdhry/Downloads/chatbot_setup_zkk7ic creating
INFO 2025-07-11T09:09:21 +1ms service=app git=/Users/maazchowdhry/Downloads/chatbot_setup_zkk7ic git
INFO 2025-07-11T09:09:21 +0ms service=app git=/Users/maazchowdhry/Downloads/chatbot_setup_zkk7ic git
INFO 2025-07-11T09:09:21 +1ms service=app name=config registering service
INFO 2025-07-11T09:09:21 +0ms service=bus type=storage.write subscribing
INFO 2025-07-11T09:09:21 +0ms service=app name=bus registering service
INFO 2025-07-11T09:09:21 +0ms service=format init
INFO 2025-07-11T09:09:21 +0ms service=bus type=file.edited subscribing
INFO 2025-07-11T09:09:21 +0ms service=config.hooks init
INFO 2025-07-11T09:09:21 +0ms service=bus type=file.edited subscribing
INFO 2025-07-11T09:09:21 +1ms service=bus type=session.idle subscribing
INFO 2025-07-11T09:09:21 +1ms service=app name=lsp registering service
INFO 2025-07-11T09:09:21 +0ms service=session id=ses_80740ed23ffe57CPWAbwv80O3P version=0.2.27 title=New Session - 2025-07-11T09:09:21.244Z time=[object Object] created
INFO 2025-07-11T09:09:21 +0ms service=app name=session registering service
INFO 2025-07-11T09:09:21 +0ms service=app name=storage registering service
INFO 2025-07-11T09:09:21 +1ms service=config loaded
INFO 2025-07-11T09:09:21 +0ms service=bus type=storage.write publishing
INFO 2025-07-11T09:09:21 +0ms service=app name=config registering service
INFO 2025-07-11T09:09:21 +0ms service=config loaded
INFO 2025-07-11T09:09:21 +0ms service=bus type=session.updated publishing
█▀▀█ █▀▀█ █▀▀ █▀▀▄ █▀▀ █▀▀█ █▀▀▄ █▀▀
█░░█ █░░█ █▀▀ █░░█ █░░ █░░█ █░░█ █▀▀
▀▀▀▀ █▀▀▀ ▀▀▀ ▀ ▀ ▀▀▀ ▀▀▀▀ ▀▀▀ ▀▀▀
> explain the codebase
@ anthropic/claude-sonnet-4-20250514
INFO 2025-07-11T09:09:21 +1ms service=bus type=message.part.updated subscribing
INFO 2025-07-11T09:09:21 +0ms service=bus type=session.error subscribing
INFO 2025-07-11T09:09:21 +0ms service=app name=mode registering service
INFO 2025-07-11T09:09:21 +1ms service=session session=ses_80740ed23ffe57CPWAbwv80O3P chatting
INFO 2025-07-11T09:09:21 +0ms service=app name=provider registering service
INFO 2025-07-11T09:09:21 +1ms service=models.dev refreshing
INFO 2025-07-11T09:09:21 +0ms service=provider init
INFO 2025-07-11T09:09:21 +1ms service=provider providerID=openai found
INFO 2025-07-11T09:09:21 +0ms service=provider providerID=vercel found
INFO 2025-07-11T09:09:21 +0ms service=provider providerID=anthropic found
INFO 2025-07-11T09:09:21 +0ms service=provider providerID=github-copilot found
INFO 2025-07-11T09:09:21 +0ms service=provider providerID=anthropic modelID=claude-sonnet-4-20250514 getModel
INFO 2025-07-11T09:09:21 +0ms service=provider status=started providerID=anthropic getSDK
INFO 2025-07-11T09:09:21 +43ms service=provider status=completed duration=43 providerID=anthropic getSDK
INFO 2025-07-11T09:09:21 +0ms service=provider providerID=anthropic modelID=claude-sonnet-4-20250514 found
INFO 2025-07-11T09:09:21 +1ms service=session session=ses_80740ed23ffe57CPWAbwv80O3P sessionID=ses_80740ed23ffe57CPWAbwv80O3P locking
INFO 2025-07-11T09:09:21 +5ms service=bus type=storage.write publishing
INFO 2025-07-11T09:09:21 +0ms service=bus type=message.updated publishing
INFO 2025-07-11T09:09:21 +18ms service=bus type=storage.write publishing
INFO 2025-07-11T09:09:21 +0ms service=bus type=message.updated publishing
INFO 2025-07-11T09:09:21 +1ms service=app name=mcp registering service
INFO 2025-07-11T09:09:21 +2ms service=session session=ses_80740ed23ffe57CPWAbwv80O3P type=start part
INFO 2025-07-11T09:09:21 +2ms service=bus type=storage.write publishing
INFO 2025-07-11T09:09:21 +0ms service=bus type=message.updated publishing
Screenshots:
Additional Context:
Improving this feedback would help users quickly understand the issue and avoid confusion.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels
Activity
heymaaz commentedon Jul 11, 2025
https://opencode.ai/s/uX9zJqb6
v1truv1us commentedon Jul 11, 2025
these are the only logs i'm able to find for the time frame when I attempted a request when i had run out of tokens. i verified that I got the error in claude-code as well
jfogarty-rlg commentedon Aug 1, 2025
ideally, we would get a warning ahead of time, that we are getting closer to our limit, claude code can do it, as can a number of vs code plugins, so the API calls to claude has the limit as part of the return information.
cstyan commentedon Aug 16, 2025
This would be really useful to have. At the moment, when you auth via claude code pro, even in anthropics console you cannot see your usage relative to the limit (their console thinks I have 0 usage at the moment?). Not sure if that's auth/token related or just a result of using something other than one of their apps directly
but having some feedback in opencode that you have hit the limit or are nearing it would be useful
ahmet-cetinkaya commentedon Oct 6, 2025
If a rate limit or quota error occurs, it should be visible immediately, without waiting for the prompt to hit a timeout. Implementing a TUI to visualize various usage statistics—similar to the ryoppippi/ccusage project—would be extremely helpful for monitoring and diagnostics.
rekram1-node commentedon Oct 6, 2025
yes totally agree, we have dropped the ball on this, team has been super busy tackling a few big things, maybe I can take a stab at this soon if I get some time
rekram1-node commentedon Oct 11, 2025
marking as dup of #777
dbkblk commentedon Nov 10, 2025
While you work on it, would it be possible to also add the time to wait for the usage limit to reset and wait before to send the request automatically on reset ?
rekram1-node commentedon Nov 10, 2025
@dbkblk are u saying display the time? or automatically wait until quota resets to retry?
dbkblk commentedon Nov 10, 2025
Both :) But most importantly, the time to wait.
rekram1-node commentedon Nov 10, 2025
@dbkblk we already do the wait until quota resets unless it is in "distant" future
As for showing it, yeah totally agree need that v soon
dbkblk commentedon Nov 11, 2025
Oh that's nice to know! Thank you for this really good software you've made :)
Remove desktop launch modal from cloud worker flow (anomalyco#877)
Revert "Remove desktop launch modal from cloud worker flow (anomalyco…