Repository navigation
fix(dashboard): Agent 下拉框支持按 CLI 启动命令搜索 - #3789
Merged
Merged
Conversation
Co-Authored-By: Kimi <[email protected]>
deepcoldy
requested review from
47seek,
LucasIcarus,
xiaoxueSunn and
xiongz-c
as code owners
November 24, 2026 08:37
Co-Authored-By: Kimi <[email protected]>
Owner
Author
自动评审意见(head
|
This was referenced Nov 25, 2026
|
🚀 Released in v3.59.32 |
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.
改动
/api/cli-options复用注册表现有的CLI_ALIASES,下发各 CLI 的启动命令名与短别名作为隐藏搜索词。cliSearchTerms:仅非空searchTerms覆盖回退;字段缺失或[]时均回退到旧服务端已有的command。searchTerms:非数组转为[],数组仅保留字符串,避免异常响应导致渲染期.some is not a function。影响面
测试
bun run test -- test/dashboard-cli-search-terms.test.ts test/dashboard-bot-defaults-cliid.test.ts test/dashboard-dropdown-menu.test.ts test/dashboard-cli-options-session-probe.test.ts test/dashboard-bot-defaults-model-picker.test.ts test/dashboard-cli-availability.test.ts test/dashboard-agent-managed-lock.test.ts test/dashboard-onboarding-review-notice.test.ts:8 个文件,167 条通过、1 条既有条件跳过。bun run typecheck:通过。bun run build:通过(含完整 tsc、typecheck、Dashboard bundle 与构建审计)。agy→ Antigravity、CC→ Claude、名称与配置 ID 搜索、纯函数[]回退、两条旧服务端 fixture 链路,以及字符串形异常searchTerms容错。.some is not a function);移除三处接线使三个下拉各自变红。恢复后上述测试全绿。搜索示意
agyAntigravity(antigravity)CCClaude(claude-code)Oh MyOh My Pi(oh-my-pi)-my-piOh My Pi(oh-my-pi)🤖 Generated with Claude Code