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

Đang mở
#152 3 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
5/5
Thời gian dự kiến
Hơn một tuần
Mức phù hợp với người mới
35/100
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
go
Lĩnh vực
api, backend

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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.

Ngôn ngữ chính
Go
Star
756
Fork
65
Merge trung bình
9 ngày 4 giờ
Pull request đã merge (30 ngày)
1

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của onllm-dev/onWatch

Tất cả issue của onllm-dev/onWatch

Issue tương tự

Thêm issue về Go

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.