merge main

This commit is contained in:
DennisYu07 2026-03-19 17:12:19 +08:00
commit 6f914e4f4e
228 changed files with 28059 additions and 2618 deletions

View file

@ -11,6 +11,8 @@ import {
uiTelemetryService,
SessionEndReason,
SessionStartSource,
ToolNames,
SkillTool,
} from '@qwen-code/qwen-code-core';
export const clearCommand: SlashCommand = {
@ -38,6 +40,15 @@ export const clearCommand: SlashCommand = {
// Reset UI telemetry metrics for the new session
uiTelemetryService.reset();
// Clear loaded-skills tracking so /context doesn't show stale data
const skillTool = config
.getToolRegistry()
?.getAllTools()
.find((tool) => tool.name === ToolNames.SKILL);
if (skillTool instanceof SkillTool) {
skillTool.clearLoadedSkills();
}
if (newSessionId && context.session.startNewSession) {
context.session.startNewSession(newSessionId);
}