Developer Fixes VS Code Extension That Fired Five API Requests in 15 Seconds
A developer identified and resolved a rate-limiting flaw in their VS Code extension, ds_usage, which displays Claude Code API usage in the status bar. The bug stemmed from each open VS Code window running its own polling timer independently, causing multiple redundant requests — especially when switching windows or clicking the status bar item. The fix introduced a shared cache file via VS Code's global storage, so all windows read from a single source instead of each making separate server calls. A 429 rate-limit response now writes a shared block that all windows respect, and clicks cannot override the cooldown period. The open-source extension, available on the VS Code Marketplace under MIT license, also handles authentication transparently by reading existing Claude Code credentials without storing or logging them.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.
Discussion (0)
Log in to join the discussion and vote.
Log in