Skip to content

fix: stabilize plan usage dashboard and connect snapshot (ADA-128)#172

Merged
adamfgr merged 5 commits into
mainfrom
t3code/usage-dashboard-fix
Jul 10, 2026
Merged

fix: stabilize plan usage dashboard and connect snapshot (ADA-128)#172
adamfgr merged 5 commits into
mainfrom
t3code/usage-dashboard-fix

Conversation

@wizzoapp

@wizzoapp wizzoapp Bot commented Jul 10, 2026

Copy link
Copy Markdown

Fixes ADA-128.

Filters Codex Spark rate-limit buckets, fixes deterministic provider/window ordering and the Codex/Anthropic divider, and moves all plan-usage probing into one two-minute background snapshot store. The initial server-config RPC exchange now carries the current snapshot, so connect performs no on-demand usage request or provider probe.

Guardrails cover Spark-only fallback, stable ordering/provider boundary, background cadence/failure handling, deduplicated provider aliases, HTTP/MCP snapshot reads, client projection, and the initial WebSocket config exchange.

Verification: vp check, vp run typecheck, 169 targeted tests, vp run build:desktop, and Playwright against disposable ada-128-local. The browser made zero /api/plan-usage requests on connect; the first RPC frame contained Codex+Claude usage; the popover showed no Spark, fixed Codex-before-Claude ordering, and one clear provider divider. Screenshots: /tmp/ada-128-local-connect.png, /tmp/ada-128-local-usage-fixed.png.

@wizzoapp wizzoapp Bot marked this pull request as ready for review July 10, 2026 10:12

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 10fd795c6e

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

Comment thread apps/server/src/usage/PlanUsageSnapshot.ts
@wizzoapp wizzoapp Bot marked this pull request as draft July 10, 2026 10:21
@wizzoapp wizzoapp Bot marked this pull request as ready for review July 10, 2026 10:21
adamfgr
adamfgr previously approved these changes Jul 10, 2026

@adamfgr adamfgr left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Auto-approved by wizzo-approve: all policy conditions verified against HEAD 4a39481.

@adamfgr adamfgr enabled auto-merge (squash) July 10, 2026 10:27
@wizzoapp wizzoapp Bot marked this pull request as draft July 10, 2026 10:27
auto-merge was automatically disabled July 10, 2026 10:27

Pull request was converted to draft

@wizzoapp wizzoapp Bot marked this pull request as ready for review July 10, 2026 10:27

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 413682dc2e

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

Comment thread apps/server/src/usage/PlanUsageSnapshot.ts Outdated
Comment thread apps/web/src/components/chat/usePlanUsage.ts

@adamfgr adamfgr left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Auto-approved by wizzo-approve: all policy conditions verified against HEAD 2ad8bf4.

@adamfgr adamfgr merged commit d01b6b5 into main Jul 10, 2026
12 checks passed
@adamfgr adamfgr deleted the t3code/usage-dashboard-fix branch July 10, 2026 13:24
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