fix(coco): 兼容 traecli 重命名#449
Draft
DeepColds wants to merge 1 commit into
Draft
Conversation
deepcoldy
marked this pull request as draft
July 18, 2026 18: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.
改动
coco命令;当 PATH 中找不到coco但能找到新版traecli时,自动 fallback 到traecli。.../traecli时显示为可复制的traecli --resume <session>。/api/cli-options下发各 CLI 的modelChoices,Bot Defaults 页消费该字段,让非 ttadk CLI 也能展示模型候选。影响面
cocoCLI 适配器:仅默认命令为coco且 shell 探测不到coco时新增探测traecli;显式 path/command override 不变。/api/cli-options会构造各 CLI adapter 读取静态modelChoices;这些 adapter 已按懒解析设计,不会在此处解析二进制路径。modelChoices字段解析;React 页面继续使用 datalist 展示候选,不改变保存接口。测试
pnpm buildpnpm vitest run --project unit test/cli-adapters.test.ts(279 passed)pnpm test:当前环境有 15 个既有失败,和本次改动无关:test/terminal-url.test.ts/test/recall-frozen-cards.test.ts期望 localhost/自定义 public URL,但环境实际返回https://m-a63a837291d638eb.botmux.bytedance.net/...test/session-discovery.smoke.test.ts当前进程 comm 为MainThread,测试期望/^node/itest/dashboard-monitoring-ui.test.tsCSS 断言失败