{"version":"2.1.326","anchor":"auto-retryresume-policy-for-api-errors-now-keyed-on-claude","canonical_anchor":"auto-retryresume-policy-for-api-errors-now-keyed-on-claude","heading":"Handling of four kinds of API error now depends on whether the session is remote","tier":"internal","area":"Elsewhere","scope":"individual","heads_up":false,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.326\/e\/auto-retryresume-policy-for-api-errors-now-keyed-on-claude","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.326","markdown":"### Handling of four kinds of API error now depends on whether the session is remote\n\nFor rate limits, missing request tokens, server errors and unknown models, Claude Code now sets its handling by `CLAUDE_CODE_REMOTE`\n\n**Unclear.** What the mode does for these errors, such as whether it retries or resumes, is not shown.\n\n**What**\n\nClaude Code picks a mode for each kind of error the API can return. For these kinds, the mode is now on when the `CLAUDE_CODE_REMOTE` environment variable is set and off when it is not:\n\n- `rate_limit`\n\n- `no_request_token`\n\n- `server_error`\n\n- `model_not_found`\n\nBefore, these modes came from settings Claude Code fetched from Anthropic's servers. All other errors still use a looked-up value.\n\n**Why**\n\nRemote and local sessions now handle these errors differently, and the handling no longer changes with settings sent from the server.\n\n- Area: Elsewhere\n- Names: `CLAUDE_CODE_REMOTE`\n- Tier: Under the hood\n- Useful: 2\/5\n- Signal: 2\/5\n- Scope: individual\n- Heads-up: no"}