Skip to content

fix(cursor): accept grok_ API key prefix in guidance and live-test redaction - #1415

Closed
eust-w wants to merge 1 commit into
Tencent:mainfrom
eust-w:fix/issue-959-cursor-key-prefix
Closed

eust-w wants to merge 1 commit into
Tencent:mainfrom
eust-w:fix/issue-959-cursor-key-prefix

Conversation

@eust-w

@eust-w eust-w commented Nov 25, 2026 •

Copy link
Copy Markdown
Contributor

问题 / Problem

Cursor 现在签发的 API Key 以 grok_ 开头,而 Cursor 凭证引导文案仍写“复制以 crsr_ 开头的 Key”,用户容易误以为新 Key 无效;live 测试的日志脱敏也只覆盖 crsr_,grok_ Key 不会被脱敏。
Cursor now issues keys starting with grok_; the credential guide still said keys start with crsr_, and the live-test log redaction only covered crsr_.

修复 / Fix

  • web/app/workbench.js:引导文案改为新版 grok_、旧版 crsr_ 均可使用。
  • internal/runtime/cli_live_config.go、internal/httpapi/cli_live_test.go:脱敏前缀列表加入 grok_。
  • 说明:排查代码未发现对 Cursor Key 前缀的服务端/前端硬校验(Key 原样写入 CURSOR_API_KEY),因此本 PR 只修正误导性文案与脱敏;若仍有运行失败,需要 issue 作者补充复现信息与报错。

验证 / Validation

  • node --check web/app/workbench.js 通过。
  • gofmt -l 对改动的 Go 文件无输出。
  • 未运行 Go 测试:live 文件带 clilive build tag,且 web/embed.go 需先构建前端资源;改动仅为字符串列表项。

Refs #959

🤖 Generated with Claude Code

…daction

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@eust-w

eust-w commented Nov 26, 2026

Copy link
Copy Markdown
Contributor Author

已合并进 #1443 一并 review,关闭本 PR。

@eust-w eust-w closed this Nov 26, 2026
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