fix(codex): open usage analytics from Usage Dashboard - #4005
Conversation
The Codex Usage Dashboard link still pointed at the retired chatgpt.com/codex/settings/usage route, which now redirects to the ChatGPT home page. Point it at the Codex analytics usage page that the OpenAI web scraper already loads, add a descriptor regression test, and update the docs. Fixes steipete#4004. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01U5RPHRnyM31gn2f7XjM4aw
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
Codex review: needs maintainer review before merge. Reviewed September 26, 2026, 2:11 AM ET / 06:11 UTC (Revision 6). ClawSweeper reviewWhat this changesUpdates CodexBar’s Codex Usage Dashboard link to open usage analytics, with a regression test, documentation updates, and an unreleased fix note. Merge readiness✅ Ready for maintainer review Current main and v0.67.0 still open the retired Codex dashboard route. This paired PR addresses the reported problem, has direct screenshot evidence of the new destination, and has no identified blocking defect. Priority: P2 Review scores
Verification
How this fits togetherCodexBar’s menu reads the selected provider’s dashboard URL from registered metadata and opens it in the system browser. Its separate OpenAI web fetcher already uses the analytics page to collect Codex usage. flowchart LR
A[Codex menu] --> B[Usage Dashboard action]
B --> C[Registered provider URL]
C --> D[System browser]
D --> E[Codex usage analytics]
F[OpenAI web fetcher] --> E
Before mergeNone. Agent review detailsSecurityNone. Review metricsNone. Root-cause clusterRelationship: Members:
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything. Technical reviewBest possible solution: Keep the menu destination aligned with the working Codex analytics route and ship the focused regression coverage in the next release. Do we have a high-confidence way to reproduce the issue? Yes. v0.67.0 and current main register the retired URL, and the menu action opens that registered URL; the contributor reports its redirect to the home page. I did not execute current main. Is this the best way to solve the issue? Yes. Changing the registered menu URL to the analytics page already used by the fetcher is a narrow repair, and the new test covers that registration. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 3d2364346da8. LabelsLabel changes: No label changes. Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (5 earlier review cycles)
|
Resolve the dashboard URL through registered metadata and preserve its usage fragment. Move the release note to the current Unreleased section and inline the single-use credential adapter without changing its configuration.
# Conflicts: # CHANGELOG.md
|
Merged as yours, @RowboTony, with your commits intact; the maintainer commits on your branch only added the URL regression test, the doc updates, the changelog line, and merges from main. Ships in 0.67.1. Thanks for the fix, and welcome aboard. |
Summary
Fixes #4004. Codex's Usage Dashboard action opens
https://chatgpt.com/codex/settings/usage, which ChatGPT now redirects to the home page. It now openshttps://chatgpt.com/codex/cloud/settings/analytics#usage, the Codex usage analytics page thatOpenAIDashboardFetcher.usageURLhas loaded since 2bea4f0.CodexProviderDescriptor: updatedashboardURL. This is provider metadata only; the scraper,isUsageRoute, auth, and fetching are unchanged.CodexProviderDescriptorTestsregression test, mirroringOpenRouterProviderDescriptorTests.docs/codex.mdanddocs/providers.md: the web-dashboard URL now matches what the scraper actually loads.Verification
./Scripts/package_app.sh debug(CodexBar 0.67.0,com.steipete.codexbar.debug, ad-hoc signed) on macOS 15.7.9 and launched it. In the Codex tab, Usage Dashboard openedhttps://chatgpt.com/codex/cloud/settings/analytics#usagein the browser, landing on Codex and Work Analytics › Usage with the same weekly limit as the menu. Hide personal information was enabled for the capture. Before the fix, v0.66.0 openschatgpt.com/codex/settings/usage, which lands onchatgpt.com/(home).swift test --filter CodexProviderDescriptorTestspasses on this branch (1 test, 1 suite). Withmain's descriptor restored, it fails withdashboardURL → "https://chatgpt.com/codex/settings/usage".TestsLinux/CostUsageQuotaWeekLinuxTests.swift(lines 245 and 288 hit "unable to type-check this expression in reasonable time"). That tweak is not part of this PR; I can send it separately if useful.make check: my changes are clean. The only violation is a pre-existingline_lengthinSources/CodexBarCore/Providers/TypeSafe/TypeSafeWebFetchStrategy.swift:175onmain, which this PR doesn't touch.After: Usage Dashboard in the freshly built app (0.67.0)
After: the page it opens
🤖 Generated with Claude Code
https://claude.ai/code/session_01U5RPHRnyM31gn2f7XjM4aw