Skip to content

Harden account usage window refresh#190

Merged
yvette-carlisle merged 2 commits into
mainfrom
xy/account-usage-window-validation
Jun 3, 2026
Merged

Harden account usage window refresh#190
yvette-carlisle merged 2 commits into
mainfrom
xy/account-usage-window-validation

Conversation

@yvette-carlisle
Copy link
Copy Markdown
Member

@yvette-carlisle yvette-carlisle commented Jun 3, 2026

Summary

  • reject zero-second/placeholder Codex usage windows and preserve last-known-good primary/secondary windows across degraded refreshes
  • store current usage windows in account usage history so the app can restore usable quota rows after a bad upstream response
  • make decodex status use a local snapshot by default, add explicit --live for Linear/GitHub readback, and keep status account reads snapshot-only
  • probe configured ChatGPT accounts with bounded parallelism during explicit account refreshes, while preserving per-account result ordering and token refresh writeback

Verification

  • cargo test -p decodex codex_accounts --all-features
  • cargo test -p decodex usage_history --all-features
  • cargo test -p decodex idle_operator_status_snapshot_includes_configured_codex_accounts --all-features
  • cargo test -p decodex parses_status_with_json_limit_and_project_config --all-features
  • cargo make check
  • git diff --check
  • target/debug/decodex status --help shows --live
  • target/debug/decodex status --json measured real 2.27 with account refresh_status=not_checked
  • target/debug/decodex status --live --json measured real 13.59, keeping slow live observers explicit
  • semantic drift helper: no stale phrase hits; docs/manual skill updated for status --live

@yvette-carlisle yvette-carlisle merged commit 2bc7d3b into main Jun 3, 2026
14 checks passed
@yvette-carlisle yvette-carlisle deleted the xy/account-usage-window-validation branch June 3, 2026 06:59
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.

1 participant