fix(usage): preserve quotas with malformed reset metadata (#224)

* test(usage): reproduce quota loss on malformed reset metadata

* fix(usage): preserve quotas with malformed reset metadata

Harden resetText against structured resetsAt values: only strings and
numbers reach the date parser, anything else degrades to no reset text
instead of throwing inside ToPrimitive and discarding the provider.

* test(usage): assert hardened reset wiring in UI regressions

The resetText static check now requires the structured-input guard ahead
of the date parse, keeping the countdown-from-timestamp intent while
locking the malformed-metadata hardening.
a523643b8aSimone committed on 9/11/2026, 12:39:21 PM· committed by GitHubparent0049339
4 files changedLine totals unavailable