Repository navigation
test(tui): use an existing flag in the experiments telemetry test - #5415
Conversation
The tool-select experimental flag was removed in #5237, but the /experiments telemetry test still used it as its sample flag. Use prompt_prediction, a current flag with no special handling on apply, so the test keeps checking only the reported flag set.
|
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
commit: |
kimi-agent-bot
left a comment
There was a problem hiding this comment.
LGTM — clean test fixture update replacing the removed tool-select flag with prompt_prediction. CI is green.
…onshotAI#5415) Port upstream 43fc6cc. The post-apply telemetry case used tool_select, which this fork removed; use prompt_prediction so the test exercises a registered flag. experiments 13 pass.
Requirement or Bug
tool-select实验开关已经在 #5237 移除,但/experiments埋点测试的夹具(#5254 加入)仍然拿它当示例开关 id。特性列表是 mock 的,测试照常通过,只是读起来像在测一个还存在的开关。这个 PR 把它换成现有的开关。Bug Reproduction Steps
N/A
Root Cause
N/A
Code Changes
apps/kimi-code/test/tui/commands/experiments.test.ts里「reports the post-apply enabled flag set in telemetry」这个用例,把tool-select换成prompt_prediction。选它是因为应用变更时它没有特殊分支(notify_user不会重载会话,tower会额外提示重启),测试仍然只关注上报的开关集合;期望的flags按排序改成prompt_prediction,wait_for。Behavior Changes and Affected Users
None:只改了测试夹具,产品代码、默认值和契约文件都没有动。
验证:
experiments.test.ts的 8 个用例通过;@moonshot-ai/kimi-code的 typecheck、pnpm lint、pnpm run check:duplication通过。Checklist
/approve).gen-changesetsskill, or this PR needs no changeset.gen-docsskill, or this PR needs no doc update.