Skip to content

feat: notify when quota windows reset - #200

Merged
slkiser merged 4 commits into
slkiser:mainfrom
ignaciodiazjimenez:feat/quota-reset-notifications
Aug 9, 2026
Merged

feat: notify when quota windows reset#200
slkiser merged 4 commits into
slkiser:mainfrom
ignaciodiazjimenez:feat/quota-reset-notifications

Conversation

@ignaciodiazjimenez

@ignaciodiazjimenez ignaciodiazjimenez commented Aug 3, 2026

Copy link
Copy Markdown
Contributor

Summary

Add opt-in, provider-neutral reset notifications for quota windows.

The observer reuses already-fetched provider results, records a hashed account/window identity in local state, and emits one aggregated success toast only after the previous reset boundary is crossed, the provider advertises a newer reset, and remaining quota increases. It adds no provider requests and defaults to disabled.

{
  "resetNotifications": {
    "enabled": true,
    "windows": ["weekly"]
  }
}

Linked Issue

Fixes #199

OpenCode Validation

  • Current production released OpenCode version tested: 1.18.11
  • Why this version is relevant to the fix: it provides the production TUI success-toast surface used by the notification. The behavior was first validated with a local multi-account quota prototype before being generalized here.

Verification

  • pnpm verify passed through the repository pre-push hook on Node 24/Linux
  • Includes Biome, TypeScript 7 typecheck, build, all 1,809 tests, cross-surface tests, and package-content checks
  • Added detector, persistence, configuration, account-isolation, and server-toast integration coverage

Quality Checklist

  • I ran pnpm run typecheck
  • I ran pnpm run build
  • I ran pnpm test
  • This change is focused and avoids unrelated behavior changes
  • I updated or added tests when behavior changed
  • I updated docs when user-facing workflow, command, or config behavior changed
  • Provider Changes does not apply; no provider implementation or credential flow changed

@ignaciodiazjimenez
ignaciodiazjimenez force-pushed the feat/quota-reset-notifications branch from ce0dec4 to c2dca3c Compare August 3, 2026 17:45
ignaciodiazjimenez and others added 3 commits August 3, 2026 19:55
Serialize persisted reset observations across processes.\nPreserve monotonic baselines and stable account identities.\nDocument stored metadata and popup-only delivery.
Add the opt-in reset notification option to the main README. Link to the detailed configuration contract.
@slkiser

slkiser commented Aug 9, 2026

Copy link
Copy Markdown
Owner

@ignaciodiazjimenez Thanks!

@slkiser
slkiser merged commit 6e3fda8 into slkiser:main Aug 9, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[feature]: notify when quota windows reset

2 participants