Skip to content

test(tui): use an existing flag in the experiments telemetry test - #5415

Merged
wbxl2000 merged 1 commit into
mainfrom
qer/experiments-telemetry-fixture
Nov 25, 2026
Merged

wbxl2000 merged 1 commit into
mainfrom
qer/experiments-telemetry-fixture

Conversation

@wbxl2000

Copy link
Copy Markdown
Collaborator

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

  • I have read the CONTRIBUTING document.
  • I have linked a related issue (external PRs: issue must have a maintainer's /approve).
  • I have added tests that prove my feature works.
  • The behavior-change table above is complete, and every removed behavior or flipped default is named in the changeset and either has an escape hatch or was explicitly approved by a maintainer in this PR.
  • Ran gen-changesets skill, or this PR needs no changeset.
  • Ran gen-docs skill, or this PR needs no doc update.

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.
@changeset-bot

changeset-bot Bot commented Nov 25, 2026

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: c380778

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 25, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-25T10:50:06.027333Z c380778 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@pkg-pr-new

pkg-pr-new Bot commented Nov 25, 2026

Copy link
Copy Markdown
pnpm dlx https://pkg.pr.new/@moonshot-ai/kimi-code@c380778
npx https://pkg.pr.new/@moonshot-ai/kimi-code@c380778

commit: c380778

@kimi-agent-bot kimi-agent-bot left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM — clean test fixture update replacing the removed tool-select flag with prompt_prediction. CI is green.

@wbxl2000
wbxl2000 merged commit 43fc6cc into main Nov 25, 2026
20 checks passed
@wbxl2000
wbxl2000 deleted the qer/experiments-telemetry-fixture branch November 25, 2026 11:44
7723qqq pushed a commit to 7723qqq/kimi-code that referenced this pull request Nov 25, 2026
…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.
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.

2 participants