What
After a token refresh, Claude Code clears the cached snapshot of the signed-in account (account id, email, organisation), so requests made after the refresh use the current account rather than the previous one.
Details
- Applies after recovering from a 401 using the token on disk, after an SDK token callback refresh, after adopting a newer token written by another Claude Code process, and on login-state reset.
- Request metadata for the account id now falls back to the stored OAuth account.
Evidence
tengu_oauth_401_recovered_from_disk
Strings lifted out of the shipped bundle, so the claim above can be checked against them.