Add Kimi K2 usage dashboard shortcut#1919
Conversation
|
Codex review: needs maintainer review before merge. Reviewed July 6, 2026, 8:34 PM ET / 00:34 UTC. Summary Reproducibility: not applicable. this is a feature PR rather than a bug report. The observable behavior is supported by source inspection, the PR head menu test, and live URL output for the dashboard destination. Review metrics: none identified. Merge readiness Overall follows the weaker of proof and patch quality, so missing proof can cap an otherwise strong patch. Rank-up moves:
Risk before merge
Maintainer options:
Next step before merge
Security Review detailsBest possible solution: Land the small metadata/test update if maintainers accept kimrel.com/my-credits as the Kimi K2 dashboard destination. Do we have a high-confidence way to reproduce the issue? Not applicable: this is a feature PR rather than a bug report. The observable behavior is supported by source inspection, the PR head menu test, and live URL output for the dashboard destination. Is this the best way to solve the issue? Yes. The patch uses the existing ProviderMetadata.dashboardURL and MenuDescriptor action path rather than adding provider-specific menu plumbing. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 46edb383c0ac. Label changesLabel changes:
Label justifications:
Evidence reviewedWhat I checked:
Likely related people:
What the crustacean ranks mean
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics. How this review workflow works
Review history (9 earlier review cycles; latest 8 shown)
|
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 9bfd6389b9
ℹ️ 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".
|
@clawsweeper re-review |
|
@codex review |
|
🦞🧹 I asked ClawSweeper to review this item again. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 038e0b0be3
ℹ️ 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".
| usesAccountFallback: false, | ||
| browserCookieOrder: nil, | ||
| dashboardURL: nil, | ||
| dashboardURL: "https://kimi-k2.ai/", |
There was a problem hiding this comment.
Point Kimi K2 dashboard at the credits page
The new menu action opens this URL directly through dashboardURL(for:), but the Kimi K2/Kimrel API docs list usage tracking at /my-credits (https://kimrel.com/my-credits). With https://kimi-k2.ai/, the “Usage Dashboard” shortcut lands on the marketing/home page instead of the credit dashboard, so users still have to navigate manually to see the balance this provider tracks.
Useful? React with 👍 / 👎.
|
@clawsweeper re-review |
|
@openclaw-mantis visual task: verify Kimi K2 shows Usage Dashboard in CodexBar and opens https://kimrel.com/ via https://kimi-k2.ai/. |
|
@clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. |
|
@clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. |
|
@clawsweeper re-review |
1 similar comment
|
@clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. |
Open the human-facing Kimi credits page (https://kimrel.com/my-credits) from the menu Usage Dashboard action instead of the bearer-token /api/user/credits endpoint, which returns HTTP 401 to an unauthenticated browser. Add a MenuDescriptor test asserting the dashboard action and URL, and update the metadata status-link test.
1a753da to
0677b50
Compare
|
@clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. |
Use testSettingsStore so the MenuDescriptor test uses in-memory/noop stores for every legacy secret and cookie store instead of leaving SettingsStore dependencies at their keychain-backed defaults.
Summary
https://kimrel.com/my-credits), not the bearer-token API endpointWhy
kimrel.com/my-creditsand not the API endpointThe first iteration pointed the shortcut at
https://kimi-k2.ai/api/user/credits. That is the bearer-token credits API: an unauthenticated browser open returns HTTP 401 JSON, so the "Usage Dashboard" item would dump raw error JSON instead of opening a real dashboard. Live verification (resolves the open question I previously flagged):kimi-k2.ai(the API host the descriptor already uses) 301-redirects tokimrel.com, andkimrel.com/my-creditsis the human-facing credits page on the same service — unauthenticated users land on the Next.js Sign In page (HTMLSign in/Sign Inbody, confirmed live), and authenticated users see their credit balance. This resolves the "don't open the API endpoint as a dashboard" concern with a browser-safe destination that preserves the shortcut.Note for the maintainer
kimrel.comis wherekimi-k2.airedirects, so it is the canonical human-facing domain for this service; if steipete prefers a different Kimi credits/dashboard surface, swapping the singledashboardURLstring and the two test assertions is a one-line change. No CHANGELOG entry is included (release-owned); the maintainer can credit@joeVennerat release time as with the merged Kimi K2 follow-ups.Testing
swift test --disable-sandbox --filter "MenuDescriptorKimiK2Tests|ProviderMetadataStatusLinkTests"(3 passed, incl.kimi K2 menu exposes the usage dashboard actionandkimi K2 metadata identifies the unofficial provider and its credits dashboard)kimrel.com/my-credits→ 200/signin;kimi-k2.ai/api/user/credits→ 401)swift buildclean