{"version":"2.1.334","anchor":"oauth-401-wait-condition-simplified-still-gated-by-tengu-ti","canonical_anchor":"oauth-401-wait-condition-simplified-still-gated-by-tengu-ti","heading":"Expired sign-in errors are no longer excluded from the wait-and-retry path","tier":"notice","area":"Auth","scope":"individual","heads_up":false,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.334\/e\/oauth-401-wait-condition-simplified-still-gated-by-tengu-ti","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.334","markdown":"### Expired sign-in errors are no longer excluded from the wait-and-retry path\n\nClaude Code no longer leaves expired-token 401 errors out of its wait-and-retry path; the other conditions stay the same\n\n**Unclear.** Whether expired-token errors are still left out by another check elsewhere is not stated.\n\n**What**\n\nWhen the server rejects a request with a 401 error, meaning it did not accept the sign-in, Claude Code can wait and try again. The check that decides this no longer leaves out errors that say the sign-in token has expired. Before, errors with the code `token_expired` or the message \"OAuth token has expired\" did not take this path.\n\nThe other conditions are unchanged. All of these environment variables must be unset (environment variables are settings passed to a program from your shell):\n\n- `CLAUDE_CODE_REMOTE`\n\n- `CLAUDE_CODE_REMOTE_SESSION_ID`\n\n- `CLAUDE_CODE_OAUTH_401_WAIT_MS`\n\nA remotely controlled switch must also not be on. When the server sends nothing for that switch, it falls back to off.\n\n**Why**\n\nAn expired-token error may now lead to Claude Code waiting and retrying instead of failing straight away, which changes how it recovers from sign-in problems.\n\n- Flag `tengu_tidy_swing`: Not enough to say (read for one account on one subscription tier against v2.1.334; this account: no value returned, anonymous baseline: no value returned, compiled default: off) These values were read against a different version of Claude Code, so treat them as the nearest reading available instead of one taken on this release.\n- Area: Auth\n- Names: `token_expired`, `tengu_tidy_swing`\n- Tier: You'll notice\n- Useful: 2\/5\n- Signal: 2\/5\n- Scope: individual\n- Heads-up: no"}