Vibe Coding
Claude Code Was Silently Blowing Its Prompt Cache Once an Hour on OAuth Token Refresh
2.1.248 fixes a prompt-cache miss, and lost extended-thinking context, occurring roughly once an hour in long sessions because tool definitions were re-rendered after an OAuth token refresh. A separate fix stops the `ScheduleWakeup` tool definition from changing between a session and its `--resume` when the account had entered usage overage, which cost a full cache miss on the resumed session's first turn. Both are pure cost bugs on long-running agents, and neither was visible in `/usage` as anything but higher token spend.
Source
↳ Follow the thread