You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
ACP: provider status and rate-limit headers of API errors are dropped #52860
When a prompt fails with an APIError in opencode acp, the client only gets -32603 with data: {service, errorName}. The APIError already carries statusCode, isRetryable and responseHeaders, but promptResponse in packages/opencode/src/acp/service.ts drops them. An ACP client therefore cannot tell a 429 from any other provider failure, and cannot see when it may try again (retry-after, x-ratelimit-reset).
Example with an OpenRouter free model after the daily limit is used up:
Activity
github-actions commentedon Oct 2, 2026
This issue might be a duplicate of or related to existing issues. Please check:
APIError.data.statusCodehandling in the ACP service, specifically mapping 401/403 errors.thdxr commentedon Oct 11, 2026
Thanks for the report! OpenCode 2.0 is now out and development is focused on V2, so we're closing issues filed against OpenCode 1. Please upgrade (
opencode upgrade --major, details: https://anoma.ly/notes/opencode-2-0), and if this is still relevant on 2.0, reopen this issue or open a new one with your 2.0 version.— from 𝕺𝖕𝖊𝖓𝕮𝖔𝖉𝖊