Feature request: opt-in auto-redemption of expiring Codex banked resets

Open
#152 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
35/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Active
Tech stack
go
Domain
api, backend

Research direction

Start by reading the Codex account and quota monitoring entry points, then trace how account settings, polling, redemption, notifications, and dashboard data are handled. The issue does not name specific files or tests. Done means opt-in redemption safely handles expiry, retries, duplicate prevention, and unavailable APIs, with status and actionable notifications surfaced to users.

Written by the indexing model from the issue text.

Description

Summary

Could onWatch add an opt-in, disabled-by-default setting to automatically redeem expiring Codex banked resets?

The goal is to avoid losing a banked reset simply because the user did not notice its expiry or was away when it needed to be redeemed.

Proposed behavior

  • Add an Auto-redeem expiring banked resets setting for each Codex account/profile, separate from the existing quota-starter setting.
  • Monitor available banked resets and their expiry times, and redeem the earliest-expiring eligible reset one hour before expiry by default. A configurable lead time would be useful.
  • Show the available reset count, next expiry, and last automatic redemption in the dashboard, where that information is available.
  • Explain when enabling the setting that redemption consumes a banked reset and can reset the current usage window. Ordinary quota monitoring should remain read-only unless the user explicitly enables this feature.

Reliability and notifications

  • Recheck eligibility and current account state immediately before redemption.
  • Prevent duplicate consumption across polling cycles, concurrent workers, and restarts. Use API idempotency where supported, and reconcile an uncertain result before attempting another redemption so a timeout cannot consume additional resets.
  • Retry transient failures with bounded backoff while the reset is still eligible, respect rate limits, and surface authentication failures that require user action.
  • Offer notifications through the configured channels for successful redemption and actionable failures, with enough detail to identify the account and expiry without exposing credentials.
  • If an account or API does not expose reset expiry/redemption, show that the feature is unavailable rather than guessing or silently failing.

Related issue

I checked open and closed issues for Codex, reset, banked, and redeem. #76 (Auto quota starter?) is related, but starts ordinary quota windows; this request is specifically about redeeming an existing banked reset before it expires.

Dominant language
Go
Stars
756
Forks
65
Avg merge
9d 4h
Merged PRs (30d)
1

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from onllm-dev/onWatch

All issues in onllm-dev/onWatch

Similar issues

More Go issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.