{"version":"2.1.326","anchor":"oauth-401-model-resend-gated-by-tengu-tidy-swing","canonical_anchor":"oauth-401-model-resend-gated-by-tengu-tidy-swing","heading":"Claude Code can resend a model request after a sign-in rejection","tier":"soon","area":"Auth","scope":"individual","heads_up":false,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.326\/e\/oauth-401-model-resend-gated-by-tengu-tidy-swing","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.326","markdown":"### Claude Code can resend a model request after a sign-in rejection\n\nAfter the server rejects a model request because of sign-in, Claude Code can now resend it once, under certain conditions\n\n**Unclear.** It is not clear whether the remote switch turns the resend on or off, so whether it happens by default is unknown.\n\n**What**\n\nWhen the server rejects a request to the model with a 401 error, meaning it did not accept the sign-in, Claude Code can now send that request again. It keeps track of whether the resend has not been needed yet, is due, was sent, went through, or was refused.\n\nThe resend applies only when all of these environment variables are 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\nIt is also tied to a remotely controlled switch.\n\n**Why**\n\nA sign-in error that clears up quickly can stop a session in the middle of a task. This lets the session carry on instead.\n\n- Flag `tengu_tidy_swing`: Not enough to say (read for one account on one subscription tier against v2.1.326; 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: `tengu_tidy_swing`\n- Tier: Nothing to try yet\n- Useful: 2\/5\n- Signal: 3\/5\n- Scope: individual\n- Heads-up: no\n- Present in the build but not switched on"}