Repository navigation
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🎯 Functional Correctness | 🟡 Minor | ⚡ Quick win
🔎 Supported by static analysis
🏁 Script executed:
git cat-file -e 4ee6bfd50ef4a089440d5c3662db2298da9cc50e^{commit} && git cat-file -e 0249cb3d237b7c57d535a4495eadc219420ee35d^{commit} && git diff --unified=30 4ee6bfd50ef4a089440d5c3662db2298da9cc50e 0249cb3d237b7c57d535a4495eadc219420ee35d -- docs/user/usage.md sed -n '75,125p' docs/user/usage.md rg -n 'readOpenCodeGoUsageLimits|OPENCODE_API_KEY|processEnv|readOpenCode.*Auth|auth\\.json' apps/server/src/provider sed -n '1,180p' apps/server/src/provider/Layers/openCodeUsageLimits.ts sed -n '1,150p' apps/server/src/provider/Layers/OpenCodeDriver.ts sed -n '35,110p' apps/server/src/provider/Layers/OpenCodeProvider.test.tsRepository: pingdotgg/t3code
Length of output: 24979
🏁 Script executed:
Repository: pingdotgg/t3code
Length of output: 12651
🏁 Script executed:
Repository: pingdotgg/t3code
Length of output: 13167
🏁 Script executed:
Repository: pingdotgg/t3code
Length of output: 8448
🌐 Web query:
OpenCode Console sign-in auth.json opencode-go type oauth auth file credential format OpenCode Go docs💡 Result:
🏁 Script executed:
Repository: pingdotgg/t3code
Length of output: 3295
Document
auth.jsonprecedence for OpenCode Go.When a local OpenCode instance has an
opencode-goAPI credential inauth.json, the limits check uses that key instead ofOPENCODE_API_KEY. If the stored key lacks Go usage access, the endpoint’s 403 response leaves limits unavailable despite the environment variable. Explain that users must update the stored credential in this case.Suggested fix
📝 Committable suggestion
🤖 Prompt for AI Agents