Skip to content

fix(core): remove duplicate telemetry test registry stub - #10243

Merged
yiliang114 merged 1 commit into
QwenLM:mainfrom
AaronZ345:fix/10205-client-telemetry-tool-registry
Aug 27, 2026
Merged

fix(core): remove duplicate telemetry test registry stub#10243
yiliang114 merged 1 commit into
QwenLM:mainfrom
AaronZ345:fix/10205-client-telemetry-tool-registry

Conversation

@AaronZ345

Copy link
Copy Markdown
Contributor

Summary

  • Remove the duplicate getToolRegistry property from client.telemetrySwap.test.ts's minimal Config double.
  • Keep the fuller documented stub so resumed-session initialization can still call restoreLoadedSkillsFromHistory without touching a real skill registry.

Validation

  • RED: npm run typecheck --workspace packages/core failed with TS1117: An object literal cannot have multiple properties with the same name before the fix.
  • GREEN: npm run typecheck --workspace packages/core
  • GREEN: npm run build --workspace packages/core && npm run test --workspace packages/core -- src/core/client.telemetrySwap.test.ts --pool threads --maxWorkers 1

Closes #10205

Keep the minimal getToolRegistry mock once so the telemetry swap test double still covers resumed-session initialization without breaking TypeScript compilation.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@callmeYe

Copy link
Copy Markdown
Collaborator

Thanks for isolating this. The duplicate stub currently breaks main builds and is also the sole cause of the failed install/build jobs on #10244 (and other newly opened PRs). Once the remaining WebShell E2E check is green, could you mark this PR ready and request merge/review? I am keeping the unrelated core fix out of #10244 and will merge the repaired main normally after this lands.

@yiliang114 yiliang114 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.

Verified locally: with exactly this removal applied to current main, the full workspace build (npm run build) passes cleanly — this TS1117 was the only compile error. Keeping the #10220 copy with the fuller rationale comment is the right choice. Merging to unbreak main.

@yiliang114
yiliang114 marked this pull request as ready for review August 27, 2026 06:10
@yiliang114
yiliang114 enabled auto-merge August 27, 2026 06:10
@qwen-code-ci-bot

qwen-code-ci-bot commented Aug 27, 2026

Copy link
Copy Markdown
Collaborator

Qwen Triage finishedview run. See the stage comments in this thread for the result.

Qwen Triage 已完成 —— 查看运行。结果见本线程中的各阶段评论。

@yiliang114
yiliang114 added this pull request to the merge queue Aug 27, 2026
Merged via the queue into QwenLM:main with commit a420386 Aug 27, 2026
109 of 110 checks passed
yiliang114 added a commit that referenced this pull request Aug 27, 2026
… telemetrySwap test)

PR CI was red solely due to the pre-existing TS1117 duplicate getToolRegistry
in client.telemetrySwap.test.ts (introduced by #10220, fixed by #10243 which is
now merged). Syncing main to turn CI green without touching the fix commits.

Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
@qwen-code-ci-bot

Copy link
Copy Markdown
Collaborator

Released in v0.22.3.

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.

fix(core): client.telemetrySwap.test.ts's minimal Config double breaks on getToolRegistry() added by #10016

5 participants