feat: add Claude usage widget#951
Conversation
you probably do not need this.
|
|
I still don't get why you need a hardcoded image there, or why all this mess with it and the class ClaudeUsageCallbacksConfig(CallbacksConfig):
on_left="toggle_menu",
on_middle="do_nothing",
on_right="toggle_label",and than class ClaudeUsageConfig(CustomBaseModel):
...
callbacks: ClaudeUsageCallbacksConfig = ClaudeUsageCallbacksConfig()
``` |
|
Thanks, a few more suggestions:
Another suggestion: clean up all validation comments. We really do not need them there. Also, I'm still not sure about |
|
Thanks a ton for the review — super helpful, and all three make sense. 1. Progress bar — yeah, I get the rounded-corner square-fill thing. I'll ditch 2. Validation comments — yep, stripping those out. 3. Icon — fair point, I don't want to force a font on anyone either. I've actually already moved it off the Nerd Font glyph and render it as an SVG with I'll push the updated version shortly. Cheers! |
|
I really don’t think you need icons for this. Make it a header like we have in all other popups, like Copilot, GitHub, etc. Icons in Open-Meteo or Quick Launch are used for a different purpose, to be honest. |
|
Makes sense dropping the icon and going with a plain header like the other popups. Pushing shortly |
|
OK, thanks. Just please remove lines like this one:
I really hate this type of comment when AI adds it. And please clean up the commit history, all of this can be one commit. When you think it is ready to merge, please ping me. |
Shows Claude Code 5-hour and 7-day subscription usage on the bar, with a popup menu of progress bars and reset countdowns. Reuses the OAuth credentials the Claude Code CLI already stores (no API key needed); a shared, reference-counted service polls the usage endpoint off the UI thread and caches the result to disk with a 429 fallback.
0110655 to
f081825
Compare
|
Done Removed all those banner comments |

Adds a widget showing Claude Code subscription usage (5-hour and 7-day limits) on the bar, with a popup card of progress bars and reset countdowns. Reads the existing Claude Code OAuth token from ~/.claude/.credentials.json and caches results in app_data_path with a TTL (429-safe). Includes a docs page and regenerated schema.json.