# feat\(config\): refresh quotas when the popup opens by default · lucenx/codexbar-plasma

[View on GitCafe](https://git.cafe/lucenx/codexbar-plasma/commit/71348bcade5b17aeccfcc4e6db5c0bb080844321)

Repository: [lucenx/codexbar-plasma](https://git.cafe/lucenx/codexbar-plasma)

Visibility: public

Requested revision: 71348bcade5b17aeccfcc4e6db5c0bb080844321

Requested commit: 71348bcade5b17aeccfcc4e6db5c0bb080844321

Commit: 71348bcade5b17aeccfcc4e6db5c0bb080844321

Tree: ef7ba6c4d16184ae574a8ff9447ef624f5e0e3db

Author: Simone

Committer: Simone

## Message

```
feat(config): refresh quotas when the popup opens by default

An idle, suspended, or manually refreshed widget presented its last
measurement as current until the periodic timer fired again. Opening the
popup is the moment the user asks for the number, so make that refresh the
default instead of an opt-in.

PopupRefreshPolicy already bounds the cost: only quotas older than the
refresh interval are fetched, in-flight and scheduled runs are skipped, and
failed attempts keep the same cooldown, so reopening the popup cannot start
a request per opening. Local cost history is still not scanned.

The refresh-on-open smoke scenario asserted that the default did not
refresh; it now disables the setting explicitly to cover the opt-out and
keeps the fresh/stale/reopen sequence unchanged.

Documentation: usage guide default table and option description, README
feature list and new-widget defaults, CHANGELOG under Unreleased. TODO is
unaffected; the dated settings-experience audit keeps its original finding.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01QvM85i7ZFMLEAvUAz742vq

```

## Parents

- [af7f281b8ea8e6498ac2afb3eea43e0f0c0331f8](https://git.cafe/lucenx/codexbar-plasma/commit/af7f281b8ea8e6498ac2afb3eea43e0f0c0331f8?format=markdown)

[Source at this commit](https://git.cafe/lucenx/codexbar-plasma/tree/71348bcade5b17aeccfcc4e6db5c0bb080844321?format=markdown)
