mirror of
https://github.com/QwenLM/qwen-code.git
synced 2026-07-22 15:34:06 +00:00
When a skill is invoked multiple times in a session, each invocation previously appended the full SKILL.md body content to the conversation history as a new tool result, wasting context tokens. Add an isSkillLoaded callback to SkillToolInvocation that checks loadedSkillNames before building the full content. On re-invocation, return a short confirmation message instead of the full body. The check runs after successful skill load (so disabled/not-found paths are unaffected) but before content construction, hooks registration, and allowedTools application (which are idempotent and already applied on first load). Fixes #6427 Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com> |
||
|---|---|---|
| .. | ||
| scripts | ||
| src | ||
| vendor | ||
| index.ts | ||
| package.json | ||
| test-setup.ts | ||
| tsconfig.json | ||
| vitest.config.ts | ||