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

オープン
#152 コメント 3 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
5/5
見積もり時間
1週間以上
初心者へのやさしさ
35/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
活発
技術スタック
go
領域
api, backend

調査の方向性

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.

索引モデルが issue の本文から書いたものです。

説明

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.

主要言語
Go
スター
756
フォーク
65
平均マージ
9日 4時間
マージ済み PR(30日)
1

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

onllm-dev/onWatch のほかの issue

onllm-dev/onWatch の issue をすべて見る

似ている issue

Go の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。