A KDE Plasma panel widget showing how much Claude Max quota is left, at a glance.

feat: refresh button in the popup header

The plasmoid does not fetch: state.json has a single writer and the token a single refresher, and a second one inside plasmashell would race the daemon over both. So the button only knocks. `dipstick refresh` sends SIGUSR1 to the pid the daemon records in $XDG_RUNTIME_DIR, verified against /proc/<pid>/comm because a pidfile left by an unclean exit points at whatever process later took that pid. The signal cuts the daemon's wait short and clears the backoff with it: the user is asking for now, so the wait that backoff produced no longer holds. The loading state is tied to state.json changing, not to the lifetime of the command. `dipstick refresh` returns in milliseconds while the round it asks for takes ~13 seconds, most of it the transcript scan, so a spinner bound to the process was invisible. A 700ms floor keeps it from flickering and a 60s cap keeps a dead daemon from spinning it forever. The Refresher lives on the root item and not in the popup, which Plasma destroys on every collapse: a thirteen-second round started just before closing would have died with it.


Author Claudio Date Commit Parent 06c1b4c8