fix(panel): Claude limit resets, setup-token query, official-setup-token - #213
Merged
Merged
Conversation
Logo probes and README previews under /tmp/ are local-only.
Reset query/redeem force claude-cli UA so cedar_ember grants are visible. Claude slots always show 限额查询/限额重置; Codex keeps 券查询/重置券. Setup-token with user:profile can query; inference-only and API keys still 400.
Bugbot couldn't run - usage limit reachedBugbot is counted against Cursor usage for this user or team, and this run hit a usage or spend limit. A user or team admin can review and increase usage limits in the Cursor dashboard. (requestId: 5aaf4565-3ace-44b2-be4b-d252f20d4ad3) |
Official claude setup-token (year oat, inference-only, no refresh) now persists as official-setup-token. Panel Cookie/link conversion stays setup-token with the full OAuth grant. office-setup-token is an alias.
Bugbot couldn't run - usage limit reachedBugbot is counted against Cursor usage for this user or team, and this run hit a usage or spend limit. A user or team admin can review and increase usage limits in the Cursor dashboard. (requestId: fbe50304-4e2f-41e6-a678-1b1e258fab03) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
reset-status/reset-redeem固定claude-cli/<version> (external, cli)。遥测 UAclaude-code/会被上游标成ineligible_reason=surface,查询次数为 0。user:profile的 转换后 Setup Token 可以查询兑换;纯 inference 和 API Key 点查询仍 400。claude setup-token(一年期、仅 inference、无 refresh)落盘为official-setup-token,面板文案「官方 Setup Token」。Cookie/授权链转换的完整票仍是setup-token。office-setup-token视为同一类型。/tmp/验证草稿加入 gitignore。Test plan
node --test test/unit/claude-reset-credits.test.mjsnode --test test/unit/credential-mode.test.mjs test/unit/oauth-credentials.test.mjsgo test ./internal/oauthcmd/ ./internal/credential/tenure不可兑Deploy
更新 Node、
web/dist、bin/kin-worker,重启kin-gateway一次,并docker restart挂载了 worker 的槽。kernel / cli-node 未变,不需要wrap-cli/sync。不要docker rm。Note
Medium Risk
Changes OAuth credential classification, import paths, and upstream limit-reset behavior; misclassification could block refresh or incorrectly allow reset queries, though scope checks and new tests mitigate this.
Overview
Introduces
official-setup-tokenas a distinct credential mode for year-long CLIclaude setup-tokengrants (inference-only, no refresh), separate from panel-convertedsetup-tokentickets that can still carry full scopes. Import, exchange, persistence, and inference routing now classify and store these types differently; official tokens cannot refresh, convert to full setup-token, or use official usage APIs, while both setup-token flavors still share inference-style outbound headers.Claude native limit-reset eligibility is refined: API keys and official setup tokens are excluded, but converted setup-token slots with
user:profilecan query/redeem; pure inference and API key attempts still fail with profile-scope errors. VMs exposecan_claude_resetto the panel so Claude vs Codex reset buttons are shown by platform rather than only full OAuth.Docs/changelog note
reset-status/reset-redeemusingclaude-cli/<version> (external, cli)UA (telemetry UA yields zero eligible resets). Minor housekeeping: README v1.3.94 badge,/tmp/in.gitignore, rebuiltweb/dist, and expanded unit/e2e tests for the new modes.Reviewed by Cursor Bugbot for commit acd8d6c. Configure here.