Skip to content

fix(ui): collapse duplicate in-flight tool_group rendered from history + pending - #9421

Open
qwen-code-dev-bot wants to merge 5 commits into
mainfrom
fix/dup-tool-group-9420
Open

fix(ui): collapse duplicate in-flight tool_group rendered from history + pending#9421
qwen-code-dev-bot wants to merge 5 commits into
mainfrom
fix/dup-tool-group-9420

Conversation

@qwen-code-dev-bot

Copy link
Copy Markdown
Collaborator

What this PR does

Fixes the TUI bug where the most recently invoked tool call row renders twice while executing, then collapses to one when the next tool call arrives (which then shows twice). The same in-flight tool_group was present both in committed history and the live pending list (or twice within pending), so MainContent's combined virtualized list rendered it twice.

Fix: in MainContent, collapse consecutive tool_group rows that share an identical callId signature (toolGroupSignature), keeping the later item so the live pending copy (which keeps updating) wins over the static history copy. Only true consecutive duplicates are collapsed; distinct batches are untouched.

Why it's needed

#9420: every sequential tool call showed the latest row twice until the next arrived — a visible, per-tool-call rendering defect in the default TUI.

Reviewer Test Plan

How to verify

  1. npx vitest run packages/cli/src/ui/components/MainContent.test.tsx — 24 tests pass, including the new "collapses a tool_group duplicated across history and pending (bug(ui): in-flight tool call rendered twice until the next tool call arrives (history + pending double-include) #9420)" test (asserts the duplicated batch renders once as the pending item, not twice).
  2. Manual: run a task with a couple of sequential read_file calls; each tool row should render exactly once while executing.

Evidence (Before & After)

Before: latest tool call row twice; previous collapses to one when next arrives. After: each tool call renders once. (Unit test pins the combined-list dedup.)

Tested on

OS Status
🍏 macOS ⚠️ needs manual confirm
🪟 Windows N/A
🐧 Linux ✅ (unit tests)

Risk & Scope

  • Main risk or tradeoff: the dedup only fires on consecutive tool_groups with an identical sorted-callId signature, so legitimate distinct batches are unaffected; keeping the later item preserves live status updates.
  • Not validated / out of scope: live-terminal visual confirmation; the deeper question of why the same tool_group lands in both history and pending (this PR de-dupes at the render seam, which is safe and sufficient for the symptom).
  • Breaking changes / migration notes: None.

Linked Issues

Fixes #9420

中文说明

这个 PR 做了什么

修复 TUI 中"最新一条工具调用显示两次、下一条到来才恢复"的 bug(#9420)。根因是同一 in-flight tool_group 同时存在于已提交 history 与实时 pending 列表(或 pending 内两次),MainContent 拼接的虚拟列表渲染了两份。修复:对相邻且 callId 签名相同的 tool_group 折叠为一份,保留后者(实时 pending 副本,状态持续更新)。仅折叠真正的相邻重复,不同批次不受影响。

风险与范围

  • 主要风险:仅对相邻且 callId 签名相同的 tool_group 生效,不同批次不受影响;保留后者以维持实时状态更新。
  • 未验证:真机视觉确认;"为何同一 tool_group 同时进 history 与 pending"的更深层原因(本 PR 在渲染接缝去重,安全且足以消除症状)。
  • 破坏性变更:无。

…y + pending (#9420)

The latest tool call rendered twice: the same in-flight tool_group was present
both in committed history and the live pending list (or twice within pending),
so MainContent's combined virtualized list showed it twice until the next tool
call finalized. Collapse consecutive tool_group rows with an identical callId
signature, keeping the later (live pending) copy so status keeps updating.

Adds a regression test asserting a duplicated tool_group renders once.

Fixes #9420
@github-actions github-actions Bot added the review/self-reported The linked issue was opened by the PR author (self-reported) label Aug 18, 2026
@qwen-code-ci-bot

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

Copy link
Copy Markdown
Collaborator

Qwen Triage finished — CI landed green on 5491215 and the deferred approval was posted. finalize run

Qwen Triage 已完成 —— 5491215 的 CI 全绿,延迟审批已提交。查看 finalize 运行

@qwen-code-ci-bot

Copy link
Copy Markdown
Collaborator

Thanks for the PR!

Template looks good ✓

Problem: observed bug with solid evidence — linked issue #9420 carries concrete reproduction steps and a root-cause analysis of the history/pending double-include. Self-reported by the same author, but the repro is specific (any sequential tool calls in the default TUI) and the mechanism is plausible.

Direction: aligned — a visible per-tool-call rendering defect on the default TUI path. No direct match in the reference CHANGELOG, but duplicate-render fixes are a recurring defect class there too; the area is clearly relevant.

Size: no core paths touched (packages/cli/src/ui/components); 42 production lines (MainContent.tsx) + 32 test lines. Small and focused.

Approach: scope feels right. One question worth sitting with: #9420 suggested either filtering the pending copy that is already in history, or deferring the history commit until the group finalizes — this PR instead de-dupes at the render seam, keeping the later (live) item. That is a defensible, minimal choice, but it leaves the underlying double-include in place; the code review should confirm the signature match is exact enough that a genuinely distinct batch can never be collapsed by accident.

Risk: no elevated risk signals.

Moving on to code review. 🔍

中文说明

感谢贡献!

模板完整 ✓

问题:已观测到的 bug,证据充分 —— 关联 issue #9420 提供了具体复现步骤和 history/pending 双重包含的根因分析。虽为同一作者自报,但复现明确(默认 TUI 下任意连续工具调用),机制可信。

方向:对齐 —— 这是默认 TUI 路径上每次工具调用都可见的渲染缺陷。参考 CHANGELOG 无直接对应条目,但重复渲染修复在那里也是常见缺陷类别;该领域显然相关。

规模:未触及核心路径(packages/cli/src/ui/components);42 行生产代码(MainContent.tsx)+ 32 行测试。小而聚焦。

方案:范围合理。一个值得考虑的问题:#9420 建议过滤已在 history 中的 pending 副本,或推迟到 group 结束再写入 history —— 本 PR 选择在渲染接缝处去重,保留后者(实时项)。这是可辩护的最小改动,但底层的双重包含依然存在;代码审查需确认签名匹配足够精确,确保真正独立的批次不会被误折叠。

风险:无升级风险信号。

进入代码审查 🔍

Qwen Code · qwen3.8-max

Reviewed at 5491215e13cf6f5605a2147bd05995a6e000dc42 · re-run with @qwen-code /triage

@qwen-code-ci-bot

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

Copy link
Copy Markdown
Collaborator

Code review

My independent take on this bug before reading the diff: de-duplicate at the seam where MainContent joins committed history and live pending items, keyed on the tool_group's callIds, keeping the pending copy since it keeps updating. That is exactly what this PR does — one O(n) pass inside the existing useMemo, no change to the streaming/history lifecycle. Of the options floated in the issue (filter pending entries already in history, or defer the history commit until finalization), this is the most conservative, and the right scope for a rendering symptom.

Details verified while reading:

  • The surviving pending copy keeps its original negative id (ids are assigned before the collapse pass), so virtualKeyExtractor and the index-based pending source-copy-offset lookup (-item.id - 1) both stay correct.
  • toolGroupSignature returns null for non-tool_group items, so the banner and other item types can never be collapsed; the signature is the sorted callIds, and since callIds are server-generated uniques, genuinely distinct consecutive batches cannot collide in practice.
  • Only consecutive duplicates collapse — if interleaving ever breaks the assumption, behavior falls back to today's state rather than regressing.
  • The new unit test pins the seam behavior (duplicated batch renders once, as the pending item) and follows the existing VP_ITEM test conventions.

No blockers; style, typing (unknown narrowing, no any), and collocated-test conventions are all clean. The PR is honest that it de-dupes at the render seam and leaves the deeper double-include (why the same group lands in both history and pending) untouched — that root cause deserves a follow-up issue at some point, but for the user-visible symptom this is the right size of fix.

Test evidence (PR's own CI via API — no PR code executed in this review)

The main Linux unit-test job is still running at the time of writing; the macOS/Windows test jobs were skipped for this run. No failures so far:

Final CI results for 5491215 (auto-updated by the triage finalize job after CI completed):

Check Conclusion
Classify PR ✅ success
Dependency CVE audit ✅ success
Desktop Shell (ubuntu-22.04) ✅ success
Desktop Shell (windows-2022) ✅ success
Post Coverage Comment (ubuntu-latest, 22.x) ✅ success
Secret scan (TruffleHog) ✅ success
Test (ubuntu-latest, Node 22.x) ✅ success
web-shell E2E Smoke (ubuntu-latest, Node 22.x) ✅ success

One row per check name (latest run); skipped checks omitted; failures sort first. / 每个检查名一行(取最新一次运行),省略 skipped,失败项排在最前。

The finalize job will update this table once CI settles. The author reports 24 unit tests (including the new seam test) passing locally — that is the author's claim; the CI run above is what substantiates it.

Sandboxed verification would settle what CI cannot: @qwen-code /tmux — whether each in-flight tool row actually renders exactly once in a live TUI session is not observable from a component-level unit test, and this is a TUI surface change where the visual before/after is the defect itself.

中文说明

代码审查

读 diff 之前我对这个 bug 的独立想法是:在 MainContent 拼接 history 与 pending 列表的接缝处、按 tool_group 的 callId 集合去重,保留持续更新的 pending 副本。PR 的实现与此完全一致——在已有 useMemo 中做一次 O(n) 遍历,不改动 streaming/history 生命周期。相比 issue 中提到的另外两个方案(过滤已在 history 中的 pending 项、或推迟到结束再写入 history),这是最保守的选项,对渲染层症状来说范围也合适。

阅读中核实的细节:

  • 保留的 pending 副本保持原有负数 id(id 在去重之前分配),virtualKeyExtractor 与按索引的 pending source-copy-offset 查找(-item.id - 1)均不受影响。
  • toolGroupSignature 对非 tool_group 项返回 null,banner 等条目不可能被折叠;签名是排序后的 callId 列表,callId 由服务端生成且唯一,相邻的独立批次实际不可能碰撞。
  • 仅折叠相邻重复——若交错打破该假设,行为退回现状而非退化。
  • 新增单测钉住了接缝行为(重复批次只渲染一次、且为 pending 项),并沿用既有 VP_ITEM 测试约定。

无阻塞问题;风格、类型(unknown 收窄、无 any)、同目录测试约定均干净。PR 诚实地说明只在渲染接缝去重,未触及更深层的双重包含根因(同一 group 为何同时进 history 与 pending)——根因值得后续开 issue 跟进,但就用户可见症状而言,这个修复的体量是合适的。

测试证据(PR 自身 CI,经 API 获取——本审查未执行任何 PR 代码)

撰写时 Linux 主单测 job 仍在运行;本次 macOS/Windows 测试 job 被跳过。目前无失败。上方表格由 finalize 任务在 CI 结束后更新。作者自述本地 24 个单测(含新增接缝测试)通过——此为作者声明,以上 CI 才是验证依据。

沙箱验证可补足 CI 无法覆盖的部分:@qwen-code /tmux —— 实时 TUI 会话中每条在途工具行是否确实只渲染一次,组件级单测无法观察,而本 PR 正是 TUI 表面变更,视觉上的 before/after 即缺陷本身。

Qwen Code · qwen3.8-max

Reviewed at 5491215e13cf6f5605a2147bd05995a6e000dc42 · re-run with @qwen-code /triage

@qwen-code-ci-bot

Copy link
Copy Markdown
Collaborator

Confidence: 4/5 — clean, minimal, tested fix that matches what I would have written; the two nits below are follow-ups, not defects.

Stepping back: this is the fix I'd have proposed for #9420 — I independently landed on seam de-duplication before reading the diff, and the PR executes it with the right conservatism: one pass at the render seam, no streaming/history lifecycle changes, the live pending copy wins so status updates keep flowing, and a unit test that pins the seam. Every change in the diff is necessary; there are no drive-by edits. The problem is real and observed (concrete repro in the linked issue), the mechanism was confirmed by reading the code, and the scope matches the reported symptom.

Two non-blocking nits for the record:

  1. The underlying double-include — why an in-flight group lands in both committed history and the pending list — remains in place; this PR correctly papers over it at the render layer for the user-visible symptom. Worth opening a follow-up issue so the root cause isn't lost.
  2. The legacy non-virtual <Static> path renders history and pending through the same structural seam, so it would be worth confirming whether the same symptom appears there. The report is VP-mode only and VP is the default, so this doesn't hold the PR.

Verdict: approve. Approval is deferred until CI lands green on 5491215e13cf6f5605a2147bd05995a6e000dc42 — the Qwen Code CI unit-test run is still in flight at the time of writing. If every check on that commit completes green, the finalize job will post the approval pinned to it; if anything lands red or the head moves, it will flag instead.

中文说明

置信度:4/5 —— 干净、最小、有测试的修复,与我独立给出的方案一致;以下两点是后续事项,不是缺陷。

整体来看:这正是我为 #9420 会提出的修复——读 diff 之前我独立想到的就是接缝去重,而 PR 的执行足够保守:只在渲染接缝做一次遍历,不改 streaming/history 生命周期,保留实时 pending 副本以维持状态更新,并有单测钉住接缝行为。diff 中每一处改动都是必要的,没有夹带无关修改。问题真实且已被观测(关联 issue 有具体复现),机制经代码阅读确认,范围与所报症状匹配。

两条不阻塞的记录项:

  1. 底层的双重包含(在途 group 为何同时进 history 与 pending)仍然存在;本 PR 在渲染层正确地消除了用户可见症状。建议开一个后续 issue,别让根因被遗忘。
  2. 旧的非虚拟 路径通过同样的结构接缝渲染 history 与 pending,值得确认该路径是否也有同样症状。报告仅涉及 VP 模式且 VP 是默认,故不阻塞本 PR。

结论:通过。批准推迟到该提交的 CI 全绿——撰写时 Qwen Code CI 单测仍在运行。若该提交的所有检查通过,finalize 任务将代发钉在该提交上的批准;若有检查变红或 head 移动,则会标记而不批准。

Qwen Code · qwen3.8-max

Reviewed at 5491215e13cf6f5605a2147bd05995a6e000dc42 · re-run with @qwen-code /triage

@danialzivehdadr

This comment has been minimized.

@github-actions

github-actions Bot commented Aug 18, 2026

Copy link
Copy Markdown
Contributor

Code Coverage Summary

Package Lines Statements Functions Branches
CLI 84.83% 84.83% 90.13% 83.95%
Core 88.13% 88.13% 89.66% 86.7%
CLI Package - Full Text Report
-------------------|---------|----------|---------|---------|-------------------
File               | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s 
-------------------|---------|----------|---------|---------|-------------------
All files          |   84.83 |    83.95 |   90.13 |   84.83 |                   
 src               |   85.77 |    81.78 |   88.03 |   85.77 |                   
  cli.ts           |   95.68 |    84.11 |     100 |   95.68 | ...60-561,565-566 
  gemini.tsx       |    73.4 |    78.04 |   80.76 |    73.4 | ...1338-1342,1469 
  ...ractiveCli.ts |   88.17 |    82.44 |   88.88 |   88.17 | ...3117,3123,3189 
  ...liCommands.ts |   88.93 |    83.21 |      80 |   88.93 | ...97-599,615,721 
  ...ActiveAuth.ts |     100 |     87.5 |     100 |     100 | 66-80             
 ...cp-integration |   72.18 |    74.86 |   91.61 |   72.18 |                   
  acpAgent.ts      |   71.59 |    74.69 |   91.16 |   71.59 | ...20,13025-13027 
  ...k-reporter.ts |     100 |       80 |     100 |     100 | 81,84,119,141     
  authMethods.ts   |      92 |       60 |     100 |      92 | 33-34             
  errorCodes.ts    |     100 |      100 |     100 |     100 |                   
  ...ion-skills.ts |     100 |    88.23 |     100 |     100 | 17,32             
  generation.ts    |    97.1 |    81.25 |     100 |    97.1 | 109,112           
  ...figuration.ts |     100 |      100 |     100 |     100 |                   
  ...DirContext.ts |     100 |      100 |     100 |     100 |                   
 ...ration/service |    97.1 |    95.83 |   93.33 |    97.1 |                   
  filesystem.ts    |    97.1 |    95.83 |   93.33 |    97.1 | ...22-123,246-247 
 ...ration/session |   91.24 |    86.49 |   95.92 |   91.24 |                   
  Session.ts       |   90.61 |    85.18 |   95.36 |   90.61 | ...63,12190-12194 
  ...entTracker.ts |   96.81 |    89.36 |      90 |   96.81 | 137-143,222       
  ...projection.ts |   98.85 |    91.59 |     100 |   98.85 | 234,250,262       
  ...stop-guard.ts |     100 |    98.07 |     100 |     100 | 37,127            
  ...eplay-page.ts |   94.18 |     86.2 |     100 |   94.18 | ...15,319,399,403 
  ...y-replayer.ts |   83.17 |    92.98 |   94.11 |   83.17 | ...24-142,260-262 
  index.ts         |       0 |        0 |       0 |       0 | 1-40              
  ...ssionUtils.ts |   89.76 |    87.32 |     100 |   89.76 | ...54-270,326-328 
  ...oal-update.ts |   98.61 |    97.29 |     100 |   98.61 | 64                
  ...lure-guard.ts |   98.32 |    97.72 |     100 |   98.32 | 294-295,340-341   
  tasksSnapshot.ts |    94.3 |     87.5 |     100 |    94.3 | 65-71             
  ...on-tracker.ts |     100 |      100 |     100 |     100 |                   
  types.ts         |     100 |      100 |     100 |     100 |                   
 ...ssion/emitters |   95.62 |    92.69 |   96.96 |   95.62 |                   
  ...ageEmitter.ts |   95.25 |    93.54 |     100 |   95.25 | ...08-115,128-129 
  PlanEmitter.ts   |     100 |       90 |     100 |     100 | 66                
  base-emitter.ts  |   78.26 |       75 |     100 |   78.26 | 23-24,26-28       
  index.ts         |       0 |        0 |       0 |       0 | 1-10              
  ...ll-emitter.ts |   98.57 |    94.84 |     100 |   98.57 | 75-76,394-395     
 ...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/agent-view    |   89.03 |    81.37 |   89.09 |   89.03 |                   
  ...t-cli-argv.ts |     100 |      100 |     100 |     100 |                   
  protocol.ts      |     100 |      100 |     100 |     100 |                   
  ...sor-client.ts |   80.38 |    72.54 |   76.66 |   80.38 | ...22-626,652-656 
  ...or-process.ts |   96.61 |    89.47 |   84.61 |   96.61 | 129-130,150-151   
  ...sor-runner.ts |    84.9 |     75.6 |      85 |    84.9 | ...44,468,471-481 
  ...sor-server.ts |   85.71 |    83.06 |   95.45 |   85.71 | ...67-468,471-488 
  ...isor-store.ts |   97.73 |    81.16 |     100 |   97.73 | ...92,594,607,643 
  ...nal-bridge.ts |   93.98 |     91.3 |   83.33 |   93.98 | 228-238           
 src/commands      |   90.34 |    77.48 |   65.62 |   90.34 |                   
  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        |   98.79 |      100 |      50 |   98.79 | 94                
  serve.ts         |   88.95 |    74.52 |     100 |   88.95 | ...74,877-880,892 
  sessions.ts      |     100 |      100 |      50 |     100 |                   
  update.ts        |   98.13 |    94.44 |   66.66 |   98.13 | 82-83             
 ...mmands/channel |   89.08 |    88.57 |   90.64 |   89.08 |                   
  channel-cwd.ts   |     100 |      100 |     100 |     100 |                   
  ...l-registry.ts |   94.88 |    95.49 |      90 |   94.88 | ...20-323,368-371 
  ...entry-path.ts |      75 |       50 |     100 |      75 | 8-9               
  config-utils.ts  |   95.88 |    96.35 |     100 |   95.88 | ...08-213,271-274 
  configure.ts     |    14.7 |      100 |       0 |    14.7 | 18-21,23-84       
  daemon-worker.ts |   93.91 |    85.61 |   94.33 |   93.91 | ...1264,1271-1272 
  loop-runtime.ts  |   91.66 |      100 |      50 |   91.66 | 15,22             
  ...classifier.ts |   98.53 |    96.66 |     100 |   98.53 | 115-116,161       
  ...tact-store.ts |   93.51 |    87.65 |     100 |   93.51 | ...71,288-289,337 
  pairing.ts       |      75 |      100 |      50 |      75 | 22-28,59-70       
  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       |   82.43 |    86.44 |     100 |   82.43 | ...87-191,251-253 
  set.ts           |   75.72 |    85.71 |      50 |   75.72 | 65-83,111-116     
  start.ts         |    85.8 |    82.17 |      88 |    85.8 | ...85,591-594,606 
  ...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.85 |    87.91 |   87.09 |   88.85 |                   
  consent.ts       |   72.53 |    90.32 |   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.63 |    57.14 |     100 |   75.63 | ...30-134,136-140 
 ...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.31 |    84.61 |   83.33 |   90.31 |                   
  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          |   93.15 |    84.84 |      80 |   93.15 | ...78-180,198-199 
  reconnect.ts     |   78.85 |    66.66 |   85.71 |   78.85 | 42-55,169-191     
  remove.ts        |     100 |       80 |     100 |     100 | 21-25             
 ...ommands/review |   90.35 |    89.81 |   90.92 |   90.35 |                   
  agent-prompt.ts  |   94.22 |    92.93 |   97.56 |   94.22 | ...1963,2992-3072 
  base-tree.ts     |   76.16 |    80.76 |   77.77 |   76.16 | ...50-371,373-386 
  capture-local.ts |      70 |     90.9 |      75 |      70 | 112-116,163-194   
  ...k-coverage.ts |   50.71 |       35 |   66.66 |   50.71 | ...40-245,279-289 
  cleanup.ts       |   92.79 |     88.7 |   84.61 |   92.79 | ...43-648,650-651 
  comment-body.ts  |   67.85 |    87.09 |   66.66 |   67.85 | ...30,157,159-164 
  ...ent-status.ts |   93.19 |    84.61 |   83.33 |   93.19 | 302,442,573-593   
  ...ose-review.ts |    96.7 |    93.07 |      98 |    96.7 | ...3980-4024,4250 
  cost-ledger.ts   |   94.58 |     94.4 |   81.25 |   94.58 | ...53-654,694-704 
  drive.ts         |   76.07 |    85.71 |   81.81 |   76.07 | ...90-492,497-499 
  extract-step.ts  |   91.36 |    90.62 |   88.88 |   91.36 | ...90-707,714-729 
  fetch-diff.ts    |   73.75 |      100 |   66.66 |   73.75 | 77-97             
  fetch-pr.ts      |   96.99 |    93.09 |   95.65 |   96.99 | ...1460,1510-1515 
  findings.ts      |   96.01 |    92.08 |     100 |   96.01 | ...1227,1236-1237 
  issue-context.ts |   88.15 |     93.1 |   85.71 |   88.15 | 249-276           
  load-rules.ts    |   26.41 |      100 |   16.66 |   26.41 | ...41-153,155-156 
  match-remote.ts  |   85.55 |     92.3 |   66.66 |   85.55 | 74-79,144-150     
  meta.ts          |   79.43 |    93.75 |   66.66 |   79.43 | 123-128,147-162   
  mock-provider.ts |   95.44 |    90.25 |   89.47 |   95.44 | 145,690-709       
  parse-args.ts    |    99.5 |    95.81 |     100 |    99.5 | 560,824,880       
  plan-diff.ts     |    68.1 |      100 |   66.66 |    68.1 | 162-205           
  pr-context.ts    |   94.59 |    84.78 |     100 |   94.59 | ...1677,1755-1771 
  presubmit.ts     |   90.52 |    88.82 |      90 |   90.52 | ...74-775,861-891 
  ...ish-assets.ts |    81.3 |    82.22 |   85.71 |    81.3 | ...75-479,506-552 
  repo-context.ts  |   94.62 |    90.75 |     100 |   94.62 | ...66-467,482-487 
  ...ve-anchors.ts |   78.34 |    89.28 |      75 |   78.34 | ...83-188,200-217 
  run.ts           |   83.92 |    88.37 |   94.11 |   83.92 | ...16,632-680,693 
  save-artifact.ts |   91.69 |    86.58 |   93.75 |   91.69 | ...70-373,466-469 
  script-lint.ts   |   81.27 |    79.38 |   88.88 |   81.27 | ...69-783,785-807 
  submit.ts        |   88.56 |    87.87 |      90 |   88.56 | ...08,850,878-914 
  test-delta.ts    |   86.34 |       92 |      60 |   86.34 | 171-202,465-473   
  test-efficacy.ts |   88.04 |    84.12 |   95.45 |   88.04 | ...2602,2610-2630 
  test-plan.ts     |   91.44 |    91.39 |   89.47 |   91.44 | ...38-839,903-920 
 ...w/__fixtures__ |     100 |      100 |     100 |     100 |                   
  ...r-default.mjs |     100 |      100 |     100 |     100 |                   
  ...der-empty.mjs |     100 |      100 |     100 |     100 |                   
  ...der-named.mjs |     100 |      100 |     100 |     100 |                   
 ...nds/review/lib |   97.83 |    95.33 |   98.77 |   97.83 |                   
  agent-briefs.ts  |      99 |      100 |      50 |      99 | 748-749           
  ...t-identity.ts |     100 |      100 |     100 |     100 |                   
  anchors.ts       |     100 |    96.42 |     100 |     100 | ...39,175,184,231 
  assets.ts        |     100 |      100 |     100 |     100 |                   
  audit-layers.ts  |   98.67 |    96.15 |     100 |   98.67 | 288-290           
  authorization.ts |   93.36 |    94.39 |     100 |   93.36 | ...14-320,490-491 
  budget.ts        |     100 |    97.91 |     100 |     100 | 876,916           
  build-budget.ts  |     100 |      100 |     100 |     100 |                   
  coverage.ts      |    96.6 |    92.85 |     100 |    96.6 | ...1115,1669-1670 
  deadline.ts      |   98.28 |    92.37 |     100 |   98.28 | ...94,712,744,812 
  diff-flags.ts    |     100 |        0 |     100 |     100 | 75                
  diff-plan.ts     |   98.73 |    93.04 |     100 |   98.73 | ...41,264,290-291 
  disk.ts          |     100 |      100 |     100 |     100 |                   
  effort.ts        |     100 |      100 |     100 |     100 |                   
  failing-files.ts |     100 |    93.33 |     100 |     100 | 41                
  gh.ts            |   89.09 |    95.38 |   77.77 |   89.09 | ...29,366-367,394 
  git.ts           |   97.84 |    96.15 |     100 |   97.84 | 207-208           
  heavy.ts         |     100 |      100 |     100 |     100 |                   
  inline-counts.ts |     100 |      100 |     100 |     100 |                   
  ...audit-gate.ts |     100 |    97.56 |     100 |     100 | 138               
  ledger.ts        |     100 |      100 |     100 |     100 |                   
  local-diff.ts    |   84.86 |    90.38 |     100 |   84.86 | ...63-473,475-483 
  ...ry-context.ts |   96.61 |    95.48 |     100 |   96.61 | ...47-450,496-499 
  merge-base.ts    |     100 |      100 |     100 |     100 |                   
  npm-toolchain.ts |   98.17 |    95.39 |     100 |   98.17 | ...,755,1126,1143 
  path-rules.ts    |     100 |      100 |     100 |     100 |                   
  paths.ts         |   91.48 |       75 |     100 |   91.48 | 31-32,35-36       
  prompt-record.ts |   98.03 |    94.23 |     100 |   98.03 | 293-294,300       
  receipt.ts       |     100 |      100 |     100 |     100 |                   
  remote-match.ts  |   97.84 |    94.23 |     100 |   97.84 | 85-86             
  report.ts        |   94.89 |    93.75 |     100 |   94.89 | 207-211           
  ...ry-context.ts |     100 |    98.66 |     100 |     100 | 187               
  retirement.ts    |     100 |    94.52 |     100 |     100 | ...75-576,777,931 
  review-footer.ts |   99.55 |     98.1 |     100 |   99.55 | 548-549           
  ...w-settings.ts |     100 |    94.73 |     100 |     100 | 79                
  roster.ts        |     100 |    95.52 |     100 |     100 | 136,154,199       
  round-model.ts   |     100 |      100 |     100 |     100 |                   
  run-ledger.ts    |   98.15 |     93.7 |     100 |   98.15 | ...23,521,627,650 
  same-file.ts     |     100 |    94.11 |     100 |     100 | 35                
  shell-quote.ts   |     100 |      100 |     100 |     100 |                   
  stale-bundle.ts  |   98.11 |    94.11 |     100 |   98.11 | 416,457,497-498   
  test-utils.ts    |     100 |      100 |     100 |     100 |                   
  toolchain.ts     |     100 |      100 |     100 |     100 |                   
  transcripts.ts   |   98.05 |    95.03 |     100 |   98.05 | ...67,415,684-685 
  ...pace-scope.ts |     100 |    96.96 |     100 |     100 | 186               
  workspaces.ts    |     100 |    96.77 |     100 |     100 | 222,452,499,512   
  worktree.ts      |     100 |      100 |     100 |     100 |                   
 ...w/lib/platform |   76.52 |    80.85 |   78.37 |   76.52 |                   
  aone-client.ts   |   14.28 |      100 |       0 |   14.28 | ...7,82-83,91-127 
  aone.ts          |   80.33 |    78.75 |   81.25 |   80.33 | ...17,481-486,538 
  github.ts        |   96.05 |    75.67 |     100 |   96.05 | 26-29,213-214     
  registry.ts      |     100 |    95.83 |     100 |     100 | 84                
  types.ts         |     100 |      100 |     100 |     100 |                   
 ...mands/sessions |   94.11 |    89.06 |   89.47 |   94.11 |                   
  common.ts        |     100 |      100 |     100 |     100 |                   
  list.ts          |   90.96 |    86.66 |   81.81 |   90.96 | 208-219,221-222   
  ps.ts            |     100 |    94.44 |     100 |     100 | 58                
 src/config        |   94.95 |    89.87 |   96.28 |   94.95 |                   
  ...l-fallback.ts |     100 |      100 |     100 |     100 |                   
  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 
  compile-cache.ts |     100 |      100 |     100 |     100 |                   
  config.ts        |   89.12 |    88.69 |   83.78 |   89.12 | ...2497,2499-2507 
  ...cy-monitor.ts |      90 |    77.27 |     100 |      90 | ...72-73,90-92,98 
  ...ust-policy.ts |   83.02 |    88.88 |     100 |   83.02 | ...02-209,232-240 
  ...heme-names.ts |     100 |      100 |     100 |     100 |                   
  environment.ts   |    96.5 |    93.51 |      95 |    96.5 | ...85-586,640-641 
  ...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.13 |     100 |     100 | 47,172-178,238    
  keyBindings.ts   |    97.4 |       50 |     100 |    97.4 | 240-243           
  ...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.96 |     100 |   98.97 | 85                
  mcpApprovals.ts  |   96.55 |    95.55 |     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 |   93.33 |    93.33 |     100 |   93.33 | ...42-147,216-217 
  session-id.ts    |     100 |      100 |     100 |     100 |                   
  ...ings-cache.ts |   96.52 |    93.93 |     100 |   96.52 | 90-91,201-202     
  settings.ts      |   91.27 |    92.64 |      90 |   91.27 | ...1030,1032-1033 
  ...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 |                   
  ...l-settings.ts |     100 |      100 |     100 |     100 |                   
  ...paths-lite.ts |   89.47 |       88 |     100 |   89.47 | 43-44,53-54,56-57 
  ...precedence.ts |   98.79 |     92.3 |     100 |   98.79 | 62                
  ...tedFolders.ts |   92.53 |    93.47 |     100 |   92.53 | ...36-337,373-384 
 ...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    |   75.08 |    67.64 |   71.42 |   75.08 |                   
  ...tputBridge.ts |   75.33 |    68.18 |   73.68 |   75.33 | ...09-410,418-421 
  ...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/hooks         |     100 |      100 |     100 |     100 |                   
  ...elete-hook.ts |     100 |      100 |     100 |     100 |                   
 src/i18n          |   86.22 |    81.92 |   89.65 |   86.22 |                   
  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 |   80.98 |    77.27 |   84.12 |   80.98 |                   
  session.ts       |   84.97 |    76.31 |   96.07 |   84.97 | ...1048,1057-1067 
  types.ts         |    42.5 |      100 |   33.33 |    42.5 | ...31-632,635-636 
 ...active/control |   75.54 |    89.83 |      80 |   75.54 |                   
  ...rolContext.ts |    6.06 |        0 |       0 |    6.06 | 57-99             
  ...Dispatcher.ts |   91.95 |    92.98 |   88.88 |   91.95 | ...54-372,392,395 
  ...rolService.ts |    6.89 |        0 |       0 |    6.89 | 46-188            
 ...ol/controllers |   45.95 |    69.03 |   55.26 |   45.95 |                   
  ...Controller.ts |    42.4 |      100 |   83.33 |    42.4 | 101-105,140-223   
  ...Controller.ts |       0 |        0 |       0 |       0 | 1-56              
  ...Controller.ts |   55.01 |    67.14 |   58.33 |   55.01 | ...15-624,639-644 
  ...Controller.ts |   49.23 |       60 |      50 |   49.23 | ...07-108,111-121 
  ...Controller.ts |   40.64 |    68.11 |   46.66 |   40.64 | ...72-684,693-722 
 .../control/types |       0 |        0 |       0 |       0 |                   
  serviceAPIs.ts   |       0 |        0 |       0 |       0 | 1                 
 ...Interactive/io |   98.16 |    94.22 |   95.29 |   98.16 |                   
  ...putAdapter.ts |   98.02 |     93.3 |   98.07 |   98.02 | ...1433,1449-1450 
  ...putAdapter.ts |   96.22 |    91.66 |   85.71 |   96.22 | 52-53             
  ...nputReader.ts |     100 |    94.73 |     100 |     100 | 67                
  ...putAdapter.ts |   98.51 |      100 |   90.47 |   98.51 | 90-91,131-132     
  ...projection.ts |     100 |      100 |     100 |     100 |                   
  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/runtime       |   99.61 |    95.04 |     100 |   99.61 |                   
  ...livery-ipc.ts |     100 |     90.9 |     100 |     100 | 94,106,134        
  ...l-delivery.ts |     100 |      100 |     100 |     100 |                   
  cpu-percent.ts   |     100 |      100 |     100 |     100 |                   
  ...erver-name.ts |     100 |      100 |     100 |     100 |                   
  ...-constants.ts |     100 |      100 |     100 |     100 |                   
  ...-summaries.ts |   86.66 |       50 |     100 |   86.66 | 11,19             
  ...ber-errors.ts |     100 |    95.32 |     100 |     100 | 53,93-94,172,192  
  ...ls-mapping.ts |     100 |      100 |     100 |     100 |                   
 src/serve         |   88.17 |    84.73 |   90.81 |   88.17 |                   
  ...tp-enabled.ts |     100 |      100 |     100 |     100 |                   
  ...ion-bridge.ts |     100 |      100 |     100 |     100 |                   
  auth.ts          |   93.99 |     91.5 |     100 |   93.99 | ...29-430,433-435 
  ...em-adapter.ts |     100 |      100 |     100 |     100 |                   
  capabilities.ts  |     100 |    98.07 |     100 |     100 | 701               
  ...cp-command.ts |     100 |      100 |     100 |     100 |                   
  ...horization.ts |   92.79 |    93.54 |    87.5 |   92.79 | 75-80,135-136     
  ...op-mcp-ipc.ts |   81.06 |    73.68 |   94.11 |   81.06 | ...37-242,267,289 
  ...nt-service.ts |    94.1 |    86.89 |     100 |    94.1 | ...75-477,484,486 
  ...-selection.ts |     100 |      100 |     100 |     100 |                   
  ...ings-store.ts |   89.64 |    94.11 |   96.29 |   89.64 | ...57-269,521-524 
  ...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 |   87.27 |     85.2 |     100 |   87.27 | ...10,816-820,838 
  ...er-manager.ts |   89.39 |    83.88 |   93.33 |   89.39 | ...98,711,722-724 
  ...horization.ts |     100 |      100 |     100 |     100 |                   
  ...tartup-ipc.ts |   97.72 |    96.66 |     100 |   97.72 | 88-89             
  ...supervisor.ts |   92.54 |    84.53 |   97.14 |   92.54 | ...1489,1543-1547 
  ...e-grouping.ts |     100 |    94.28 |     100 |     100 | 71,137            
  core-runtime.ts  |     100 |      100 |     100 |     100 |                   
  ...ub-session.ts |    90.9 |     78.6 |   94.73 |    90.9 | ...1001,1022-1027 
  ...tree-guard.ts |   92.89 |    87.55 |     100 |   92.89 | ...2766,2836-2840 
  daemon-logger.ts |   82.82 |    78.68 |   92.04 |   82.82 | ...1775,1802-1808 
  ...y-pressure.ts |     100 |    96.96 |     100 |     100 | 135               
  ...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.64 |    91.77 |     100 |   98.64 | ...1503,1505-1506 
  debug-mode.ts    |     100 |      100 |     100 |     100 |                   
  env-snapshot.ts  |   93.37 |    85.18 |     100 |   93.37 | 114-117,195-202   
  ...-scheduler.ts |   87.34 |    83.87 |     100 |   87.34 | 33-36,48-50,79-81 
  ...d-provider.ts |   92.06 |    87.09 |     100 |   92.06 | ...72,287-293,316 
  ...h-settings.ts |   94.94 |    90.41 |     100 |   94.94 | ...30,708,724,734 
  fast-path.ts     |   90.99 |    81.38 |   95.45 |   90.99 | ...33-542,608-609 
  ...ration-sse.ts |   42.55 |    33.33 |     100 |   42.55 | 23-24,30,33-56    
  health-query.ts  |     100 |      100 |     100 |     100 |                   
  index.ts         |       0 |        0 |       0 |       0 | 1-149             
  ...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 | ...30-131,142-143 
  ...iders-edit.ts |     100 |    82.14 |     100 |     100 | 58-60,65,81       
  ...ory-picker.ts |     100 |    86.95 |     100 |     100 | 36,66,92          
  ...sion-audit.ts |     100 |      100 |   93.33 |     100 |                   
  rate-limit.ts    |   92.68 |    88.29 |     100 |   92.68 | ...89-291,303-305 
  ...qwen-serve.ts |   83.99 |    80.91 |    75.9 |   83.99 | ...7923,7941-7945 
  ...tup-errors.ts |     100 |      100 |     100 |     100 |                   
  ...-keepalive.ts |   94.27 |    88.18 |     100 |   94.27 | ...34,538-539,578 
  ...-lifecycle.ts |     100 |      100 |     100 |     100 |                   
  ...-lifecycle.ts |   89.16 |    90.29 |   86.95 |   89.16 | ...24-325,330-334 
  server.ts        |   91.14 |     90.6 |   72.03 |   91.14 | ...2960,2990-2991 
  ...-admission.ts |   98.24 |    94.73 |     100 |   98.24 | 79-80,303-304     
  ...on-helpers.ts |     100 |      100 |     100 |     100 |                   
  ...-redaction.ts |     100 |      100 |     100 |     100 |                   
  ...t-event-id.ts |     100 |    95.23 |     100 |     100 | 12                
  ...-admission.ts |   98.71 |    89.65 |     100 |   98.71 | 68                
  types.ts         |     100 |      100 |     100 |     100 |                   
  ...ion-limits.ts |     100 |      100 |     100 |     100 |                   
  ...t-sessions.ts |   93.72 |    77.93 |     100 |   93.72 | ...51,854,867-869 
  ...l-resolver.ts |   90.32 |    66.66 |     100 |   90.32 | 16,45-46          
  ...ell-static.ts |   92.18 |    88.37 |     100 |   92.18 | ...21-224,267-270 
  ...ace-agents.ts |   66.13 |    70.57 |   92.68 |   66.13 | ...2246,2256-2266 
  ...generation.ts |    95.4 |    82.35 |   66.66 |    95.4 | 55-56,78,92       
  ...-git-state.ts |     100 |    91.93 |    90.9 |     100 | 161,172,202,265   
  ...ace-inputs.ts |     100 |      100 |     100 |     100 |                   
  ...ace-memory.ts |      83 |    74.54 |     100 |      83 | ...30-537,597-604 
  ...ers-status.ts |   98.58 |       79 |     100 |   98.58 | 106,134,174,177   
  ...tion-store.ts |   89.67 |    88.27 |   92.59 |   89.67 | ...91-400,411-414 
  ...e-registry.ts |   94.98 |     90.5 |     100 |   94.98 | ...67-568,575-576 
  ...e-remember.ts |   98.23 |    92.56 |     100 |   98.23 | ...36,340-345,386 
  ...te-runtime.ts |    89.4 |    90.47 |     100 |    89.4 | ...89-190,258-279 
  ...me-storage.ts |     100 |      100 |     100 |     100 |                   
  ...visibility.ts |     100 |      100 |     100 |     100 |                   
  ...management.ts |   72.63 |    72.72 |      96 |   72.63 | ...88-889,896-900 
  ...lls-status.ts |     100 |    95.45 |     100 |     100 | 152               
  ...reconciler.ts |   91.63 |    84.09 |     100 |   91.63 | ...71-273,306-307 
 ...serve/acp-http |   79.65 |    79.91 |   94.09 |   79.65 |                   
  ...r-registry.ts |   96.92 |    94.87 |     100 |   96.92 | 184-187           
  client-mcp-ws.ts |   54.85 |    58.62 |   72.72 |   54.85 | ...99-300,304-305 
  ...n-registry.ts |   93.03 |    84.13 |   98.52 |   93.03 | ...1624,1671-1682 
  dispatch.ts      |   74.18 |    76.45 |   91.52 |   74.18 | ...5383,5440-5446 
  index.ts         |   82.68 |    79.74 |   91.22 |   82.68 | ...2424,2510-2511 
  json-rpc.ts      |     100 |    96.96 |     100 |     100 | 92                
  ...ach-budget.ts |     100 |      100 |     100 |     100 |                   
  safe-ws-send.ts  |   52.94 |    71.42 |     100 |   52.94 | 33-42,47-55       
  sse-stream.ts    |   98.26 |    88.75 |     100 |   98.26 | 87-88,117         
  ...ort-stream.ts |       0 |        0 |       0 |       0 | 1                 
  ws-stream.ts     |   94.06 |    89.09 |     100 |   94.06 | 50,55,134,138-141 
 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 |   87.73 |    76.21 |    97.5 |   87.73 |                   
  ...r-emulator.ts |   93.27 |    77.77 |     100 |   93.27 | ...53-256,282-283 
  ...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 |    6.12 |    57.89 |   46.15 |    6.12 |                   
  ...helpers.d.mts |       0 |        0 |       0 |       0 | 1                 
  ...e-helpers.mjs |   97.64 |    70.96 |     100 |   97.64 | 22-23             
  ...mcp-smoke.mjs |       0 |        0 |       0 |       0 | 1-124             
  ...cceptance.mjs |       0 |        0 |       0 |       0 | 1-473             
  ...re-server.mjs |       0 |        0 |       0 |       0 | 1-59              
  ...ols-smoke.mjs |       0 |        0 |       0 |       0 | 1-268             
  real-tab.mjs     |       0 |        0 |       0 |       0 | 1-218             
  ...al-chrome.mjs |       0 |        0 |       0 |       0 | 1-223             
 .../conversations |   90.53 |    87.24 |   95.23 |   90.53 |                   
  ...e-activity.ts |     100 |      100 |     100 |     100 |                   
  ...ime-errors.ts |     100 |      100 |     100 |     100 |                   
  ...me-manager.ts |     100 |      100 |     100 |     100 |                   
  ...-ownership.ts |   87.33 |    83.41 |   88.46 |   87.33 | ...57-558,601-602 
  ...-workspace.ts |   88.26 |    82.53 |     100 |   88.26 | ...33-234,246-247 
  ...ion-source.ts |     100 |      100 |     100 |     100 |                   
 src/serve/fs      |   87.77 |    82.32 |     100 |   87.77 |                   
  audit.ts         |     100 |    96.29 |     100 |     100 | 211               
  errors.ts        |     100 |      100 |     100 |     100 |                   
  index.ts         |     100 |      100 |     100 |     100 |                   
  ...x-registry.ts |     100 |      100 |     100 |     100 |                   
  paths.ts         |   77.64 |    74.01 |     100 |   77.64 | ...65,594-598,611 
  policy.ts        |   90.52 |    89.18 |     100 |   90.52 | 172-180           
  text-cursor.ts   |   88.23 |       90 |     100 |   88.23 | 74-77,92-95       
  ...ile-system.ts |   88.02 |    81.83 |     100 |   88.02 | ...3027,3037-3038 
 src/serve/live    |   78.07 |    70.18 |   90.13 |   78.07 |                   
  ...en-context.ts |   95.74 |    81.25 |     100 |   95.74 | ...0,66-67,99-100 
  discovery.ts     |   85.89 |    82.01 |    90.9 |   85.89 | ...73-579,592-593 
  ...structions.ts |     100 |      100 |     100 |     100 |                   
  ...oordinator.ts |   82.67 |    76.63 |   97.01 |   82.67 | ...1319,1351-1353 
  ...-installer.ts |    64.3 |    82.35 |   80.76 |    64.3 | ...45-446,460-472 
  ...oordinator.ts |   76.69 |    67.47 |   85.71 |   76.69 | ...1884,1975-1976 
  ...controller.ts |   67.82 |    79.31 |   72.72 |   67.82 | ...66-278,287-295 
  ...ak-to-user.ts |   96.66 |      100 |   83.33 |   96.66 | 37-38             
  ...sk-service.ts |   86.32 |    61.35 |   93.33 |   86.32 | ...1170,1194-1201 
  ...task-tools.ts |      99 |      100 |   85.71 |      99 | 205-206           
  ...redentials.ts |   96.26 |    93.47 |     100 |   96.26 | 91-94             
  ...me-session.ts |   65.63 |    57.24 |   88.88 |   65.63 | ...2270,2275-2282 
  ...up-context.ts |   94.85 |    77.39 |     100 |   94.85 | ...18,327-330,350 
  types.ts         |     100 |      100 |     100 |     100 |                   
 .../local-control |   82.89 |    86.13 |      90 |   82.89 |                   
  credentials.ts   |   96.42 |    95.45 |     100 |   96.42 | 109-110           
  index.ts         |     100 |      100 |     100 |     100 |                   
  ...interfaces.ts |   43.58 |       75 |   42.85 |   43.58 | ...09-117,130-142 
  ...r-identity.ts |     100 |    85.71 |     100 |     100 | 61                
  service.ts       |    93.4 |       90 |     100 |    93.4 | ...20-222,313-315 
 src/serve/routes  |   85.64 |    80.39 |   94.78 |   85.64 |                   
  a2ui-action.ts   |   96.84 |     88.5 |    87.5 |   96.84 | ...70-272,309-311 
  capabilities.ts  |   98.73 |    96.15 |     100 |   98.73 | 82                
  ...nel-notify.ts |   79.16 |    85.18 |     100 |   79.16 | ...03-104,120-126 
  ...l-webhooks.ts |   93.56 |    84.09 |     100 |   93.56 | ...42,292,332,334 
  daemon-status.ts |   85.71 |    83.33 |     100 |   85.71 | 101-108           
  goals.ts         |   98.92 |     90.9 |     100 |   98.92 | 143               
  health.ts        |   99.09 |    91.17 |     100 |   99.09 | 147               
  live-setup.ts    |   33.33 |     37.5 |      50 |   33.33 | ...18-123,130-135 
  live.ts          |   84.61 |    76.47 |     100 |   84.61 | ...04,106-111,131 
  permission.ts    |     100 |     92.3 |     100 |     100 | 50,98             
  ...uled-tasks.ts |   87.53 |    84.26 |   93.33 |   87.53 | ...1389,1432-1433 
  ...on-runtime.ts |   91.42 |       90 |     100 |   91.42 | 56-64             
  session.ts       |   85.89 |    81.44 |   91.34 |   85.89 | ...6353,6355-6356 
  sse-events.ts    |   86.85 |    85.64 |   94.11 |   86.85 | ...18-929,932,939 
  usage-stats.ts   |     100 |    95.45 |     100 |     100 | 118               
  ...space-auth.ts |   85.55 |    75.64 |     100 |   85.55 | ...21-326,331,345 
  ...el-control.ts |   86.26 |    78.94 |     100 |   86.26 | ...17-318,339-347 
  ...management.ts |   90.35 |    78.94 |     100 |   90.35 | ...52-553,576-577 
  ...d-contacts.ts |   83.62 |    94.59 |     100 |   83.62 | 123,125-142       
  ...controller.ts |   83.11 |    79.31 |      90 |   83.11 | ...1033,1039,1042 
  ...extensions.ts |   88.46 |    75.19 |    93.1 |   88.46 | ...2037,2082-2083 
  ...-file-read.ts |      91 |    80.91 |     100 |      91 | ...20-621,624-625 
  ...file-write.ts |   89.72 |    79.35 |     100 |   89.72 | ...05,719-726,807 
  ...t-branches.ts |   75.43 |    66.66 |     100 |   75.43 | ...13-618,627-634 
  ...e-git-diff.ts |   97.32 |    90.56 |     100 |   97.32 | 161-162,189-191   
  ...ce-git-log.ts |     100 |    93.18 |     100 |     100 | 52,77,188         
  workspace-git.ts |   77.08 |    89.65 |     100 |   77.08 | 97-118            
  ...github-prs.ts |   88.26 |    63.46 |     100 |   88.26 | ...38-239,264-265 
  ...-lifecycle.ts |   95.23 |    75.75 |     100 |   95.23 | ...50-151,186-187 
  ...al-control.ts |   74.17 |    69.23 |     100 |   74.17 | ...18,220-226,231 
  ...management.ts |   87.47 |       85 |     100 |   87.47 | ...1733,1743-1748 
  ...cp-control.ts |    73.2 |    67.54 |   85.71 |    73.2 | ...27-633,644-645 
  ...ace-models.ts |   95.53 |    89.74 |     100 |   95.53 | ...52-157,296-297 
  ...ermissions.ts |    77.9 |    72.41 |     100 |    77.9 | ...69-277,298-316 
  ...e-settings.ts |   75.04 |    72.99 |     100 |   75.04 | ...79-690,696-697 
  ...tup-github.ts |   77.97 |    70.58 |   84.21 |   77.97 | ...46-352,397-398 
  ...ace-skills.ts |    76.9 |    87.15 |     100 |    76.9 | ...29-354,360-394 
  ...ace-status.ts |   82.94 |     74.5 |     100 |   82.94 | ...84-486,490-491 
  ...pace-tools.ts |   75.94 |    69.69 |   66.66 |   75.94 | ...59-164,193-194 
  ...pace-trust.ts |   76.92 |     67.1 |      80 |   76.92 | ...38-343,351-352 
  ...pace-voice.ts |   91.33 |    81.02 |     100 |   91.33 | ...70-673,676-678 
 src/serve/server  |    91.9 |    89.41 |   97.02 |    91.9 |                   
  access-log.ts    |    98.7 |    97.18 |     100 |    98.7 | 118,189           
  ...er-helpers.ts |   63.82 |    77.96 |   81.81 |   63.82 | ...16,330,332-347 
  ...w-registry.ts |    98.8 |    81.81 |     100 |    98.8 | 107               
  ...r-handlers.ts |   97.29 |       75 |     100 |   97.29 | 17                
  ...r-response.ts |   86.92 |     73.6 |     100 |   86.92 | ...68,785,848-857 
  fs-factory.ts    |     100 |    95.52 |     100 |     100 | 77,144,200        
  ...branch-ops.ts |     100 |      100 |     100 |     100 |                   
  ...list-cache.ts |   99.01 |    95.52 |     100 |   99.01 | 184-185           
  ...t-deadline.ts |     100 |      100 |     100 |     100 |                   
  ...iter-setup.ts |      65 |       80 |   33.33 |      65 | 30-35,38-43,47-48 
  ...st-helpers.ts |   95.13 |    95.14 |     100 |   95.13 | ...66-168,423-428 
  self-origin.ts   |   76.19 |       80 |     100 |   76.19 | 45-54             
  ...e-features.ts |      95 |     87.5 |     100 |      95 | 182-188           
  ...on-archive.ts |   89.74 |     86.4 |   97.36 |   89.74 | ...82,909,937-938 
  ...ion-export.ts |     100 |    94.73 |     100 |     100 | 64                
  session-list.ts  |   95.86 |    93.39 |     100 |   95.86 | ...-848,1026-1030 
  telemetry.ts     |   99.09 |    97.46 |     100 |   99.09 | ...73,688,833-835 
 src/serve/voice   |    92.7 |    91.48 |   97.67 |    92.7 |                   
  ...ice-config.ts |   84.81 |       30 |     100 |   84.81 | 91-100,104-105    
  voice-ws.ts      |   91.58 |    93.44 |      96 |   91.58 | ...68,483,521-523 
  ...oordinator.ts |     100 |    98.21 |     100 |     100 | 176               
 ...kspace-service |    90.9 |    87.96 |    91.3 |    90.9 |                   
  index.ts         |   90.41 |    87.29 |      90 |   90.41 | ...1505-1509,1512 
  types.ts         |     100 |      100 |     100 |     100 |                   
 src/services      |   92.69 |    89.52 |   98.06 |   92.69 |                   
  ...mandLoader.ts |     100 |    88.88 |     100 |     100 | 106-120           
  ...killLoader.ts |   97.19 |    85.29 |     100 |   97.19 | 142,153-154       
  ...andService.ts |   98.73 |      100 |     100 |   98.73 | 107               
  ...mandLoader.ts |   87.09 |    83.07 |     100 |   87.09 | ...35-340,345-350 
  ...omptLoader.ts |   79.55 |    88.29 |   83.33 |   79.55 | ...48,178,245-246 
  ...mandLoader.ts |   97.77 |    92.15 |     100 |   97.77 | 176,183-184       
  ...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 |    92.85 |     100 |   96.66 | 34-35             
  ...tree-lease.ts |   92.14 |    92.42 |     100 |   92.14 | ...91-296,329-330 
  ...low-loader.ts |     100 |    96.15 |     100 |     100 | 88                
  setup-github.ts  |    90.8 |    80.95 |     100 |    90.8 | ...49-450,457-458 
  ...-args-file.ts |   93.93 |    91.66 |    87.5 |   93.93 | 208-210,224-230   
  types.ts         |     100 |      100 |     100 |     100 |                   
  ...e-keyterms.ts |   98.64 |    95.77 |     100 |   98.64 | 116,142-143       
  voice-model.ts   |     100 |      100 |     100 |     100 |                   
  voice-service.ts |    90.4 |    87.87 |     100 |    90.4 | ...81,288,353-358 
  ...e-settings.ts |     100 |    95.23 |     100 |     100 | 19                
  ...ranscriber.ts |   91.77 |    87.11 |   97.22 |   91.77 | ...99-901,904-906 
 ...rvices/insight |     100 |      100 |     100 |     100 |                   
  dates.ts         |     100 |      100 |     100 |     100 |                   
 ...ght/generators |   88.91 |     86.8 |   96.15 |   88.91 |                   
  DataProcessor.ts |   88.28 |    86.77 |   94.73 |   88.28 | ...1362,1366-1373 
  ...tGenerator.ts |   98.24 |    85.71 |     100 |   98.24 | 47                
  ...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 | 96-99             
  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.09 |    79.16 |   77.77 |   94.09 |                   
  ci-env.ts        |      88 |     62.5 |     100 |      88 | 22-23,28          
  ...omMatchers.ts |   69.69 |       50 |      50 |   69.69 | 32-35,37-39,45-47 
  ...mised-lock.ts |     100 |      100 |   66.66 |     100 |                   
  ...andContext.ts |     100 |      100 |     100 |     100 |                   
  render.tsx       |     100 |      100 |     100 |     100 |                   
 src/ui            |   73.33 |    75.65 |   68.47 |   73.33 |                   
  App.tsx          |   33.33 |       75 |   33.33 |   33.33 | 32-86             
  AppContainer.tsx |   74.45 |    72.14 |   69.44 |   74.45 | ...4194,4310-4316 
  ...tionNudge.tsx |    9.58 |      100 |       0 |    9.58 | 24-94             
  ...ackDialog.tsx |    30.3 |      100 |       0 |    30.3 | 26-76             
  ...tionNudge.tsx |    7.69 |      100 |       0 |    7.69 | 25-103            
  colors.ts        |   63.63 |      100 |   41.17 |   63.63 | ...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 |   71.42 |     74.5 |    62.5 |   71.42 | ...10,337,404-409 
  ...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.76 |    66.66 |   51.06 |   58.76 |                   
  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.21 |    70.73 |   57.69 |   60.21 | ...90,794,803,806 
  useAuth.ts       |   94.83 |       75 |     100 |   94.83 | ...33-234,253-259 
  ...rSetupFlow.ts |   43.18 |    33.33 |      50 |   43.18 | ...78-399,416-459 
 src/ui/commands   |   83.72 |    83.71 |   90.02 |   83.72 |                   
  aboutCommand.ts  |     100 |      100 |     100 |     100 |                   
  ...or-command.ts |     100 |    95.65 |     100 |     100 | 104,182           
  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  |   63.89 |    65.71 |   65.21 |   63.89 | ...01-606,691-699 
  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.3 |    82.75 |     100 |    92.3 | ...,94-99,178,187 
  clearCommand.ts  |    80.9 |    70.83 |     100 |    80.9 | ...28-129,137-146 
  ...essCommand.ts |   68.06 |    54.05 |      75 |   68.06 | ...96-197,211-214 
  ...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 |   71.83 |    71.05 |   84.61 |   71.83 | ...83-616,627-628 
  copyCommand.ts   |    98.7 |    96.29 |     100 |    98.7 | 66-67,172,272,323 
  ...or-command.ts |   85.95 |    80.55 |   88.88 |   85.95 | ...68-274,298-309 
  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 |   70.16 |    84.61 |      95 |   70.16 | ...29-679,682-816 
  dreamCommand.ts  |   85.45 |    88.88 |     100 |   85.45 | 58-65             
  editorCommand.ts |     100 |      100 |     100 |     100 |                   
  ...rt-command.ts |   80.48 |       75 |     100 |   80.48 | 49-54,69-72,93-98 
  effort-utils.ts  |     100 |      100 |     100 |     100 |                   
  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   |     100 |    96.49 |     100 |     100 | 139,192           
  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 |   94.44 |    90.14 |     100 |   94.44 | ...13-214,241-251 
  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  |   85.02 |    82.53 |     100 |   85.02 | ...1089,1123-1128 
  ...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.6 |       90 |     100 |    89.6 | ...72-176,212-219 
  ...oreCommand.ts |   90.96 |    86.04 |     100 |   90.96 | ...41-146,177-178 
  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.65 |    76.73 |     100 |   90.65 | ...30-733,825-832 
  ...ineCommand.ts |     100 |      100 |     100 |     100 |                   
  ...aryCommand.ts |   73.04 |     82.3 |      90 |   73.04 | ...20-547,561-565 
  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 |   92.92 |       85 |   66.66 |   92.92 | ...72-177,276-281 
 src/ui/components |   72.86 |    79.93 |   77.65 |   72.86 |                   
  AboutBox.tsx     |     100 |      100 |     100 |     100 |                   
  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 |   88.65 |    90.41 |     100 |   88.65 | ...84-286,300-302 
  Composer.tsx     |   94.49 |    66.66 |     100 |   94.49 | ...-76,88,143,157 
  ...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 | 19                
  ...ification.tsx |      84 |       60 |     100 |      84 | 23-24,40-42       
  ...gProfiler.tsx |       0 |        0 |       0 |       0 | 1-36              
  ...ogManager.tsx |   11.28 |      100 |       0 |   11.28 | 71-598            
  DiffDialog.tsx   |    53.5 |     37.5 |   69.23 |    53.5 | ...32-737,747-760 
  ...ngsDialog.tsx |    8.44 |      100 |       0 |    8.44 | 37-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       |   81.27 |    69.23 |      50 |   81.27 | ...06,245,267-272 
  ...ngSpinner.tsx |   68.42 |    85.71 |      50 |   68.42 | 35-52,73,80-81    
  GoalPill.tsx     |   93.51 |    81.81 |     100 |   93.51 | 37-38,106-109,123 
  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 |   79.69 |    67.61 |     100 |   79.69 | ...17,520,523-529 
  ...ngeDialog.tsx |     100 |      100 |     100 |     100 |                   
  InputPrompt.tsx  |   84.26 |    82.94 |      80 |   84.26 | ...2215,2236,2332 
  ...Shortcuts.tsx |     100 |       88 |     100 |     100 | 98,119            
  ...Indicator.tsx |   98.18 |    97.82 |     100 |   98.18 | 161-162           
  ...firmation.tsx |   91.42 |      100 |      50 |   91.42 | 26-31             
  MainContent.tsx  |   95.97 |    96.15 |      50 |   95.97 | ...49,552-556,559 
  MemoryDialog.tsx |   86.59 |    80.15 |     100 |   86.59 | ...34-435,485,553 
  ...geDisplay.tsx |       0 |        0 |       0 |       0 | 1-41              
  ModelDialog.tsx  |   85.22 |    74.08 |     100 |   85.22 | ...1041,1097,1099 
  ...tsDisplay.tsx |     100 |    97.22 |     100 |     100 | 270               
  ...fications.tsx |   16.66 |      100 |       0 |   16.66 | 14-56             
  ...onsDialog.tsx |    2.13 |      100 |       0 |    2.13 | 62-133,148-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 |    8.57 |      100 |       0 |    8.57 | 24-55,58-134      
  ...geDisplay.tsx |     100 |      100 |     100 |     100 |                   
  ...ngDisplay.tsx |   21.42 |      100 |       0 |   21.42 | 13-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 |   92.06 |    86.36 |   83.33 |   92.06 | ...,70-72,120-123 
  ...tedDialog.tsx |     100 |      100 |     100 |     100 |                   
  ...ngsDialog.tsx |   71.49 |    73.89 |   69.23 |   71.49 | ...1244,1250-1251 
  ...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 |      28 |      100 |       0 |      28 | 18-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 |      80 |    66.66 |     100 |      80 | ...70-277,283-300 
  ...ineDialog.tsx |    93.9 |    86.88 |     100 |    93.9 | ...20,282,302-304 
  ...yTodoList.tsx |   96.36 |    88.23 |     100 |   96.36 | 138-141           
  ...nsDisplay.tsx |   95.62 |    87.09 |     100 |   95.62 | ...24-125,273-275 
  ...inalImage.tsx |     100 |    93.93 |     100 |     100 | 75,129            
  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             
  TrustDialog.tsx  |     100 |    83.33 |     100 |     100 | 72-87             
  ...ification.tsx |   36.36 |      100 |       0 |   36.36 | 15-22             
  ...Indicator.tsx |    92.5 |     87.5 |     100 |    92.5 | 50-53             
  ...ackDialog.tsx |    7.84 |      100 |       0 |    7.84 | 24-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 |   58.69 |    70.24 |    62.5 |   58.69 |                   
  ...atContent.tsx |    9.09 |      100 |       0 |    9.09 | 54-275,281-283    
  ...tChatView.tsx |     100 |    81.81 |     100 |     100 | 82                
  ...tComposer.tsx |   69.48 |    33.33 |   66.66 |   69.48 | ...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 |   45.51 |    70.53 |   60.86 |   45.51 |                   
  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 |    9.77 |      100 |       0 |    9.77 | 27-166            
  ...tusDialog.tsx |    5.63 |      100 |       0 |    5.63 | 33-75,80-288      
  ...topDialog.tsx |    6.17 |      100 |       0 |    6.17 | 33-213            
 ...ackground-view |   85.34 |    84.91 |   92.98 |   85.34 |                   
  ...sksDialog.tsx |   81.87 |    82.77 |   85.71 |   81.87 | ...1853,1965-1971 
  ...TasksPill.tsx |   78.84 |    94.28 |     100 |   78.84 | 64,109-129        
  ...gentPanel.tsx |   97.08 |    86.31 |     100 |   97.08 | 132,442-446,520   
  agent-forest.ts  |    99.2 |    93.93 |     100 |    99.2 | 258               
  ...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.92 |    68.21 |   70.83 |   71.92 |                   
  DiscoverTab.tsx  |   68.22 |    67.66 |   55.55 |   68.22 | ...93,656-660,664 
  InstalledTab.tsx |   75.49 |    67.44 |   83.33 |   75.49 | ...77,782-783,820 
  SourcesTab.tsx   |   71.67 |    70.47 |   77.77 |   71.67 | ...28,547,621-633 
 ...tensions/views |    50.7 |    52.38 |   20.83 |    50.7 |                   
  ...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.24 |      100 |       0 |    9.24 | 40-67,70-163      
 ...mponents/hooks |   87.11 |    81.37 |   91.89 |   87.11 |                   
  ...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.91 |    63.44 |   70.58 |   40.91 |                   
  ...ealthPill.tsx |     100 |      100 |     100 |     100 |                   
  ...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.94 |    73.51 |   57.14 |   53.94 |                   
  ...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.53 |    81.25 |     100 |   88.53 | ...64,170,175-180 
  ...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 |   90.35 |    86.92 |   85.71 |   90.35 |                   
  ...orMessage.tsx |     100 |      100 |     100 |     100 |                   
  ...ionDialog.tsx |   89.23 |     84.9 |   81.81 |   89.23 | ...75,593,611-613 
  BtwMessage.tsx   |     100 |      100 |     100 |     100 |                   
  ...upDisplay.tsx |     100 |    94.73 |     100 |     100 | ...43,289,402,432 
  ...onMessage.tsx |   92.06 |    82.35 |     100 |   92.06 | 58-60,62,64       
  ...nMessages.tsx |   94.11 |    95.91 |   76.92 |   94.11 | ...47-349,352-355 
  DiffRenderer.tsx |   93.17 |    86.02 |     100 |   93.17 | ...07,235-236,302 
  ...tsDisplay.tsx |   97.08 |    77.77 |     100 |   97.08 | 95,97,106         
  ...usMessage.tsx |   81.73 |     65.9 |      75 |   81.73 | ...10-214,222,245 
  ...tsDisplay.tsx |   95.52 |    88.31 |     100 |   95.52 | ...40,142,175-180 
  ...ssMessage.tsx |    12.5 |      100 |       0 |    12.5 | 18-59             
  ...edMessage.tsx |   21.05 |      100 |       0 |   21.05 | 23-39             
  ...sMessages.tsx |   59.04 |       50 |    37.5 |   59.04 | ...21-126,147-159 
  ...ryMessage.tsx |   13.63 |      100 |       0 |   13.63 | 23-64             
  ...onMessage.tsx |   91.87 |    82.63 |     100 |   91.87 | ...49-651,658-660 
  ...upMessage.tsx |   98.38 |    95.38 |     100 |   98.38 | 188-191,422       
  ToolMessage.tsx  |   93.06 |    86.32 |   93.75 |   93.06 | ...1037,1082-1084 
 ...ponents/shared |   86.29 |    82.41 |   94.17 |   86.29 |                   
  ...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  |   84.71 |    87.05 |      90 |   84.71 | ...67-568,685-686 
  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 |     100 |      100 |     100 |     100 |                   
  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 |   91.49 |    86.66 |   83.33 |   91.49 | ...18-846,859,959 
  text-buffer.ts   |   85.98 |    81.81 |   97.91 |   85.98 | ...2664,2762-2763 
  ...er-actions.ts |   73.93 |    67.22 |     100 |   73.93 | ...32-733,934-936 
 ...ponents/skills |    3.96 |      100 |       0 |    3.96 |                   
  ...gerDialog.tsx |    3.96 |      100 |       0 |    3.96 | 79-137,140-681    
 ...ents/subagents |   30.87 |        0 |       0 |   30.87 |                   
  constants.ts     |     100 |      100 |     100 |     100 |                   
  index.ts         |       0 |        0 |       0 |       0 | 1-11              
  reducers.tsx     |    12.1 |      100 |       0 |    12.1 | 33-190            
  types.ts         |     100 |      100 |     100 |     100 |                   
  utils.ts         |   10.95 |      100 |       0 |   10.95 | ...1,56-57,60-102 
 ...bagents/create |    9.13 |      100 |       0 |    9.13 |                   
  ...ionWizard.tsx |    7.28 |      100 |       0 |    7.28 | 34-299            
  ...rSelector.tsx |   14.75 |      100 |       0 |   14.75 | 26-85             
  ...onSummary.tsx |    4.26 |      100 |       0 |    4.26 | 27-331            
  ...tionInput.tsx |    8.63 |      100 |       0 |    8.63 | 23-177            
  ...dSelector.tsx |   33.33 |      100 |       0 |   33.33 | 20-21,26-27,36-63 
  ...nSelector.tsx |    37.5 |      100 |       0 |    37.5 | 20-21,26-27,36-58 
  ...EntryStep.tsx |   12.76 |      100 |       0 |   12.76 | 34-78             
  ToolSelector.tsx |    4.16 |      100 |       0 |    4.16 | 31-253            
 ...bagents/manage |    21.6 |    59.52 |   27.27 |    21.6 |                   
  ...ctionStep.tsx |   10.25 |      100 |       0 |   10.25 | 21-103            
  ...eleteStep.tsx |   20.93 |      100 |       0 |   20.93 | 23-62             
  ...tEditStep.tsx |   25.53 |      100 |       0 |   25.53 | ...2,37-38,51-124 
  ...ctionStep.tsx |   35.61 |    59.52 |     100 |   35.61 | ...21-433,438-440 
  ...iewerStep.tsx |   13.72 |      100 |       0 |   13.72 | 18-73             
  ...gerDialog.tsx |    6.74 |      100 |       0 |    6.74 | 35-341            
 ...mponents/views |    70.1 |    72.89 |   61.11 |    70.1 |                   
  ContextUsage.tsx |   71.49 |    64.86 |      80 |   71.49 | ...30-436,473-567 
  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   |   86.01 |    81.62 |   86.48 |   86.01 |                   
  ...ewContext.tsx |   87.56 |       80 |      75 |   87.56 | ...37-240,246-256 
  AppContext.tsx   |      80 |       50 |     100 |      80 | 19-20             
  ...ewContext.tsx |   93.83 |    68.51 |   42.85 |   93.83 | ...44,281-285,317 
  ...igContext.tsx |   81.81 |       50 |     100 |   81.81 | 15-16             
  ...ssContext.tsx |   85.65 |    84.85 |     100 |   85.65 | ...1612-1614,1620 
  ...owContext.tsx |   91.07 |    81.81 |     100 |   91.07 | 47-48,60-62       
  ...deContext.tsx |     100 |      100 |      50 |     100 |                   
  ...onContext.tsx |   80.77 |       80 |    92.3 |   80.77 | ...31-434,443-446 
  ...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 | 156-157           
  ...teContext.tsx |   86.66 |       50 |     100 |   86.66 | 235-236           
  ...deContext.tsx |      80 |     87.5 |      75 |      80 | ...11-112,118-120 
  ...rtContext.tsx |     100 |      100 |     100 |     100 |                   
 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    |   93.33 |    85.71 |   66.66 |   93.33 |                   
  ...ngsManager.ts |   93.33 |    85.71 |   66.66 |   93.33 | 49,63-64          
 src/ui/hooks      |   85.97 |    83.88 |   87.78 |   85.97 |                   
  ...dProcessor.ts |   85.53 |    85.13 |     100 |   85.53 | ...-970,1017-1018 
  ...ention-ref.ts |   97.72 |       84 |     100 |   97.72 | 65                
  keyToAnsi.ts     |    3.92 |      100 |       0 |    3.92 | 19-77             
  ...esourceRef.ts |     100 |      100 |     100 |     100 |                   
  ...completion.ts |     100 |    95.45 |     100 |     100 | 95                
  ...ention-ref.ts |     100 |      100 |     100 |     100 |                   
  ...dProcessor.ts |   94.62 |    73.58 |     100 |   94.62 | ...87-288,293-294 
  ...dProcessor.ts |   86.79 |    71.86 |   83.33 |   86.79 | ...1529,1558-1562 
  ...rt-command.ts |     100 |      100 |     100 |     100 |                   
  ...sced-flush.ts |     100 |      100 |     100 |     100 |                   
  ...ng-enabled.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 |   86.44 |    88.48 |     100 |   86.44 | ...14-515,525-541 
  ...ifications.ts |   87.82 |    96.77 |     100 |   87.82 | 138-152           
  ...tIndicator.ts |   88.28 |    81.57 |     100 |   88.28 | ...66,175,179-187 
  ...waySummary.ts |   96.26 |       75 |     100 |   96.26 | 126-128,170       
  ...ndTaskView.ts |   94.89 |    77.55 |     100 |   94.89 | 164-168,257,263   
  ...chedScroll.ts |     100 |      100 |     100 |     100 |                   
  ...ketedPaste.ts |    23.8 |      100 |       0 |    23.8 | 19-37             
  ...nchCommand.ts |   95.53 |    83.01 |     100 |   95.53 | ...64-165,289-292 
  ...ompletion.tsx |   97.09 |    87.09 |     100 |   97.09 | ...23-324,334-335 
  ...dMigration.ts |    92.1 |    88.88 |     100 |    92.1 | 42-44             
  useCompletion.ts |   96.29 |    90.56 |     100 |   96.29 | ...17-218,222-223 
  ...nitMessage.ts |     100 |      100 |     100 |     100 |                   
  ...extualTips.ts |   78.26 |       50 |     100 |   78.26 | ...2,75-79,96-104 
  ...eteCommand.ts |   89.52 |    90.69 |     100 |   89.52 | ...98-106,114-115 
  ...ialogClose.ts |   36.11 |       10 |     100 |   36.11 | ...89-195,202-207 
  useDiffData.ts   |   11.62 |      100 |       0 |   11.62 | 44-87             
  ...oublePress.ts |   53.12 |       75 |     100 |   53.12 | 33-35,41-54       
  ...orSettings.ts |     100 |      100 |     100 |     100 |                   
  ...Completion.ts |   99.12 |    97.67 |     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 |    93.33 |     100 |     100 | 62                
  ...ggestions.tsx |   96.47 |    78.94 |     100 |   96.47 | 121,155-156       
  ...miniStream.ts |   87.32 |    84.15 |   77.77 |   87.32 | ...5718-5720,5722 
  ...BranchName.ts |     100 |    94.44 |     100 |     100 | 54                
  ...oryManager.ts |   98.38 |    98.85 |     100 |   98.38 | 141-144           
  ...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 |   22.58 |      100 |      50 |   22.58 | 11-32,44-85       
  ...gIndicator.ts |     100 |    96.66 |     100 |     100 | 109               
  useLogger.ts     |      16 |      100 |       0 |      16 | 15-45             
  useMCPHealth.ts  |   10.52 |      100 |       0 |   10.52 | 36-75             
  ...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 |     97.4 |     100 |     100 | 175,262           
  ...delCommand.ts |     100 |       96 |     100 |     100 | 61                
  ...ouseEvents.ts |   94.89 |       95 |   83.33 |   94.89 | 78-82             
  ...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 |   85.29 |    80.28 |    92.3 |   85.29 | ...36,351-361,441 
  useQwenAuth.ts   |     100 |      100 |     100 |     100 |                   
  ...lScheduler.ts |   89.13 |     86.9 |     100 |   89.13 | ...61-463,496-506 
  ...oryCommand.ts |       0 |        0 |       0 |       0 | 1-7               
  ...umeCommand.ts |   95.34 |    77.14 |     100 |   95.34 | 124-125,227-232   
  ...ompletion.tsx |   90.67 |    83.33 |     100 |   90.67 | ...02,105,138-141 
  ...ectionList.ts |   97.12 |    96.19 |     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 |   85.48 |    58.33 |     100 |   85.48 | 22-28,40,71       
  ...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.32 |    93.93 |     100 |   97.32 | ...18-422,518-525 
  ...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 |   67.34 |    58.82 |   66.66 |   67.34 | 52-53,61-68,79-85 
  ...rminalSize.ts |     100 |      100 |     100 |     100 |                   
  ...emeCommand.ts |    79.2 |    35.29 |     100 |    79.2 | ...15-116,120-121 
  useTimer.ts      |   97.59 |    94.73 |     100 |   97.59 | 17-18             
  ...lMigration.ts |       0 |        0 |       0 |       0 |                   
  ...rustModify.ts |     100 |    90.47 |     100 |     100 | 112,134           
  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.25 |    89.47 |     100 |   91.25 |                   
  ...AppLayout.tsx |   90.99 |     87.5 |     100 |   90.99 | 61-63,111-116,152 
  ...AppLayout.tsx |   91.66 |    92.85 |     100 |   91.66 | 75-80             
 src/ui/models     |   80.72 |       80 |   71.42 |   80.72 |                   
  ...ableModels.ts |   80.72 |       80 |   71.42 |   80.72 | ...,61-71,125-127 
 ...noninteractive |     100 |      100 |    6.66 |     100 |                   
  ...eractiveUi.ts |     100 |      100 |    6.66 |     100 |                   
 src/ui/selection  |   93.56 |    86.13 |     100 |   93.56 |                   
  screen-buffer.ts |   94.73 |    64.28 |     100 |   94.73 | 51-52             
  ...ion-coords.ts |     100 |      100 |     100 |     100 |                   
  ...ction-span.ts |   93.81 |     92.1 |     100 |   93.81 | ...1,45-46,99-100 
  ...tion-state.ts |     100 |      100 |     100 |     100 |                   
  ...ction-text.ts |   93.85 |    93.44 |     100 |   93.85 | 30-34,130-131     
  ...selection.tsx |   91.88 |    78.57 |     100 |   91.88 | ...16-417,446-447 
 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      |   87.68 |    85.72 |   96.05 |   87.68 |                   
  ...Colorizer.tsx |   80.31 |    85.41 |     100 |   80.31 | ...00-201,313-339 
  ...nRenderer.tsx |   80.07 |     75.6 |     100 |   80.07 | ...70,274,332-333 
  ...wnDisplay.tsx |   92.87 |     93.5 |     100 |   92.87 | ...,955,1002-1020 
  ...idDiagram.tsx |   87.79 |    95.34 |     100 |   87.79 | 156-179           
  ...eRenderer.tsx |   93.63 |    81.77 |   95.23 |   93.63 | ...47-750,803-808 
  ...odeDisplay.ts |   94.28 |    85.71 |     100 |   94.28 | 23,40             
  asciiCharts.ts   |    96.7 |     87.5 |     100 |    96.7 | 170-177,278       
  ...dWorkUtils.ts |     100 |      100 |     100 |     100 |                   
  ...boardUtils.ts |    52.9 |    74.15 |    92.3 |    52.9 | ...29,632-641,644 
  commandUtils.ts  |   98.46 |    92.38 |     100 |   98.46 | 121,149-150,356   
  computeStats.ts  |     100 |      100 |     100 |     100 |                   
  customBanner.ts  |   90.68 |    91.22 |     100 |   90.68 | ...13,324-327,334 
  displayUtils.ts  |   73.84 |    73.91 |     100 |   73.84 | ...34,36-40,42-46 
  formatters.ts    |   94.87 |    98.21 |     100 |   94.87 | 116-119           
  goal-runtime.ts  |   91.42 |       95 |     100 |   91.42 | 32-34             
  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  |   96.07 |    97.14 |     100 |   96.07 | 104-107           
  ...mage-parts.ts |   97.75 |    94.59 |     100 |   97.75 | 82-83             
  inline-math.ts   |   98.48 |    95.23 |     100 |   98.48 | 129-130           
  input-mouse.ts   |     100 |    85.71 |     100 |     100 | 48,93             
  isNarrowWidth.ts |     100 |      100 |     100 |     100 |                   
  ...olDetector.ts |   68.81 |       75 |   66.66 |   68.81 | ...27-132,160-161 
  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.36 |     100 |   98.72 | 145-146           
  ...t-position.ts |     100 |     87.5 |     100 |     100 | 85                
  ...geRenderer.ts |   86.51 |    70.16 |   95.12 |   86.51 | ...1286,1326-1332 
  ...alRenderer.ts |   86.69 |     71.9 |     100 |   86.69 | ...1476,1513-1519 
  ...lsBySource.ts |     100 |    95.23 |     100 |     100 | 84                
  mouse.ts         |   92.85 |    74.19 |     100 |   92.85 | ...38,145,149-152 
  osc8.ts          |   91.33 |    79.03 |     100 |   91.33 | ...73,273,277-278 
  ...red-height.ts |   98.38 |    97.14 |     100 |   98.38 | 195-197           
  ...mConstants.ts |     100 |      100 |     100 |     100 |                   
  restoreGoal.ts   |     100 |      100 |     100 |     100 |                   
  ...storyUtils.ts |   83.24 |       80 |     100 |   83.24 | ...02-624,755-756 
  ...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 |   95.19 |      100 |   88.88 |   95.19 | 121-126           
  ...nal-buffer.ts |     100 |      100 |     100 |     100 |                   
  ...e-renderer.ts |   90.61 |    83.44 |     100 |   90.61 | ...80,482-484,607 
  ...ize-reflow.ts |     100 |     92.3 |     100 |     100 | 57,62,209,217,347 
  ...wOptimizer.ts |     100 |    94.11 |     100 |     100 | 33,76             
  terminalSetup.ts |    4.37 |      100 |       0 |    4.37 | 44-393            
  textUtils.ts     |   98.71 |    95.72 |     100 |   98.71 | 292-293,478-479   
  ...background.ts |     100 |      100 |     100 |     100 |                   
  todoSnapshot.ts  |   90.42 |    92.85 |     100 |   90.42 | ...06-207,240-241 
  ...isplay-map.ts |     100 |      100 |     100 |     100 |                   
  updateCheck.ts   |     100 |    92.75 |     100 |     100 | 227-239,331       
  windowTitle.ts   |   96.55 |    94.73 |     100 |   96.55 | 56-57             
  ...ow-keyword.ts |     100 |      100 |     100 |     100 |                   
 ...i/utils/export |   75.03 |     60.1 |   94.59 |   75.03 |                   
  collect.ts       |   71.27 |    65.81 |      96 |   71.27 | ...90-633,655-656 
  index.ts         |     100 |      100 |     100 |     100 |                   
  normalize.ts     |   80.42 |    51.35 |     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      |   81.27 |    79.64 |   81.94 |   81.27 |                   
  ...d-recorder.ts |     6.2 |        0 |       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 |   91.09 |     92.1 |     100 |   91.09 | ...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 |       70 |     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         |   81.84 |    87.23 |   92.53 |   81.84 |                   
  ...p-profiler.ts |   98.39 |    92.59 |     100 |   98.39 | 141,185,235       
  acpModelUtils.ts |   97.36 |    95.19 |     100 |   97.36 | ...09-210,214-215 
  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 |      100 |     100 |     100 |                   
  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      |   97.45 |    96.66 |     100 |   97.45 | 153-155           
  ...Calculator.ts |     100 |      100 |     100 |     100 |                   
  cpuProfiler.ts   |   70.38 |    71.83 |   88.88 |   70.38 | ...27,430-431,438 
  deepMerge.ts     |     100 |    89.65 |     100 |     100 | 41-43,49          
  ...re-runtime.ts |     100 |      100 |     100 |     100 |                   
  ...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.31 |     100 |   90.65 | ...73,371,373-374 
  ...arResolver.ts |   97.14 |    96.55 |     100 |   97.14 | 125-126           
  errors.ts        |   97.56 |    94.64 |     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 |   97.68 |    94.28 |     100 |   97.68 | ...64,381-382,427 
  ...projection.ts |   95.27 |    95.58 |     100 |   95.27 | 140-145           
  jsonc-editor.ts  |   93.18 |    92.66 |     100 |   93.18 | ...80-381,384-385 
  languageUtils.ts |   98.88 |    97.01 |     100 |   98.88 | 184-185           
  load-undici.ts   |     100 |      100 |     100 |     100 |                   
  ...npm-update.ts |   86.64 |    77.02 |     100 |   86.64 | ...03-304,335-345 
  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.14 |    91.79 |     100 |   95.14 | ...54-455,553,566 
  osc.ts           |   97.18 |      100 |    87.5 |   97.18 | 182-183           
  package.ts       |   88.88 |    85.71 |     100 |   88.88 | 31-32             
  ...uggestions.ts |   84.29 |    70.83 |     100 |   84.29 | 70-76,92-103      
  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.87 |    89.28 |     100 |   95.87 | 103-105,131       
  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       |   45.52 |    57.35 |   76.92 |   45.52 | ...1040,1052-1075 
  ...xImageName.ts |     100 |    77.77 |     100 |     100 | 10,18             
  sandboxMounts.ts |     100 |      100 |     100 |     100 |                   
  ...-path-argv.ts |     100 |      100 |     100 |     100 |                   
  sessionPaths.ts  |   90.84 |    90.56 |     100 |   90.84 | ...81-182,185-186 
  settingsUtils.ts |   79.62 |     88.8 |   85.18 |   79.62 | ...47-565,572-580 
  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 |       90 |     100 |     100 | 23                
  systemInfo.ts    |   95.09 |    90.27 |     100 |   95.09 | ...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                
  ...iagnostics.ts |    95.8 |     87.5 |   93.75 |    95.8 | ...03,277-278,289 
  ...iffPreview.ts |   76.47 |       25 |     100 |   76.47 | 13,17,23-24       
  ...on-handler.ts |    73.8 |       75 |     100 |    73.8 | 17-18,25-26,67-73 
  ...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 |    66.66 |     100 |     100 | 11                
  ...ingHandler.ts |     100 |      100 |     100 |     100 |                   
  ...WithBackup.ts |   65.04 |    77.77 |     100 |   65.04 | 97,112,133-172    
 ...s/housekeeping |   93.51 |    90.95 |   96.96 |   93.51 |                   
  cleanup.ts       |   92.59 |    93.75 |     100 |   92.59 | ...02-205,209-211 
  ...eractionAt.ts |     100 |      100 |     100 |     100 |                   
  scheduler.ts     |      93 |    88.34 |      95 |      93 | ...57-359,411-415 
  throttledOnce.ts |   95.95 |    93.93 |     100 |   95.95 | 77-78,153-154     
-------------------|---------|----------|---------|---------|-------------------
Core Package - Full Text Report
-------------------|---------|----------|---------|---------|-------------------
File               | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s 
-------------------|---------|----------|---------|---------|-------------------
All files          |   88.13 |     86.7 |   89.66 |   88.13 |                   
 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.55 |     84.7 |    94.9 |   90.55 |                   
  ...transcript.ts |   88.49 |    84.09 |     100 |   88.49 | ...32,640,646-650 
  ...ent-resume.ts |   85.59 |    77.75 |   83.33 |   85.59 | ...1794-1798,1801 
  ...ound-tasks.ts |   94.63 |    90.13 |   96.38 |   94.63 | ...1773,1793-1796 
  index.ts         |     100 |      100 |     100 |     100 |                   
  ...ent-result.ts |    96.8 |    92.68 |     100 |    96.8 | 106,129-131       
  ...n-registry.ts |   94.79 |     87.7 |     100 |   94.79 | ...1067,1081-1083 
  ...w-snapshot.ts |   92.12 |    77.14 |     100 |   92.12 | ...65,189,196-198 
  worktree-pin.ts  |     100 |    88.23 |     100 |     100 | 78,99             
 src/agents/arena  |   76.94 |    68.22 |   78.94 |   76.94 |                   
  ...gentClient.ts |   79.47 |    88.88 |   81.81 |   79.47 | ...68-183,189-204 
  ArenaManager.ts  |   75.89 |     65.2 |   78.57 |   75.89 | ...1887,1893-1894 
  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.09 |    85.23 |   76.28 |   78.09 |                   
  ITermBackend.ts  |   97.97 |    93.93 |     100 |   97.97 | ...78-180,255,307 
  ...essBackend.ts |    90.9 |    85.36 |   93.33 |    90.9 | ...70,672,674-675 
  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 |   91.13 |    86.87 |   89.86 |   91.13 |                   
  agent-context.ts |     100 |      100 |     100 |     100 |                   
  agent-core.ts    |   84.45 |    76.43 |   77.19 |   84.45 | ...2344,2390-2392 
  agent-events.ts  |     100 |      100 |     100 |     100 |                   
  ...t-headless.ts |   93.49 |    89.41 |   83.33 |   93.49 | ...96-497,500-501 
  ...nteractive.ts |   81.01 |    82.35 |   76.66 |   81.01 | ...33,535-538,541 
  ...statistics.ts |   98.29 |    82.55 |     100 |   98.29 | 141,165,206,239   
  agent-types.ts   |     100 |      100 |     100 |     100 |                   
  index.ts         |     100 |      100 |     100 |     100 |                   
  ...ool-policy.ts |   98.38 |      100 |    92.3 |   98.38 | 85-86             
  ...low-budget.ts |     100 |      100 |     100 |     100 |                   
  ...-scheduler.ts |   97.43 |    96.36 |     100 |   97.43 | 128-130           
  ...ow-journal.ts |    92.3 |    75.86 |     100 |    92.3 | ...49-150,190-192 
  ...chestrator.ts |   93.43 |    91.19 |   90.47 |   93.43 | ...2145,2194-2197 
  ...ow-prompts.ts |     100 |      100 |     100 |     100 |                   
  ...low-runner.ts |   94.85 |     87.5 |   92.85 |   94.85 | ...93,260,280-283 
  ...ow-sandbox.ts |   96.85 |    91.28 |     100 |   96.85 | ...1750,1756-1757 
  ...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   |   82.97 |    84.56 |    89.2 |   82.97 |                   
  TeamManager.ts   |   74.33 |    81.09 |    80.7 |   74.33 | ...1707,1730-1731 
  identity.ts      |     100 |      100 |     100 |     100 |                   
  index.ts         |     100 |      100 |     100 |     100 |                   
  ...sionBridge.ts |     100 |      100 |     100 |     100 |                   
  mailbox.ts       |   96.02 |    87.23 |     100 |   96.02 | 352-358           
  ...ptAddendum.ts |     100 |      100 |     100 |     100 |                   
  tasks.ts         |   89.29 |       83 |     100 |   89.29 | ...1000,1044-1045 
  team-events.ts   |   60.52 |      100 |      50 |   60.52 | ...40-144,151-155 
  teamHelpers.ts   |   91.71 |    94.54 |      95 |   91.71 | ...18-319,355-365 
  types.ts         |     100 |      100 |     100 |     100 |                   
 ...eam/test-utils |   95.06 |    95.16 |   98.21 |   95.06 |                   
  ...on-harness.ts |   96.49 |       85 |     100 |   96.49 | 128-129,141-142   
  fake-agent.ts    |     100 |    96.77 |     100 |     100 | 158,167           
  fake-backend.ts  |   86.46 |    97.61 |   95.83 |   86.46 | 124-146           
 src/config        |   84.29 |    86.88 |   75.56 |   84.29 |                   
  approval-mode.ts |     100 |      100 |     100 |     100 |                   
  ...xtDefaults.ts |     100 |      100 |     100 |     100 |                   
  config.ts        |    83.6 |    86.61 |   74.07 |    83.6 | ...8884,8888-8889 
  constants.ts     |     100 |      100 |     100 |     100 |                   
  models.ts        |     100 |      100 |     100 |     100 |                   
  storage.ts       |   94.39 |    91.57 |   88.23 |   94.39 | ...45-446,449-450 
 ...nfirmation-bus |   98.27 |    97.14 |     100 |   98.27 |                   
  message-bus.ts   |   98.14 |    97.05 |     100 |   98.14 | 42-43             
  types.ts         |     100 |      100 |     100 |     100 |                   
 src/core          |   92.39 |    88.23 |   93.09 |   92.39 |                   
  baseLlmClient.ts |    88.4 |     83.8 |   81.81 |    88.4 | ...59,672,678-680 
  client.ts        |   92.64 |    88.04 |   92.04 |   92.64 | ...4300,4398-4399 
  ...tGenerator.ts |   86.34 |    87.34 |   84.61 |   86.34 | ...96-497,542-548 
  ...lScheduler.ts |   89.77 |     84.7 |   94.73 |   89.77 | ...6422,6450-6466 
  geminiChat.ts    |    94.7 |    90.13 |   95.53 |    94.7 | ...5059,5107-5108 
  geminiRequest.ts |     100 |      100 |     100 |     100 |                   
  genai-compat.ts  |     100 |      100 |     100 |     100 |                   
  ...MediaLimit.ts |     100 |       96 |     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.54 |    83.33 |      50 |   93.54 | 49-50             
  ...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 |   94.89 |    88.54 |     100 |   94.89 | ...51-252,297-298 
  prompts.ts       |   93.64 |    91.42 |   83.33 |   93.64 | ...1209,1412-1413 
  ...ing-effort.ts |     100 |      100 |     100 |     100 |                   
  ...n-recovery.ts |   95.13 |       80 |     100 |   95.13 | ...06-107,142-144 
  ...t-profiler.ts |    97.9 |    81.15 |   88.23 |    97.9 | 117,124-125,130   
  ...port-retry.ts |     100 |      100 |     100 |     100 |                   
  tokenLimits.ts   |     100 |    91.89 |     100 |     100 | 87,122-139        
  ...reparation.ts |     100 |      100 |     100 |     100 |                   
  ...tion-guard.ts |   90.38 |    94.73 |     100 |   90.38 | 83-87             
  ...allIdUtils.ts |   98.41 |    93.47 |     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          |   99.19 |    94.48 |     100 |   99.19 | 684-685,754       
  ...l-fallback.ts |     100 |      100 |     100 |     100 |                   
 ...ntentGenerator |   96.33 |    88.12 |   96.15 |   96.33 |                   
  ...tGenerator.ts |   97.24 |    86.72 |   94.87 |   97.24 | ...1436,1465,1476 
  converter.ts     |   96.19 |    89.25 |     100 |   96.19 | ...1329,1550-1552 
  index.ts         |       0 |        0 |       0 |       0 | 1-21              
  usage.ts         |     100 |      100 |     100 |     100 |                   
 ...ntentGenerator |   88.78 |    72.36 |   89.47 |   88.78 |                   
  ...tGenerator.ts |   87.18 |    71.83 |   88.88 |   87.18 | ...58-364,382-383 
  index.ts         |     100 |       80 |     100 |     100 | 50                
 ...ntentGenerator |   96.12 |     91.3 |    90.9 |   96.12 |                   
  index.ts         |     100 |      100 |     100 |     100 |                   
  ...tGenerator.ts |   96.06 |    90.75 |   90.47 |   96.06 | ...1309-1310,1338 
  ...tDetection.ts |     100 |      100 |     100 |     100 |                   
 ...ntentGenerator |    91.9 |    90.54 |   95.76 |    91.9 |                   
  constants.ts     |     100 |      100 |     100 |     100 |                   
  converter.ts     |    91.3 |    89.49 |   96.87 |    91.3 | ...1942,2111-2126 
  errorHandler.ts  |     100 |      100 |     100 |     100 |                   
  index.ts         |   68.25 |    82.35 |      50 |   68.25 | 44-53,74-78,90-94 
  ...tGenerator.ts |    66.4 |    70.58 |   88.88 |    66.4 | ...51-157,168-169 
  pipeline.ts      |   95.27 |     90.9 |     100 |   95.27 | ...1434,1442,1541 
  ...ix-caching.ts |   95.23 |    92.85 |     100 |   95.23 | 45-46,69-70       
  ...ureContext.ts |     100 |      100 |     100 |     100 |                   
  ...ingOptions.ts |       0 |        0 |       0 |       0 | 1                 
  ...CallParser.ts |   92.24 |     92.4 |     100 |   92.24 | ...28-529,549-552 
  ...kingParser.ts |     100 |    96.87 |     100 |     100 | 42                
  types.ts         |       0 |        0 |       0 |       0 | 1                 
 ...rator/provider |   97.39 |    92.28 |    98.5 |   97.39 |                   
  dashscope.ts     |   98.36 |    95.08 |   96.42 |   98.36 | ...08-709,851-852 
  deepseek.ts      |   94.91 |    89.36 |     100 |   94.91 | ...31-132,145-146 
  default.ts       |   99.18 |    97.05 |     100 |   99.18 | 208               
  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     |   87.71 |    84.62 |   92.57 |   87.71 |                   
  ...ive-safety.ts |     100 |      100 |     100 |     100 |                   
  ...-converter.ts |   80.55 |    73.66 |     100 |   80.55 | ...1133,1179-1180 
  corruptFile.ts   |     100 |       50 |     100 |     100 | 40-45             
  ...-converter.ts |     100 |      100 |     100 |     100 |                   
  ...me-refresh.ts |     100 |      100 |     100 |     100 |                   
  ...sion-store.ts |   90.94 |    86.26 |   97.91 |   90.94 | ...1230-1236,1280 
  ...ionManager.ts |   83.89 |    82.86 |   81.72 |   83.89 | ...2832,2861-2862 
  ...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 |    85.71 |   85.71 |    75.9 | ...98,202,214-248 
  github.ts        |   90.48 |    82.71 |     100 |   90.48 | ...4,994-995,1005 
  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       
  ...-converter.ts |   94.89 |    90.41 |     100 |   94.89 | ...50-151,222-224 
  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 |    84.21 |     100 |   88.95 | ...32-235,238-241 
  ...extraction.ts |   85.77 |       81 |   89.47 |   85.77 | ...02-205,260-261 
 ...ent-plugins-v1 |   84.94 |    79.51 |     100 |   84.94 |                   
  index.ts         |     100 |      100 |     100 |     100 |                   
  manifest.ts      |   81.87 |    84.48 |     100 |   81.87 | ...55-156,161-174 
  mcp.ts           |   84.98 |    79.56 |     100 |   84.98 | ...88-389,419-420 
  paths.ts         |     100 |    94.44 |     100 |     100 | 59                
  skills.ts        |   82.31 |    63.88 |     100 |   82.31 | ...38-141,150-151 
 src/followup      |   84.58 |    81.04 |   86.84 |   84.58 |                   
  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   |   75.98 |    67.22 |   58.33 |   75.98 | ...42-743,750-751 
  ...onToolGate.ts |   97.97 |     87.5 |     100 |   97.97 | 105,110           
  ...nGenerator.ts |   86.27 |    87.65 |     100 |   86.27 | ...42-247,359-361 
 src/generated     |       0 |        0 |       0 |       0 |                   
  git-commit.ts    |       0 |        0 |       0 |       0 | 1-10              
 src/goals         |   92.96 |    89.05 |   94.34 |   92.96 |                   
  ...eGoalStore.ts |   87.61 |    88.88 |   86.66 |   87.61 | ...85-188,196-204 
  ...t-verifier.ts |   96.27 |     90.9 |     100 |   96.27 | ...20,143-146,163 
  ...checkpoint.ts |   81.48 |    76.19 |     100 |   81.48 | ...02-105,115-118 
  goal-evidence.ts |   88.34 |    87.06 |    97.5 |   88.34 | ...1162,1185-1188 
  ...projection.ts |   66.66 |    72.97 |   33.33 |   66.66 | ...87,190,194-196 
  ...ersistence.ts |   87.29 |    85.71 |    87.5 |   87.29 | ...53-154,185-190 
  goal-protocol.ts |   96.87 |    95.65 |     100 |   96.87 | 200-201           
  goal-reducer.ts  |      95 |    92.34 |   97.05 |      95 | ...43,520,538-539 
  goal-runtime.ts  |   96.89 |    89.93 |   95.74 |   96.89 | ...1315-1316,1437 
  goal-tools.ts    |   98.38 |    94.05 |   95.45 |   98.38 | ...98-199,300-301 
  ...rn-context.ts |     100 |      100 |     100 |     100 |                   
  goal-verifier.ts |   92.46 |    92.85 |     100 |   92.46 | ...69-172,185-187 
  goal-wire.ts     |       0 |        0 |       0 |       0 | 1-28              
  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         |   88.07 |    86.35 |   88.54 |   88.07 |                   
  ...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.57 |    84.76 |   94.73 |   95.57 | ...1040-1041,1051 
  hookPlanner.ts   |   87.55 |    85.54 |   86.66 |   87.55 | ...22-226,233-244 
  hookRegistry.ts  |   92.53 |    85.43 |     100 |   92.53 | ...39,458,462,466 
  hookRunner.ts    |   62.65 |    72.34 |   66.66 |   62.65 | ...70-771,780-781 
  hookSystem.ts    |   87.64 |     98.5 |   70.83 |   87.64 | ...58-759,765-766 
  ...HookRunner.ts |   79.06 |    66.66 |      80 |   79.06 | ...33-434,452-456 
  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     |   86.45 |    89.13 |     100 |   86.45 | ...85,289-295,301 
  stopHookCap.ts   |     100 |      100 |     100 |     100 |                   
  trustedHooks.ts  |      90 |    52.63 |     100 |      90 | ...53,66-67,97-98 
  types.ts         |   94.25 |    96.09 |   88.88 |   94.25 | ...46-547,632-636 
  urlValidator.ts  |     100 |      100 |     100 |     100 |                   
  ...it-context.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.3 |    77.81 |   78.33 |    82.3 |                   
  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.31 |    58.06 |     100 |   79.31 | ...26-933,940-942 
  ...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        |    88.1 |    84.51 |   90.62 |    88.1 |                   
  ...y-document.ts |   89.52 |    84.61 |     100 |   89.52 | ...24-325,329-330 
  ...nel-memory.ts |   97.36 |    96.63 |   96.42 |   97.36 | ...91-293,367-368 
  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 |    83.33 |     100 |     100 | 136,146           
  entries.ts       |   75.59 |    84.84 |   83.33 |   75.59 | ...56-157,172-180 
  extract.ts       |   92.41 |    79.41 |     100 |   92.41 | 56-61,100,119-122 
  ...entPlanner.ts |   91.59 |    76.74 |     100 |   91.59 | ...05,114-117,293 
  ...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 |   97.94 |    89.36 |     100 |   97.94 | 82-83,179-180     
  manager.ts       |    78.4 |    82.29 |   77.77 |    78.4 | ...1482,1495-1497 
  ...ent-config.ts |   86.99 |    82.69 |   86.36 |   86.99 | ...69,389,396-402 
  memoryAge.ts     |   90.47 |    83.33 |     100 |   90.47 | 50-51             
  paths.ts         |     100 |      100 |     100 |     100 |                   
  ...ing-skills.ts |     100 |       72 |     100 |     100 | 31-35,73-78,97    
  prompt.ts        |   97.26 |    86.79 |     100 |   97.26 | ...10-218,222,225 
  recall.ts        |   86.86 |    86.36 |   92.85 |   86.86 | ...33-538,571-582 
  refresh.ts       |   93.58 |    89.58 |     100 |   93.58 | ...75-176,183-184 
  ...ceSelector.ts |    93.2 |    85.71 |     100 |    93.2 | ...45-146,148-149 
  remember.ts      |   98.89 |    90.19 |     100 |   98.89 | 50,70             
  scan.ts          |   93.75 |       80 |     100 |   93.75 | ...08-109,154,157 
  scopes.ts        |     100 |      100 |     100 |     100 |                   
  ...et-scanner.ts |     100 |      100 |     100 |     100 |                   
  ...entPlanner.ts |   77.24 |    74.07 |   72.22 |   77.24 | ...52-456,459,465 
  status.ts        |   10.52 |      100 |       0 |   10.52 | 41-98             
  store.ts         |   92.92 |    81.81 |     100 |   92.92 | ...16-117,147-148 
  ...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 |   81.21 |     79.1 |   81.81 |   81.21 | ...63-277,291-296 
 src/mocks         |       0 |        0 |       0 |       0 |                   
  msw.ts           |       0 |        0 |       0 |       0 | 1-9               
 src/models        |   92.55 |    88.62 |   91.13 |   92.55 |                   
  constants.ts     |     100 |      100 |     100 |     100 |                   
  ...tor-config.ts |   97.77 |    91.83 |     100 |   97.77 | 155,161,171       
  index.ts         |     100 |      100 |     100 |     100 |                   
  ...nfigErrors.ts |   74.22 |       44 |   84.61 |   74.22 | ...,67-74,106-117 
  ...igResolver.ts |   98.71 |    93.33 |     100 |   98.71 | 166,328,334       
  modelRegistry.ts |     100 |    98.11 |     100 |     100 | 177,261           
  modelsConfig.ts  |   89.36 |    86.93 |   88.09 |   89.36 | ...1404,1433-1434 
  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.79 |    91.16 |   71.07 |   83.79 |                   
  autoMode.ts      |   97.66 |    93.13 |     100 |   97.66 | ...82-589,635,712 
  ...transcript.ts |      98 |       84 |     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.63 |    88.88 |      80 |   86.63 | ...1111,1217-1221 
  rule-parser.ts   |   94.49 |    92.72 |     100 |   94.49 | ...1447,1481-1483 
  ...-semantics.ts |   70.44 |    91.09 |   46.66 |   70.44 | ...2237,2311-2314 
  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.71 |     78.6 |   81.25 |   83.71 |                   
  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.85 |    74.04 |   78.26 |   75.85 | ...73-474,502-503 
  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 | 81-83,86-88,90-93 
  ...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.41 |    78.76 |   95.89 |   85.41 |                   
  ...tGenerator.ts |   98.64 |    98.18 |     100 |   98.64 | 105-106           
  qwenOAuth2.ts    |   82.79 |    73.75 |   90.62 |   82.79 | ...1205-1221,1251 
  ...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      |   90.43 |    86.05 |    96.8 |   90.43 |                   
  ...ionTrailer.ts |     100 |      100 |     100 |     100 |                   
  ...llRegistry.ts |   98.48 |    87.28 |     100 |   98.48 | 81-82,105,474-475 
  branch-points.ts |     100 |    95.23 |     100 |     100 | ...20,211,224,327 
  ...ionService.ts |    97.7 |    96.44 |     100 |    97.7 | ...1069,1212-1220 
  ...ingService.ts |   91.36 |    86.98 |   93.25 |   91.36 | ...2676,2691-2692 
  ...ttribution.ts |   91.73 |    87.71 |      90 |   91.73 | ...80-685,826-827 
  ...utSlimming.ts |    97.2 |    94.23 |     100 |    97.2 | ...39-340,378-381 
  cronScheduler.ts |   94.17 |    90.45 |      98 |   94.17 | ...1333,1736-1737 
  cronTasksFile.ts |   95.49 |    90.82 |     100 |   95.49 | ...37,346-347,483 
  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 |    97.5 |    96.07 |     100 |    97.5 | 349-350,363-364   
  ...temService.ts |    92.8 |    84.68 |   94.11 |    92.8 | ...53,479-486,531 
  ...ratedFiles.ts |      96 |    88.23 |     100 |      96 | 119-120,146-147   
  gitInit.ts       |     100 |      100 |     100 |     100 |                   
  ...reeService.ts |   74.75 |    70.76 |   96.07 |   74.75 | ...2296,2325-2326 
  ...on-service.ts |   87.38 |       72 |     100 |   87.38 | ...01-305,343-344 
  ...references.ts |   98.39 |    88.88 |     100 |   98.39 | 154-155,215-216   
  ...ionService.ts |   98.26 |    97.35 |     100 |   98.26 | ...13-714,761-762 
  ...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.22 |    90.99 |     100 |   97.22 | ...55-456,609-610 
  ...ttachments.ts |   97.74 |     90.9 |     100 |   97.74 | 298-308,646       
  ...pi-history.ts |   98.94 |    88.88 |     100 |   98.94 | 43                
  ...ersistence.ts |   91.66 |    80.58 |     100 |   91.66 | ...1060-1061,1089 
  ...tory-state.ts |     100 |    95.23 |     100 |     100 | 31                
  ...on-service.ts |   94.49 |    92.26 |   97.14 |   94.49 | ...98-600,656-664 
  ...ce-service.ts |    98.5 |    94.11 |    90.9 |    98.5 | 64-65             
  ...n-registry.ts |   98.73 |    96.29 |     100 |   98.73 | 584,638-639,692   
  ...ken-counts.ts |     100 |       96 |     100 |     100 | 58                
  ...ipt-reader.ts |   93.71 |    91.05 |   97.77 |   93.71 | ...2755-2756,2833 
  ...turn-state.ts |   94.11 |     90.9 |   91.66 |   94.11 | 108-112,129-130   
  ...est-helper.ts |       0 |        0 |       0 |       0 | 1-65              
  ...iter-lease.ts |   83.14 |    74.47 |   97.61 |   83.14 | ...2433,2445-2448 
  sessionRecap.ts  |   67.56 |    43.47 |     100 |   67.56 | ...60,178,180-183 
  ...ionService.ts |   89.31 |    85.89 |   96.05 |   89.31 | ...2643,2657-2677 
  sessionTitle.ts  |   95.75 |    77.41 |     100 |   95.75 | ...53-256,287-288 
  ...ionService.ts |   84.43 |    78.45 |   97.18 |   84.43 | ...2496,2502-2507 
  ...pInhibitor.ts |   97.42 |    92.77 |     100 |   97.42 | ...30,169,369-370 
  ...Estimation.ts |     100 |    94.11 |     100 |     100 | 118               
  ...ageService.ts |   97.76 |    91.59 |   93.75 |   97.76 | ...61-262,366,567 
  ...ite-origin.ts |     100 |    93.33 |     100 |     100 | 32                
  ...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.42 |      100 |   33.33 |   14.42 | 58-186            
  ...ionService.ts |   88.36 |     87.7 |     100 |   88.36 | ...48-449,465-466 
 ...icrocompaction |    98.9 |    95.08 |     100 |    98.9 |                   
  microcompact.ts  |    98.9 |    95.08 |     100 |    98.9 | ...40,749,758-759 
 ...s/visionBridge |   98.81 |    92.12 |     100 |   98.81 |                   
  ...capability.ts |     100 |      100 |     100 |     100 |                   
  ...part-utils.ts |     100 |      100 |     100 |     100 |                   
  ...ion-bridge.ts |   98.72 |    82.35 |     100 |   98.72 | 65,71             
  ...-constants.ts |     100 |      100 |     100 |     100 |                   
  ...ge-service.ts |   98.61 |     94.7 |     100 |   98.61 | ...06,666,679-680 
 src/skills        |   89.29 |    85.92 |   93.61 |   89.29 |                   
  index.ts         |     100 |      100 |     100 |     100 |                   
  ...activation.ts |     100 |    93.33 |     100 |     100 | 93,112            
  skill-curator.ts |   89.71 |    81.54 |     100 |   89.71 | ...01-902,904-907 
  skill-load.ts    |   94.84 |    87.69 |     100 |   94.84 | ...03,223,235-237 
  skill-manager.ts |   84.82 |    85.29 |   83.33 |   84.82 | ...1243,1250-1254 
  skill-paths.ts   |   90.42 |     87.5 |     100 |   90.42 | ...19-120,125-126 
  symlinkScope.ts  |     100 |      100 |     100 |     100 |                   
  types.ts         |   97.91 |    98.03 |     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.72 |    89.01 |   96.55 |   87.72 |                   
  ...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 |   84.48 |    85.91 |   94.87 |   84.48 | ...1582,1659-1660 
  types.ts         |     100 |      100 |     100 |     100 |                   
  validation.ts    |   92.46 |    95.18 |     100 |   92.46 | 47-52,63-68,71-76 
 src/telemetry     |   82.41 |    84.65 |   85.74 |   82.41 |                   
  ...ty-tracker.ts |     100 |      100 |     100 |     100 |                   
  config.ts        |     100 |      100 |     100 |     100 |                   
  constants.ts     |     100 |      100 |     100 |     100 |                   
  ...on-metrics.ts |   99.08 |    80.95 |     100 |   99.08 | 185,199           
  ...on-tracing.ts |   76.92 |    75.71 |   73.68 |   76.92 | ...88,395-397,413 
  ...attributes.ts |   96.98 |    91.37 |     100 |   96.98 | ...47-348,366-367 
  ...ag-metrics.ts |     100 |    77.77 |     100 |     100 | 21,40             
  ...t-loop-lag.ts |   96.85 |    85.71 |     100 |   96.85 | 170-173           
  ...-exporters.ts |   65.78 |    83.33 |   55.55 |   65.78 | ...04-105,108-109 
  ...ai-content.ts |    74.5 |    66.41 |   91.66 |    74.5 | ...1480,1493-1502 
  ...i-provider.ts |     100 |       99 |     100 |     100 | 99                
  ...ai-request.ts |   87.52 |    92.79 |   83.78 |   87.52 | ...55-561,564-570 
  gen-ai-usage.ts  |     100 |      100 |     100 |     100 |                   
  index.ts         |     100 |      100 |     100 |     100 |                   
  ...t.circular.ts |       0 |        0 |       0 |       0 | 1-111             
  ...-processor.ts |   99.12 |    96.03 |      95 |   99.12 | 150,379-380       
  ...t.circular.ts |       0 |        0 |       0 |       0 | 1-128             
  loggers.ts       |   60.73 |    78.01 |   66.66 |   60.73 | ...1507,1524-1544 
  metrics.ts       |   80.37 |    82.35 |   80.95 |   80.37 | ...1150,1153-1164 
  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      |   93.89 |    86.32 |      75 |   93.89 | ...39,489-490,506 
  sdk.ts           |    82.7 |     90.9 |   66.66 |    82.7 | ...00-204,242-264 
  ...on-context.ts |     100 |      100 |     100 |     100 |                   
  ...ion-events.ts |     100 |      100 |     100 |     100 |                   
  ...on-tracing.ts |   91.17 |    88.72 |    97.5 |   91.17 | ...1920,1949-1952 
  ...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         |   83.09 |     95.1 |   86.36 |   83.09 | ...1467,1471-1478 
  uiTelemetry.ts   |   97.18 |    93.93 |      88 |   97.18 | ...70,314,461-462 
 ...ry/qwen-logger |   74.23 |     80.7 |      70 |   74.23 |                   
  event-types.ts   |       0 |        0 |       0 |       0 |                   
  qwen-logger.ts   |   74.23 |    80.53 |   69.49 |   74.23 | ...1122,1160-1161 
 src/test-utils    |   96.38 |    98.61 |   83.33 |   96.38 |                   
  config.ts        |     100 |      100 |     100 |     100 |                   
  ...st-helpers.ts |   94.11 |       90 |     100 |   94.11 | 69-70             
  index.ts         |     100 |      100 |     100 |     100 |                   
  ...mised-lock.ts |     100 |      100 |     100 |     100 |                   
  mock-tool.ts     |   94.85 |      100 |   78.78 |   94.85 | ...53,227-228,241 
  ...aceContext.ts |     100 |      100 |     100 |     100 |                   
 src/tools         |   86.24 |    84.97 |      89 |   86.24 |                   
  ...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 |                   
  display-image.ts |   87.42 |    84.84 |   88.88 |   87.42 | ...29-134,194-195 
  edit.ts          |   82.76 |    86.77 |   81.25 |   82.76 | ...45-746,865-915 
  ...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  |      95 |    85.29 |     100 |      95 | ...21-325,344,378 
  ...permission.ts |     100 |      100 |     100 |     100 |                   
  glob.ts          |   96.33 |     88.5 |     100 |   96.33 | ...24-225,373,376 
  grep.ts          |   90.73 |    86.61 |   85.71 |   90.73 | ...76-677,727-728 
  ...adTracking.ts |     100 |      100 |     100 |     100 |                   
  image-gen.ts     |   91.66 |    77.41 |    90.9 |   91.66 | ...13-214,221-222 
  list-agents.ts   |   94.02 |    82.35 |   83.33 |   94.02 | 31-32,47-48       
  loop-wakeup.ts   |   99.27 |    92.85 |     100 |   99.27 | 45                
  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 |   82.13 |    80.47 |   85.71 |   82.13 | ...3234,3236-3237 
  mcp-client.ts    |   80.03 |    86.58 |   89.47 |   80.03 | ...2272,2276-2279 
  ...ry-timeout.ts |     100 |      100 |     100 |     100 |                   
  mcp-errors.ts    |     100 |      100 |     100 |     100 |                   
  ...pool-entry.ts |   79.21 |    85.71 |   81.57 |   79.21 | ...1341,1349-1350 
  ...ool-events.ts |       8 |      100 |       0 |       8 | 132-158           
  mcp-pool-key.ts  |   97.46 |    93.93 |     100 |   97.46 | 176-177           
  ...ce-content.ts |   96.55 |    91.17 |     100 |   96.55 | 80-82             
  mcp-retry.ts     |   97.67 |    95.65 |     100 |   97.67 | 131-132           
  ...ion-config.ts |     100 |      100 |     100 |     100 |                   
  mcp-status.ts    |     100 |      100 |     100 |     100 |                   
  mcp-tool.ts      |   98.35 |    93.71 |     100 |   98.35 | ...-990,1045-1046 
  ...sport-pool.ts |   83.98 |     80.3 |   88.46 |   83.98 | ...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.82 |    83.09 |   88.46 |   91.82 | ...99,612,810-815 
  notebook-edit.ts |   85.71 |    77.08 |   81.25 |   85.71 | ...96-912,958-959 
  ...escendants.ts |   36.17 |    64.51 |   55.55 |   36.17 | ...46-310,385-390 
  ...nforcement.ts |   83.21 |    90.69 |     100 |   83.21 | 147-158,207-220   
  read-file.ts     |   95.49 |    88.52 |   86.66 |   95.49 | ...49,464,536-537 
  ...p-resource.ts |   96.85 |      100 |   91.66 |   96.85 | 92-96             
  ...d-artifact.ts |    87.1 |    81.04 |   93.93 |    87.1 | ...78-879,903-904 
  ripGrep.ts       |    94.6 |    87.26 |   95.23 |    94.6 | ...33-734,740-741 
  ...-transport.ts |   71.42 |    55.55 |   71.42 |   71.42 | ...36-137,143-144 
  send-message.ts  |   81.13 |    89.74 |    62.5 |   81.13 | ...80-286,363-371 
  ...n-mcp-view.ts |   94.07 |    91.89 |    90.9 |   94.07 | 131-139           
  shell.ts         |   78.96 |    84.29 |      93 |   78.96 | ...5036,5111-5112 
  skill-utils.ts   |     100 |      100 |     100 |     100 |                   
  skill.ts         |   91.39 |    92.55 |      90 |   91.39 | ...84,488,534-556 
  ...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     |   80.43 |    86.36 |   83.33 |   80.43 | ...67,121,125-132 
  task-stop.ts     |   93.14 |    96.15 |   85.71 |   93.14 | 39-40,54-64       
  task-update.ts   |   82.87 |    86.41 |    92.3 |   82.87 | ...54-564,588-599 
  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     |   95.13 |    87.85 |   93.33 |   95.13 | ...23-527,540-545 
  tool-error.ts    |     100 |      100 |     100 |     100 |                   
  tool-names.ts    |     100 |      100 |     100 |     100 |                   
  tool-registry.ts |   78.57 |    79.59 |    82.6 |   78.57 | ...89-990,998-999 
  tool-search.ts   |   96.19 |    89.72 |   93.33 |   96.19 | ...09,259-264,426 
  tools.ts         |   93.11 |    92.53 |   91.66 |   93.11 | ...76-577,593-599 
  ...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.58 |    83.57 |      80 |   90.58 | ...1025,1083-1086 
  write-file.ts    |      87 |    85.48 |   88.88 |      87 | ...26-829,866-901 
  zoom-image.ts    |   95.76 |    93.75 |      90 |   95.76 | 54-59,203-204     
 src/tools/agent   |   86.91 |    87.59 |   88.49 |   86.91 |                   
  agent.ts         |   85.49 |    86.49 |   86.02 |   85.49 | ...4244,4278-4288 
  fork-profile.ts  |   93.65 |       90 |     100 |   93.65 | ...33-134,171-174 
  fork-subagent.ts |   98.73 |       95 |     100 |   98.73 | 101-102,173       
 ...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 |   86.64 |    84.81 |      75 |   86.64 |                   
  workflow.ts      |   86.64 |    84.81 |      75 |   86.64 | ...95,540,542-543 
 src/utils         |    93.1 |     89.8 |   96.81 |    93.1 |                   
  LruCache.ts      |     100 |      100 |     100 |     100 |                   
  ...Controller.ts |     100 |      100 |     100 |     100 |                   
  ...ssageQueue.ts |     100 |      100 |     100 |     100 |                   
  ...cFileWrite.ts |      95 |     92.7 |     100 |      95 | ...49-550,657-661 
  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 |                   
  ...igResolver.ts |     100 |      100 |     100 |     100 |                   
  ...engthError.ts |   91.06 |    89.47 |     100 |   91.06 | ...46-147,154-155 
  ...n-branches.ts |   95.89 |    94.11 |      95 |   95.89 | ...99-500,512-525 
  ...tion-chain.ts |     100 |      100 |     100 |     100 |                   
  cronDisplay.ts   |     100 |    97.61 |     100 |     100 | 46                
  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 | ...27-428,462-463 
  editor.ts        |   97.65 |    95.45 |     100 |   97.65 | ...35-336,338-339 
  encoding.ts      |     100 |      100 |     100 |     100 |                   
  env.ts           |     100 |      100 |     100 |     100 |                   
  ...arResolver.ts |   94.28 |    88.88 |     100 |   94.28 | 28-29,125-126     
  ...entContext.ts |   96.63 |    90.13 |   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        |   88.92 |    92.99 |   66.66 |   88.92 | ...92,394,410-411 
  fetch.ts         |   90.68 |    82.51 |     100 |   90.68 | ...72,483-484,503 
  file-identity.ts |     100 |      100 |     100 |     100 |                   
  fileUtils.ts     |   95.05 |    92.71 |   96.15 |   95.05 | ...1988,1996-1997 
  forkedAgent.ts   |   92.76 |    83.17 |   94.11 |   92.76 | ...62,670,675-682 
  formatters.ts    |     100 |      100 |     100 |     100 |                   
  ...eUtilities.ts |    92.4 |    86.95 |     100 |    92.4 | ...52-158,168-169 
  ...rStructure.ts |   94.39 |    94.28 |     100 |   94.39 | ...29-132,343-348 
  getPty.ts        |   31.57 |       50 |     100 |   31.57 | 26-38             
  git-branches.ts  |    91.6 |    84.21 |    92.3 |    91.6 | ...90,405-410,570 
  ...fig-safety.ts |   97.01 |       80 |     100 |   97.01 | 53-54             
  gitDiff.ts       |   95.19 |    81.36 |     100 |   95.19 | ...1073,1419-1420 
  gitDirect.ts     |   98.84 |    94.28 |     100 |   98.84 | 234,318           
  ...noreParser.ts |   94.48 |    93.22 |     100 |   94.48 | ...23-124,158-159 
  gitUtils.ts      |   78.83 |    82.35 |    87.5 |   78.83 | ...22-123,164-215 
  github-prs.ts    |   95.74 |    82.27 |     100 |   95.74 | 216,314-322       
  iconvHelper.ts   |     100 |      100 |     100 |     100 |                   
  ...rePatterns.ts |     100 |      100 |     100 |     100 |                   
  image-view.ts    |   95.08 |    93.33 |     100 |   95.08 | ...62-166,234-238 
  ...ionManager.ts |     100 |     90.9 |     100 |     100 | 27                
  ...lPromptIds.ts |     100 |      100 |     100 |     100 |                   
  ...on-context.ts |     100 |      100 |     100 |     100 |                   
  jsonl-utils.ts   |   95.41 |    93.61 |     100 |   95.41 | ...27-328,370-373 
  ...-detection.ts |     100 |      100 |     100 |     100 |                   
  ...iconv-lite.ts |     100 |      100 |     100 |     100 |                   
  ...simple-git.ts |   96.77 |    91.66 |     100 |   96.77 | 38                
  ...m-headless.ts |      96 |    88.88 |     100 |      96 | 34                
  ...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 |   94.01 |    89.88 |     100 |   94.01 | ...47-353,445-446 
  ...Inspectors.ts |     100 |      100 |     100 |     100 |                   
  modelId.ts       |   98.96 |    98.18 |     100 |   98.96 | 153               
  ...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 
  osc8.ts          |   54.26 |    64.86 |   83.33 |   54.26 | ...72-195,197-257 
  partUtils.ts     |     100 |    98.64 |     100 |     100 | 211               
  pathReader.ts    |     100 |      100 |     100 |     100 |                   
  paths.ts         |   90.88 |     90.6 |     100 |   90.88 | ...25-626,628-630 
  pdf.ts           |   92.17 |    85.81 |     100 |   92.17 | ...64-565,606-611 
  ...s-liveness.ts |     100 |    93.47 |     100 |     100 | 62,72,108         
  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 |   71.15 |       86 |     100 |   71.15 | ...-90,96-101,147 
  ...noreParser.ts |   92.63 |    91.66 |     100 |   92.63 | ...77-178,197-198 
  rateLimit.ts     |   93.75 |    89.62 |     100 |   93.75 | ...13,218-219,262 
  ...text-range.ts |   96.98 |    87.15 |     100 |   96.98 | ...87-688,763-764 
  readManyFiles.ts |   95.75 |    80.86 |     100 |   95.75 | ...05,558,568-572 
  retry.ts         |   96.09 |    92.52 |     100 |   96.09 | ...67,558-559,577 
  retryContext.ts  |     100 |      100 |     100 |     100 |                   
  ...sification.ts |   97.63 |    97.08 |     100 |   97.63 | ...17,251-252,278 
  retryPolicy.ts   |   97.72 |    90.56 |     100 |   97.72 | 130-131           
  ripgrepUtils.ts  |   90.04 |    93.43 |   95.45 |   90.04 | ...55-565,598-599 
  ...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 |   84.87 |    86.71 |   96.29 |   84.87 | ...71,696,725-734 
  ...odelPrefix.ts |     100 |      100 |     100 |     100 |                   
  runtimeStatus.ts |   97.77 |    91.48 |     100 |   97.77 | 172-173           
  safe-mode.ts     |     100 |      100 |     100 |     100 |                   
  safeJsonParse.ts |     100 |      100 |     100 |     100 |                   
  ...nStringify.ts |     100 |      100 |     100 |     100 |                   
  ...-child-env.ts |     100 |      100 |     100 |     100 |                   
  ...aConverter.ts |   98.03 |    97.75 |     100 |   98.03 | 100,102-103       
  ...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.78 |    92.18 |     100 |   91.78 | ...66-569,645-646 
  ...nIdContext.ts |     100 |       90 |     100 |     100 | 95                
  ...orageUtils.ts |   96.21 |    85.21 |     100 |   96.21 | ...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.26 |    88.58 |     100 |   86.26 | ...2295,2302-2306 
  ...lAstParser.ts |    98.3 |    91.57 |     100 |    98.3 | ...1340-1342,1352 
  ...ContextEnv.ts |     100 |    94.73 |     100 |     100 | 76,111            
  ...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          
  ...e-encoding.ts |   85.96 |    76.47 |     100 |   85.96 | 58-61,64-65,78-79 
  ...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 |    98.1 |     92.3 |   93.33 |    98.1 | ...34-235,237-241 
  ...iagnostics.ts |   99.06 |     97.7 |   91.66 |   99.06 | 132-133,204       
  ...-retention.ts |     100 |    95.83 |     100 |     100 | 116               
  tool-utils.ts    |    95.2 |    93.61 |     100 |    95.2 | ...58-159,162-163 
  ...ultCleanup.ts |   54.62 |    57.14 |      75 |   54.62 | ...03-105,108-134 
  ...Compaction.ts |   96.13 |    96.39 |     100 |   96.13 | ...34-339,341-346 
  ...pt-records.ts |   87.58 |    86.13 |     100 |   87.58 | ...79-483,513-528 
  truncation.ts    |   90.61 |    90.51 |     100 |   90.61 | ...53-461,498-504 
  windowsPath.ts   |   89.47 |    79.31 |     100 |   89.47 | ...57-58,62,90-91 
  ...ifact-path.ts |   94.11 |    92.85 |     100 |   94.11 | 32-33             
  ...aceContext.ts |   95.39 |    89.47 |     100 |   95.39 | ...16-317,321-322 
  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.94 |    80.72 |   94.73 |   83.94 |                   
  crawlCache.ts    |     100 |      100 |     100 |     100 |                   
  crawler.ts       |    82.9 |    76.81 |   95.08 |    82.9 | ...1563,1597-1598 
  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 |   71.04 |    75.92 |   91.17 |   71.04 |                   
  ...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 |     100 |      100 |     100 |     100 |                   
  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.

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

LGTM, looks ready to ship — CI landed green after the review. ✅

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

Not explored to full depth (tool budget reached): "agent 6c": run packages/cli vitest for MainContent.test.tsx to confirm the new test and adjacent tests pass (worktree needs npm ci + full npm run build first; not ….

Test Plan (not a blocker): 24 tests pass — this review observed 21756 passed.

中文说明

未探索到全部深度(达到工具调用预算):"agent 6c"run packages/cli vitest for MainContent.test.tsx to confirm the new test and adjacent tests pass (worktree needs npm ci + full npm run build first; not …

Test Plan(非阻断):24 tests pass — this review observed 21756 passed

— qwen3.8-max via Qwen Code /review (v0.21.13)

Comment on lines +320 to +322
const deduped: VpItem[] = [];
for (const item of combined) {
const prev = deduped[deduped.length - 1];

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.

[Critical] The collapse only fires for adjacent duplicate tool_group rows, but in the real lifecycle behind issue 9420 the two copies are separated by whatever pending items the continuation turn streams, so the reported double-render persists in the common case. On batch completion, onComplete commits the group via addItem and then awaits handleCompletedToolssubmitQuery(ToolResult), which consumes the entire continuation stream; the core scheduler clears the display list only afterwards (in the finally after onAllToolCallsComplete). Since pendingToolCallGroupDisplay is always the LAST entry of the pending array, any continuation-streamed thought/text lands between the committed copy (history tail) and the stale pending copy — Failure scenario: any sequential-tool task where the model emits thought/text between calls or a final answer after the last batch (the issue's own repro: a couple of read_file calls) → the combined list is [..., batchN(history), thought/text(pending), batchN(pending)]; the copies are not adjacent, the loop never collapses them, and the latest tool row still renders twice until the next batch arrives. The new test only replays the adjacent shape, so its green run does not demonstrate the issue is fixed.

Witness (probe):

history=[tool_group(callId 'dup-call')]
pending=[gemini_thought, tool_group(callId 'dup-call')]
deduped dataIds: [-9007199254740991, 1, -1, -2]

Both copies (history id=1, pending id=-2) render, separated by the thought (id=-1); the collapse did not fire.

Suggested fix: dedup on identity regardless of adjacency (drop the earlier committed copy when the same signature appears anywhere later in the combined list), or fix the lifecycle seam — clear/replace the scheduler display state at commit time (in onComplete, right after addItem, before await handleCompletedTools), so the stale pending copy never overlaps committed history. Then add a test with a pending item between the two copies.

中文说明

[Critical] 折叠仅对相邻的重复 tool_group 行生效,但在 issue 9420 背后的真实生命周期中,两份副本之间会被续接回合流式产生的 pending 项隔开,因此所报告的双重渲染在常见场景下依然存在。批次完成时,onComplete 通过 addItem 将该组提交到 history,随后 await handleCompletedToolssubmitQuery(ToolResult) 消费整个续接流;核心调度器直到其后(onAllToolCallsComplete 之后的 finally 中)才清空展示列表。由于 pendingToolCallGroupDisplay 始终是 pending 数组的最后一项,任何续接流式产生的思考/文本都会落在已提交副本(history 末尾)与过期的 pending 副本之间 —— 失败场景:任何模型在工具调用之间输出思考/文本、或在最后一批之后输出最终回答的顺序工具任务(issue 本身的复现:几次 read_file 调用)→ 合并列表为 [..., batchN(history), thought/text(pending), batchN(pending)];两份副本不相邻,循环永远不会折叠它们,最新的工具行仍然会渲染两次,直到下一批到来。新增测试只复现了相邻形态,因此它的通过并不能证明问题已修复。

证据(探针):

history=[tool_group(callId 'dup-call')]
pending=[gemini_thought, tool_group(callId 'dup-call')]
deduped dataIds: [-9007199254740991, 1, -1, -2]

两份副本(history id=1,pending id=-2)均被渲染,中间隔着思考项(id=-1);折叠未触发。

建议修复:按身份去重而不限于相邻(当相同签名在合并列表后续任意位置出现时丢弃较早的已提交副本),或修复生命周期接缝——在提交时清空/替换调度器展示状态(onCompleteaddItem 之后、await handleCompletedTools 之前),使过期的 pending 副本不再与已提交 history 重叠。然后补充一个两份副本之间夹有 pending 项的测试。

— qwen3.8-max via Qwen Code /review (v0.21.13)

Comment on lines +315 to +319
// Collapse consecutive duplicate tool_group rows (#9420): the same
// in-flight tool batch can appear both in committed history and the live
// pending list (or twice within pending), rendering the latest tool call
// twice until the next call finalizes. Keep the LATER item so the live
// pending copy (which keeps updating) wins over the static history copy.

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] The collapse lives only in the virtual-viewport (allVirtualItems) path; the legacy <Static> path renders the same duplicated state uncollapsed, so the double row persists when ui.useTerminalBuffer: false — Concrete cost: the duplication is produced by render-path-agnostic machinery (useGeminiStream commits via addItem while pendingToolCallGroupDisplay still reflects the batch; it has zero references to useTerminalBuffer, and AppContainer feeds one shared pendingHistoryItems memo to both paths). With the supported setting ui.useTerminalBuffer: false (also screen-reader mode and non-interactive terminals via shouldUseVirtualViewport), the committed copy renders in <Static> and the live copy in the pending region at the same time — the exact double row this PR fixes for the virtual viewport. Rated Suggestion rather than Critical because useTerminalBuffer defaults to true and issue 9420 is explicitly VP-mode-scoped, so the fix matches the report's scope.

Suggested fix: apply the same toolGroupSignature-based collapse to the legacy path, or lift the fix to the producer (useGeminiStream) by suppressing pendingToolCallGroupDisplay once its batch has been committed via addItem — covering both paths at once.

中文说明

[Suggestion] 折叠仅存在于虚拟视口(allVirtualItems)路径;旧版 <Static> 路径对同样的重复状态不做折叠,因此在 ui.useTerminalBuffer: false 时双重行依然存在 —— 具体代价:重复状态由与渲染路径无关的机制产生(useGeminiStreampendingToolCallGroupDisplay 仍反映该批次时通过 addItem 提交;它完全不引用 useTerminalBuffer,且 AppContainer 向两条路径提供同一个共享的 pendingHistoryItems memo)。在受支持的设置 ui.useTerminalBuffer: false 下(以及屏幕阅读器模式、通过 shouldUseVirtualViewport 的非交互终端),已提交副本渲染在 <Static> 中、实时副本同时渲染在下方 pending 区域 —— 正是本 PR 为虚拟视口修复的双重行。评为 Suggestion 而非 Critical,因为 useTerminalBuffer 默认为 true,且 issue 9420 明确限定在 VP 模式,修复与报告范围一致。

建议修复:对旧版路径应用同样基于 toolGroupSignature 的折叠,或将修复上移到生产者(useGeminiStream):在批次经 addItem 提交后抑制 pendingToolCallGroupDisplay —— 一次覆盖两条路径。

— qwen3.8-max via Qwen Code /review (v0.21.13)

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Deferred to the follow-up queue. The mechanism is verified: the duplication is produced by producer-side machinery shared by both render paths (useGeminiStream commits the batch via addItem while pendingToolCallGroupDisplay still reflects it, and AppContainer feeds one shared pendingHistoryItems memo to both paths), so ui.useTerminalBuffer: false / screen-reader mode shows the same double row. The fix belongs in the producer (suppress or replace the pending display at commit time): Ink's <Static> is append-only, so a render-side filter on the legacy path cannot unrender a committed copy that was already flushed. That change is outside this PR's footprint — issue #9420 is explicitly virtual-viewport-scoped and this fix matches the report's scope, as the finding itself notes.

中文说明

已推迟到后续队列。机制已核实:重复由两条渲染路径共享的生产者侧机制产生(useGeminiStream 通过 addItem 提交批次时 pendingToolCallGroupDisplay 仍反映该批次,且 AppContainer 向两条路径提供同一个共享的 pendingHistoryItems memo),因此 ui.useTerminalBuffer: false / 屏幕阅读器模式下会出现同样的双重行。修复应位于生产者侧(在提交时抑制或替换 pending 展示):Ink 的 <Static> 是只追加的,旧版路径上的渲染侧过滤器无法撤掉已经刷出的已提交副本。该改动超出本 PR 的足迹 —— issue #9420 明确限定在虚拟视口,本修复与报告范围一致,该发现本身也指出了这一点。

Comment on lines +90 to +93
return (tools as Array<{ callId?: unknown }>)
.map((tool) => String(tool?.callId ?? ''))
.sort()
.join(',');

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] Sorted-callId signatures are not a universally unique batch identity: the accepted-speculation render path in AppContainer.tsx synthesizes spec-${name}-${i} callIds where i restarts at 0 per tool-only model message, so two legitimately different adjacent batches can share a signature and the collapse deletes a real committed transcript row — Concrete cost: with experimental ui.enableSpeculation: true (default false), accepting a speculated suggestion whose run performs two sequential tool-only turns of the same tool (e.g. read_file(a.ts) then read_file(b.ts)) commits two adjacent tool_groups both signed spec-read_file-0; the loop collapses them, keeping only the second, and the first tool call's row is permanently missing from the display (before this diff both rendered). The comma-join is additionally ambiguous (['a,b'] vs ['a','b']-shaped ids). Rated Suggestion rather than Critical because speculation is experimental and default-off; this would be Critical if it were default-on.

Suggested fix: scope the collapse to the shape it was designed for — only merge when one of the pair is a pending copy (negative id) — and/or make synthetic spec callIds globally unique (e.g. spec-${messageIndex}-${name}-${i}); optionally make the join delimiter-safe (e.g. JSON.stringify each id).

中文说明

[Suggestion] 排序后的 callId 签名并非普遍唯一的批次身份:AppContainer.tsx 中「采纳 speculation」的渲染路径会合成 spec-${name}-${i} 形式的 callId,其中 i 在每个纯工具 model message 处从 0 重新开始,因此两个合法不同的相邻批次可能共享同一签名,折叠便会从渲染的会话记录中删除真实的一行 —— 具体代价:在实验性 ui.enableSpeculation: true(默认 false)下,采纳一条推测建议且其运行对同一工具连续执行两个纯工具回合(如先 read_file(a.ts)read_file(b.ts))时,会提交两个相邻的 tool_group,签名均为 spec-read_file-0;循环将二者折叠、仅保留后者,第一个工具调用的行从此在显示中永久消失(本 diff 之前两行都会渲染)。此外逗号连接存在歧义(形如 ['a,b']['a','b'] 的 id)。评为 Suggestion 而非 Critical,因为 speculation 是实验性且默认关闭的;若默认开启则为 Critical。

建议修复:将折叠限定为其设计的形态 —— 仅当两者之一是 pending 副本(负 id)时才合并 —— 并/或让合成的 spec callId 全局唯一(如 spec-${messageIndex}-${name}-${i});可选地让连接符无歧义(如对每个 id 做 JSON.stringify)。

— qwen3.8-max via Qwen Code /review (v0.21.13)

Comment on lines +914 to +916
const frame = lastFrame() ?? '';
expect(frame).toContain('VP_ITEM:-1');
expect(frame).not.toContain('VP_ITEM:1');

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] The substring assertions don't pin the surviving item count — Concrete cost: a one-line mutation deleting continue; in the dedup loop makes the duplicate item both replace prev AND get pushed (two pending copies render — the exact double row this PR fixes), and this test still passes (probe-confirmed: the mutant survives).

Suggested change
const frame = lastFrame() ?? '';
expect(frame).toContain('VP_ITEM:-1');
expect(frame).not.toContain('VP_ITEM:1');
const frame = lastFrame() ?? '';
expect(frame.match(/VP_ITEM:-1/g)).toHaveLength(1);
expect(frame).not.toContain('VP_ITEM:1');

Alternatively assert on the list data via the existing spy: expect(scrollableListPropsSpy.mock.calls.at(-1)?.[0].data.map((i) => i.id)).toEqual([Number.MIN_SAFE_INTEGER, -1]).

中文说明

[Suggestion] 子串断言无法固定存活条目的数量 —— 具体代价:在去重循环中删除 continue; 的单行变异会使重复项既替换 prev 又被 push(渲染出两个 pending 副本 —— 正是本 PR 要修复的双重行),而本测试仍然通过(已用探针确认:该变异存活)。

或者通过现有 spy 断言列表数据:expect(scrollableListPropsSpy.mock.calls.at(-1)?.[0].data.map((i) => i.id)).toEqual([Number.MIN_SAFE_INTEGER, -1])

— qwen3.8-max via Qwen Code /review (v0.21.13)

Comment on lines +323 to +324
const sig = toolGroupSignature(item);
if (prev && sig !== null && sig === toolGroupSignature(prev)) {

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] No VP-path test renders two adjacent tool_groups with different signatures, so an over-collapse regression survives the entire suite — Concrete cost: probe-confirmed: relaxing the condition to collapse ANY adjacent tool_group pair leaves all 24 tests green, yet a probe with two adjacent distinct groups (call-A id=1, call-B id=2) drops group 1 under the mutant (dataIds: [-9007199254740991, 2] vs [-9007199254740991, 1, 2] under correct code). Such a regression merges two consecutive distinct batches into one row, silently dropping the completed batch from the transcript. The only pre-existing adjacent-group guard lives in the useTerminalBuffer=false Static-path describe block and never exercises this code.

Suggested fix: add a VP-path test with two adjacent tool_groups carrying different callIds (one in history, one in pendingHistoryItems) asserting both ids render.

中文说明

[Suggestion] 没有任何 VP 路径测试渲染两个签名不同的相邻 tool_group,因此「过度折叠」回归可以在整套测试中存活 —— 具体代价:已用探针确认:把条件放宽为折叠任意相邻 tool_group 对后,全部 24 个测试依然为绿;而对两个相邻的不同批次(call-A id=1、call-B id=2)的探针显示,变异体下 group 1 被丢弃(dataIds: [-9007199254740991, 2],正确代码为 [-9007199254740991, 1, 2])。这类回归会把两个连续的不同批次合并为一行,悄无声息地从记录中丢掉已完成的批次。唯一既有的相邻批次守卫位于 useTerminalBuffer=false 的 Static 路径 describe 块中,根本不会执行到这段代码。

建议修复:新增一个 VP 路径测试,构造两个携带不同 callId 的相邻 tool_group(一个在 history、一个在 pendingHistoryItems),断言两个 id 都被渲染。

— qwen3.8-max via Qwen Code /review (v0.21.13)

expect(lastFrame()).toMatch(/VP_ITEM:1[\s\S]*VP_ITEM:2/);
});

it('collapses a tool_group duplicated across history and pending (#9420)', () => {

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] The implementation comment claims the loop also handles the same batch appearing "twice within pending", but no test covers that placement — Concrete cost: probe-confirmed: a mutant adding && prev.id > 0 (collapse only when prev is a history item; pending items have negative ids) leaves all 24 tests green; under it, two adjacent pending copies of the same in-flight batch both render, re-introducing the double row in the pending-only case the comment names.

Suggested fix: add a case with pendingHistoryItems: [dupToolGroup, dupToolGroup] asserting only the later copy renders.

中文说明

[Suggestion] 实现注释声称该循环也处理同一批次「在 pending 内出现两次」的情况,但没有任何测试覆盖该形态 —— 具体代价:已用探针确认:加入 && prev.id > 0(仅当 prev 是 history 项时才折叠;pending 项 id 为负)的变异体让全部 24 个测试保持为绿;在该变异体下,同一在途批次的两个相邻 pending 副本都会被渲染,使注释所述「仅 pending」场景下的双重行复现。

建议修复:新增一个 pendingHistoryItems: [dupToolGroup, dupToolGroup] 的用例,断言仅渲染较后的副本。

— qwen3.8-max via Qwen Code /review (v0.21.13)

Comment on lines +86 to +87
function toolGroupSignature(item: unknown): string | null {
const it = item as { type?: unknown; tools?: unknown } | null;

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] Convention drift from this file's sibling helpers: virtualKeyExtractor and virtualIsStaticItem take the typed VpItem union and narrow on the type discriminant, while this new helper takes unknown and double-casts — Concrete cost: the casts silence the compiler on exactly the accesses (.type, .tools, .callId) that define the dedup identity; if tools or callId is ever renamed or reshaped, this function still compiles and silently degrades — a missing tools field makes every signature '' (via the Array.isArray fallback), collapsing ALL adjacent tool_groups into one row with no type error to catch it.

function toolGroupSignature(item: VpItem): string | null {
  if (item.type !== 'tool_group') return null;
  return item.tools
    .map((tool) => tool.callId)
    .sort()
    .join(',');
}

(The fix spans the whole function body, so no one-click suggestion block.)

中文说明

[Suggestion] 与本文件同类辅助函数的约定不一致:virtualKeyExtractorvirtualIsStaticItem 接收类型化的 VpItem 联合并按 type 判别式收窄,而新辅助函数却接收 unknown 并双重强转 —— 具体代价:强转恰好让编译器在定义去重身份的访问(.type.tools.callId)上失声;一旦 toolscallId 被改名或重构,本函数仍能编译并静默退化 —— 缺失 tools 字段会使每个签名变为 ''(经 Array.isArray 兜底),把所有相邻 tool_group 折叠为一行,且没有任何类型错误可以捕获。

(修复覆盖整个函数体,故不使用一键 suggestion 代码块。)

— qwen3.8-max via Qwen Code /review (v0.21.13)

Comment on lines +324 to +326
if (prev && sig !== null && sig === toolGroupSignature(prev)) {
deduped[deduped.length - 1] = item;
continue;

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] The collapse is completely silent — when a row is dropped (correctly or by mistake) there is no debug-log breadcrumb, and this file has no debug logger at all — Concrete cost: a user reporting "a tool call row disappeared from my transcript" gets zero signal under --debug that a collapse ever fired; the investigator must reconstruct the exact history/pending interleaving and callId sets by hand. The neighboring VirtualizedList deliberately logs its analogous silent edge cases with debugLogger.debug(...) (lines 583-587) precisely so --debug users can self-diagnose.

Suggested fix: add a debugLogger.debug(...) call inside the collapse branch logging the signature and the ids being replaced.

中文说明

[Suggestion] 折叠完全静默 —— 无论正确还是误删,丢弃一行时没有任何调试日志痕迹,且本文件根本没有调试日志器 —— 具体代价:当用户报告「我的会话记录里少了一行工具调用」时,即使开启 --debug 也看不到任何折叠曾触发的信号;排查者只能手工重建 history/pending 的精确交错与 callId 集合。相邻的 VirtualizedList 特意用 debugLogger.debug(...)(583-587 行)记录其类似的静默边界情况,正是为了让 --debug 用户可以自查。

建议修复:在折叠分支内加一处 debugLogger.debug(...),记录签名与被替换的 id。

— qwen3.8-max via Qwen Code /review (v0.21.13)

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Declined. MainContent.tsx has no debug logger today; adding an import plus a log call for this intended, deterministic collapse is not worth the diff growth (AGENTS.md Simplicity First). The behavior is now pinned by five focused regression tests, so an over- or under-collapse is caught at build time rather than diagnosed after the fact. If a field report of a missing tool row still needs a runtime breadcrumb, the log can ride along with that diagnosis.

中文说明

拒绝。MainContent.tsx 目前没有调试日志器;为这个有意为之且确定性的折叠新增一个 import 加一处日志调用不值得增加 diff(AGENTS.md 简洁优先)。该行为现在由五个聚焦的回归测试固定,过度折叠或折叠不足会在构建期被捕获,而不是事后诊断。如果现场仍有「工具行消失」的报告需要运行时线索,日志可以随那次诊断一起加入。

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

⚠️ This run could not certify that any of this diff was reviewed. Suggestions are inline.

Not reviewed: the entire diff — no agent reported covering it; nobody read it.

Not reviewed: the linked-issue fidelity pass, the line-by-line correctness pass, the security pass, the reuse and duplication pass, the altitude and abstraction pass, the consistency and clarity pass, the performance pass, the test-coverage pass, the open-ended audit (attacker mindset), the open-ended audit (oncall mindset), the open-ended audit (maintainer mindset), the removed-behavior audit, the cross-file consistency pass, the build-and-test check — its prompt was built, but no agent on record was launched with it.

Not reviewed: verification and reverse audit — both prompts were built, but no agent was launched with either — the posted findings cannot be counted as verified, and the pass that hunts what the rest of the review missed cannot be certified.

中文说明

⚠️ 本次运行无法证明这个 diff 的任何部分经过了审查。 建议见行内评论。

未审查:整个 diff——没有 agent 报告覆盖过这部分,也没有人读过它。

未审查:关联 issue 一致性检查、逐行正确性检查、安全检查、复用与重复代码检查、修复层次与抽象合理性检查、一致性与可读性检查、性能检查、测试覆盖检查、开放式审计(攻击者视角)、开放式审计(值班排障视角)、开放式审计(后续维护者视角)、删除行为审计、跨文件一致性检查、构建与测试验证——它的 prompt 已构建,但没有任何 agent 有记录用它启动过。

未审查:验证与反向审计——两份 prompt 都已构建,但都没有 agent 用它们启动——发布的发现不能算作已验证,搜寻评审遗漏问题的工序也无法作证。

— deepseek-v4 via Qwen Code /review (v0.21.13)

// twice until the next call finalizes. Keep the LATER item so the live
// pending copy (which keeps updating) wins over the static history copy.
const deduped: VpItem[] = [];
for (const item of combined) {

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] Suggestion: The dedup only checks the immediately preceding item. If a non-tool_group item sits between two identical tool_groups, they are not collapsed. Consider scanning the entire deduped array or documenting the race window.

*/
function toolGroupSignature(item: unknown): string | null {
const it = item as { type?: unknown; tools?: unknown } | null;
if (!it || it.type !== 'tool_group') return null;

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] Suggestion: The signature is built from callId only. Two different tool batches with the same callIds would produce the same signature. Consider including tool name for defense-in-depth.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Declined. After this round's fix, a collapse only fires when a live pending copy shares the signature, and callIds are unique per tool call — identical sorted-callId sets mean the same logical batch, so the tool name adds no discriminating power. The one real collision case (two committed speculation batches whose synthetic spec-${name}-${i} ids repeat) involves identical tool names as well, and those pairs are no longer collapsed at all: committed rows without a live pending counterpart are preserved unconditionally, pinned by the new "keeps committed tool_groups sharing a signature when no pending copy is live" test.

中文说明

拒绝。本轮修复后,折叠仅在存在共享同一签名的实时 pending 副本时触发,而 callId 对每个工具调用是唯一的 —— 排序后的 callId 集合相同即表示同一逻辑批次,因此工具名不提供任何额外区分力。唯一真实的冲突场景(两个已提交的 speculation 批次,其合成的 spec-${name}-${i} id 重复)中工具名同样相同,且这类配对现在完全不再被折叠:没有实时 pending 副本的已提交行无条件保留,并由新测试「无实时 pending 副本时保留同签名的已提交 tool_group」固定。


const dupToolGroup = {
type: 'tool_group' as const,
tools: [

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] Suggestion: The code comment mentions "or twice within pending" as a scenario, but the test only covers history+pending duplication. Add a test for the pending-only duplicate case.


/**
* Stable identity of a tool_group for consecutive-duplicate collapsing
* (#9420): the sorted callIds of its tool calls. Two adjacent tool_group rows

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] Suggestion: When tools is an empty array, the signature is an empty string, which would collapse two consecutive empty tool_groups. Consider returning null when tools.length === 0.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Declined. After this round's fix, a collapse requires a live pending counterpart with the same signature, and an empty-tools pending tool_group cannot exist: pendingToolCallGroupDisplay is undefined — not an empty group — when toolCalls.length === 0 (useGeminiStream.ts, the memo guarding it). With no pending empty group there is nothing for an empty committed group to collapse against, and committed-only pairs are never merged regardless of signature. The tools.length === 0 guard would defend against a state the producer cannot reach.

中文说明

拒绝。本轮修复后,折叠需要存在同签名的实时 pending 副本,而空 tools 的 pending tool_group 不可能存在:当 toolCalls.length === 0pendingToolCallGroupDisplayundefined —— 而不是空组(见 useGeminiStream.ts 中守护它的 memo)。不存在 pending 空组,空的已提交组就没有可折叠的对象,而纯已提交配对无论签名如何都不会被合并。tools.length === 0 守卫防御的是生产者无法到达的状态。


const dupToolGroup = {
type: 'tool_group' as const,
tools: [

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] Suggestion: Add a test for the non-consecutive duplicates boundary (a non-tool_group item between two identical tool_groups should preserve both).


const dupToolGroup = {
type: 'tool_group' as const,
tools: [

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] Suggestion: Add a test with multiple tool_groups with different signatures to verify all survive the dedup loop.

@qwen-code-dev-bot

Copy link
Copy Markdown
Collaborator Author

🕐 Review received — an automatic review of the current head is still running, so this round is held until it lands (a push now would cancel it and discard its work, #8888). Your feedback stays queued for the next eligible round.

中文说明

🕐 已收到评审 —— 当前 head 上仍有一轮自动 review 在运行,本轮暂缓(现在推送会取消该 review 并丢弃其工作,#8888)。反馈保持排队,等待下一次可运行的轮次处理。

@danialzivehdadr

This comment has been minimized.

@danialzivehdadr

This comment has been minimized.

@qwen-code-dev-bot

qwen-code-dev-bot commented Aug 18, 2026

Copy link
Copy Markdown
Collaborator Author

AutoFix round 3 finishedview run. See this round's report below.

中文说明

AutoFix 第 3 轮已完成 —— 查看运行。本轮报告见下方。

@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: · 已处理最新评审反馈(第 1/10 轮)。改动内容与我反驳保留之处如下:

Autofix round summary — PR #9421 (issue #9420)

Outcome: made changes — commit 9d4177b893 on fix/dup-tool-group-9420. No conflict (--conflict false, no merge performed).

The Critical, reproduced first

[rc:3806229677] claims the collapse only fires for adjacent duplicate tool_group rows while the real lifecycle interleaves pending items between the copies. Before changing anything, a focused test replaying that shape was added and run against the pre-round code — it failed with exactly the finding's witness: data ids [ -9007199254740991, 1, -1, -2 ] (both copies render, separated by the pending thought). Code inspection confirms the lifecycle: onComplete commits the batch via addItem before await handleCompletedTools consumes the continuation stream (useGeminiStream.ts), and pendingToolCallGroupDisplay is the last entry of the pending array, so continuation thought/content items land between the committed copy and the stale live copy.

Feedback dispositions

Finding Decision
[rc:3806229677] [Critical] non-adjacent duplicates survive Fixed — dedup now matches by signature across the whole combined list, dropping committed copies that have a live pending counterpart; repro test added (failed pre-fix, passes post-fix)
[rc:3806233016] dedup only checks the preceding item Fixed — same change as the Critical
[rc:3806229692] signature collisions can delete real committed rows Fixed — collapse is scoped to pairs with a live pending (negative-id) copy; committed-only pairs are never collapsed; pinned by a new test with two committed same-signature groups separated by a thought
[rc:3806229696] substring assertions don't pin item count Fixed — the #9420 test now asserts the exact ScrollableList data ids via the existing props spy
[rc:3806229702] no over-collapse guard test Fixed — new test: two adjacent history groups with different callIds plus a third pending group all render
[rc:3806229708], [rc:3806233027] no pending-only duplicate test Fixed — new test: pendingHistoryItems: [group, group] renders only the later copy
[rc:3806229714] helper takes unknown and double-casts FixedtoolGroupSignature now takes the typed VpItem union and narrows on the type discriminant; both casts and the String(... ?? '') coercion are gone (callId is a required string)
[rc:3806233042] test multiple groups with different signatures Fixed — covered by the new different-signatures test (three distinct groups across history and pending)
[rc:3806233037] non-consecutive boundary test Fixed — new test pins that two identical committed groups separated by a non-tool item both survive when no pending copy is live. Note the intentional semantic: committed+pending duplicates ARE collapsed across interleaved pending items — that is exactly the Critical's bug shape
[rc:3806229687] legacy <Static> path uncollapsed Deferred to follow-up queue — verified real but the fix lives outside this PR's footprint; see the thread reply
[rc:3806233023] include tool name in signature Declined — see the thread reply
[rc:3806233032] empty-tools signature collision Declined — see the thread reply
[rc:3806229722] add a debug log for the collapse Declined — see the thread reply
[rv:4963681765] CHANGES_REQUESTED ("not explored to full depth") The substantive finding was the inline Critical above, now fixed; the Test Plan note was marked non-blocker
[rv:4963685598] "could not certify" meta-review No standalone findings; its six suggestions are the [rc:3806233*] inline comments handled above

Changes

Verification

  • npm run build — passed (run twice: once to restore missing workspace dist/ prerequisites, once after the final source change)
  • npm run typecheck — passed
  • npm run lint — passed
  • npx prettier --check (both changed files) — passed
  • npx vitest run src/ui/components/MainContent.test.tsx (packages/cli, touched) — 28/28 passed; pre-fix the new interleaved repro failed with the finding's exact witness [ -9007199254740991, 1, -1, -2 ]
  • npx vitest run src/ui/AppContainer.test.tsx (packages/cli, adjacent real consumer of <MainContent />) — 144/144 passed
  • Mutation probes (supplementary): collapsing ANY adjacent pending pair is caught by the different-signatures test; a prev.id > 0 guard on the pending merge is caught by the pending-only test — both mutants failed the suite, restored code passes
  • Integration tests after npm run bundle — not applicable: the changed behavior is render-side component logic fully exercised by the unit tests above, not a bundled-CLI-only path
  • npm run generate:settings-schema — not applicable: no settings source changed
中文说明

Autofix 本轮总结 — PR #9421(issue #9420

结果: 已修改 — 在 fix/dup-tool-group-9420 分支上提交 9d4177b893。无冲突(--conflict false,未执行合并)。

Critical 的复现

[rc:3806229677] 指出折叠仅对相邻的重复 tool_group 行生效,而真实生命周期中两份副本之间会隔着 pending 项。在修改任何代码之前,先新增了一个复现该形态的测试并在修改前的代码上运行 — 它以与该发现完全一致的证据失败:data ids [ -9007199254740991, 1, -1, -2 ](两份副本均被渲染,中间隔着 pending 思考项)。代码检查确认了该生命周期:onCompleteawait handleCompletedTools 消费续接流之前就通过 addItem 提交了批次(useGeminiStream.ts),且 pendingToolCallGroupDisplay 是 pending 数组的最后一项,因此续接流产生的思考/内容项会落在已提交副本与过期的实时副本之间。

反馈处理

发现 决定
[rc:3806229677] [Critical] 非相邻重复未被折叠 已修复 — 去重现在按签名在完整合并列表中匹配,丢弃存在实时 pending 副本的已提交副本;新增复现测试(修复前失败、修复后通过)
[rc:3806233016] 去重只检查前一项 已修复 — 与 Critical 相同的修改
[rc:3806229692] 签名冲突可能删除真实的已提交行 已修复 — 折叠限定为存在实时 pending(负 id)副本的配对;纯已提交配对永不折叠;由新测试(两个已提交的同签名批次中间隔一个思考项)固定
[rc:3806229696] 子串断言无法固定条目数量 已修复#9420 测试现在通过现有的 props spy 断言 ScrollableList data 的精确 id 序列
[rc:3806229702] 缺少过度折叠守卫测试 已修复 — 新测试:history 中两个不同 callId 的相邻批次 + pending 中第三个批次,全部渲染
[rc:3806229708][rc:3806233027] 缺少仅 pending 重复的测试 已修复 — 新测试:pendingHistoryItems: [group, group] 仅渲染较后的副本
[rc:3806229714] 辅助函数接收 unknown 并双重强转 已修复toolGroupSignature 现在接收类型化的 VpItem 联合并按 type 判别式收窄;两处强转与 String(... ?? '') 强制转换均已移除(callId 是必需的 string
[rc:3806233042] 多组不同签名批次的测试 已修复 — 由新的不同签名测试覆盖(history 与 pending 中三个互不相同的批次)
[rc:3806233037] 非连续边界测试 已修复 — 新测试固定:无实时 pending 副本时,两个被非工具项隔开的相同已提交批次均保留。注意有意为之的语义:已提交+pending 的重复跨间隔的 pending 项折叠 — 这正是 Critical 的缺陷形态
[rc:3806229687] 旧版 <Static> 路径未折叠 推迟到后续队列 — 已验证属实,但修复位于本 PR 足迹之外;见线程回复
[rc:3806233023] 签名中加入工具名 拒绝 — 见线程回复
[rc:3806233032] 空 tools 签名冲突 拒绝 — 见线程回复
[rc:3806229722] 为折叠添加调试日志 拒绝 — 见线程回复
[rv:4963681765] CHANGES_REQUESTED("未探索到全部深度") 实质发现即上面的行内 Critical,已修复;Test Plan 备注已标注非阻断
[rv:4963685598] "无法证明已审查" 的元评审 无独立发现;其六条建议即上文处理的 [rc:3806233*] 行内评论

变更内容

验证

  • npm run build — 通过(运行两次:一次用于恢复缺失的 workspace dist/ 前置产物,一次在最终源码修改之后)
  • npm run typecheck — 通过
  • npm run lint — 通过
  • npx prettier --check(两个改动文件)— 通过
  • npx vitest run src/ui/components/MainContent.test.tsx(packages/cli, touched)— 28/28 通过;修复前新的交叉复现测试以与该发现完全一致的证据 [ -9007199254740991, 1, -1, -2 ] 失败
  • npx vitest run src/ui/AppContainer.test.tsx(packages/cli,<MainContent /> 的相邻真实消费者)— 144/144 通过
  • 变异探针(补充):折叠任意相邻 pending 配对会被不同签名测试捕获;pending 合并加 prev.id > 0 守卫会被仅 pending 测试捕获 — 两个变异体均使测试失败,恢复后的代码全部通过
  • npm run bundle 后的集成测试 — 不适用:改动行为是渲染侧组件逻辑,已由上述单元测试完整覆盖,并非仅捆绑 CLI 路径
  • npm run generate:settings-schema — 不适用:未改动 settings 源

Base-conflict check · 基分支冲突检查: no conflict with main. · 与 main 无冲突。

Re-review when you have a moment. After round 10 this bot stops and leaves the PR for a human. · 有空请复审;第 10 轮后本 bot 停止并将 PR 交给人工。


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

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

Test Plan (not a blocker): 24 tests pass — this review observed 21757 passed.

中文说明

已审查——无阻断问题。 建议见行内评论。

Test Plan(非阻断):24 tests pass — this review observed 21757 passed

— qwen3.8-max via Qwen Code /review (v0.21.13)

Comment on lines +328 to +330
const deduped: VpItem[] = [];
for (const item of combined) {
const sig = toolGroupSignature(item);

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] The #9420 dedup recomputes a callId signature (map + sort + join, fresh allocations) for every committed tool_group in history on every memo recompute — i.e. on every streaming tick, since each 60 ms throttled flush gives pendingHistoryItems a fresh array identity — even when no pending tool_group exists and neither dedup branch can fire (both provably require a non-empty livePendingSigs).

Failure scenario: in a long session with thousands of committed tool_groups, the second pass walks the entire combined list and rebuilds signatures on every streamed chunk — including during pure text streaming — adding history-sized allocation churn per tick on a render hot path this file otherwise fights (see the issue 3899 comments above).

Witness (probe): rendering 100 committed tool_groups plus one pending content item and re-rendering with fresh pending identity, the current code performs 100 sort invocations per simulated chunk; with the early return below, 0 — row counts identical in both arms, and all 28 tests in this file pass with the change applied.

Suggested change
const deduped: VpItem[] = [];
for (const item of combined) {
const sig = toolGroupSignature(item);
if (livePendingSigs.size === 0) return combined;
const deduped: VpItem[] = [];
for (const item of combined) {
const sig = toolGroupSignature(item);
中文说明

[Suggestion] #9420 去重在每次 memo 重算时都会为 history 中每一个已提交的 tool_group 重新计算 callId 签名(map + sort + join,全新分配)——也就是每个流式 tick 都会发生(每 60ms 的节流刷新都会使 pendingHistoryItems 获得新的数组身份)——即使当前不存在任何 pending tool_group、两个去重分支都不可能触发(二者都以 livePendingSigs 非空为前提)。

失败场景:在拥有数千个已提交 tool_group 的长会话中,第二个循环会在每个流式块(包括纯文本流式阶段)遍历整个合并列表并重建签名,在这条本文件其他位置(见上方 issue 3899 的注释)一直刻意优化的渲染热路径上,每个 tick 增加与 history 规模成正比的分配开销。

证据(探针):渲染 100 个已提交 tool_group 加 1 个 pending 内容项,并以新的 pending 身份重渲染,当前代码每个模拟块产生 100 次 sort 调用;采用下面的提前返回后为 0 —— 两种情况下行列表完全一致,且应用该修改后本文件全部 28 个测试通过。

— qwen3.8-max via Qwen Code /review (v0.21.13)

@qwen-code-dev-bot

Copy link
Copy Markdown
Collaborator Author

🤖 Addressed the latest review feedback (round 2/10). What changed, and what I pushed back on: · 已处理最新评审反馈(第 2/10 轮)。改动内容与我反驳保留之处如下:

Autofix review round summary — PR #9421

Feedback points and decisions

[rv:4965136323] Review body — "Reviewed — no blockers. Suggestions are inline."

Decision: no action needed. The review body carries no findings; the single suggestion is handled inline below.

[rc:3807397565] Suggestion — skip the dedup pass when no pending tool_group is live

Decision: Act (implemented).

The finding is correct and verified against the code: the second pass of the allVirtualItems memo computes a toolGroupSignature (map + sort + join) for every item in the combined list — including the whole committed history — on every memo recompute. Since pendingHistoryItems gets a fresh array identity on each throttled streaming flush, this memo reruns every tick, so a long session pays history-sized signature churn even during pure text streaming when no pending tool_group exists and neither collapse branch can fire:

  • Branch 1 (item.id > 0 && livePendingSigs.has(sig)) cannot fire against an empty set.
  • Branch 2 (pending-list duplicate) requires a pending item with a non-null signature, which by construction would already be in livePendingSigs — impossible when the set is empty.
  • The vp-banner sentinel yields a null signature, so it is unaffected.

Change (packages/cli/src/ui/components/MainContent.tsx, +4 lines): after the pending-signature collection loop, return combined early when livePendingSigs.size === 0, skipping the history-wide signature pass. The early return is provably behavior-identical (the skipped pass would drop/replace nothing), so no test changes were needed — the existing #9420 suite pins both arms: keeps committed tool_groups sharing a signature when no pending copy is live exercises the early-return path, and the other four tests exercise the dedup path. A three-line comment records the invariant and the hot-path rationale. Committed as 4584d05dcf.

No conflict (--conflict false); no merge performed.

Verification

  • npm run build — passed
  • npm run typecheck — passed
  • npm run lint — passed
  • npx vitest run src/ui/components/MainContent.test.tsx (packages/cli, touched) — 28 passed (28)
  • npx prettier --check packages/cli/src/ui/components/MainContent.tsx — passed
  • Integration tests after npm run bundle — not run: the change is an internal memo guard in a React component, exercised by the unit tests above via ScrollableList prop spies, not only through the bundled CLI or integration harness.
  • npm run generate:settings-schema — not applicable (no settings source changed).
中文说明

Autofix 审查轮次总结 — PR #9421

反馈点与决定

[rv:4965136323] 审查正文 — "Reviewed — no blockers. Suggestions are inline."

决定:无需处理。 审查正文本身不含任何发现;唯一的建议已在下方行内条目处理。

[rc:3807397565] 建议 — 当没有存活的 pending tool_group 时跳过去重遍历

决定:采纳(已实现)。

该发现正确,并已在代码中核实:allVirtualItems memo 的第二遍遍历会为合并列表中的每一个元素(包括全部已提交历史)计算 toolGroupSignature(map + sort + join),且发生在每次 memo 重算时。由于每次节流的流式刷新都会给 pendingHistoryItems 一个新的数组身份,该 memo 每个 tick 都会重算——因此在没有任何 pending tool_group、两个折叠分支都不可能触发的纯文本流式阶段,长会话仍要付出与历史规模成正比的签名计算开销:

  • 分支 1(item.id > 0 && livePendingSigs.has(sig))在集合为空时不可能触发。
  • 分支 2(pending 列表内部去重)要求存在签名非 null 的 pending 元素,而这样的元素按构造必然已进入 livePendingSigs —— 集合为空时不可能存在。
  • vp-banner 哨兵元素的签名为 null,不受影响。

修改packages/cli/src/ui/components/MainContent.tsx,+4 行):在收集 pending 签名的循环之后,当 livePendingSigs.size === 0 时提前返回 combined,跳过对整个历史的签名遍历。该提前返回可证明行为完全一致(被跳过的遍历不会丢弃/替换任何元素),因此无需修改测试 —— 现有的 #9420 测试套件已固定两条路径:keeps committed tool_groups sharing a signature when no pending copy is live 覆盖提前返回路径,其余四个测试覆盖去重路径。一段三行注释记录了该不变量及热路径上的理由。提交为 4584d05dcf

无冲突(--conflict false);未执行任何合并。

验证

  • npm run build — 通过
  • npm run typecheck — 通过
  • npm run lint — 通过
  • npx vitest run src/ui/components/MainContent.test.tsx(packages/cli,本次触碰的包)— 28 通过(共 28)
  • npx prettier --check packages/cli/src/ui/components/MainContent.tsx — 通过
  • npm run bundle 之后的集成测试 — 未运行:该修改是 React 组件内部 memo 的守卫逻辑,已由上述单元测试通过 ScrollableList props 探针覆盖,并非只能经打包后的 CLI 或集成测试框架验证。
  • npm run generate:settings-schema — 不适用(未改动任何 settings 源)。

Base-conflict check · 基分支冲突检查: no conflict with main. · 与 main 无冲突。

Re-review when you have a moment. After round 10 this bot stops and leaves the PR for a human. · 有空请复审;第 10 轮后本 bot 停止并将 PR 交给人工。


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

@qwen-code-ci-bot

Copy link
Copy Markdown
Collaborator

Qwen Code review did not complete successfully. The review pipeline failed before a review could be posted. A transient error is retried automatically; if you are seeing this, retry with @qwen-code /review. See workflow logs.

@qwen-code-dev-bot

Copy link
Copy Markdown
Collaborator Author

🔀 Base updated: red check(s) [Test (ubuntu-latest, Node 22.x), review-pr] pass on current main — merged current main via update-branch; CI will re-run.

中文说明

🔀 已更新 base:红色检查 [Test (ubuntu-latest, Node 22.x), review-pr] 在当前 main 上通过 —— 已通过 update-branch 合入当前 main,CI 将重新运行。

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

⚠️ This run could not certify that any of this diff was reviewed. Suggestions are inline. 3 Suggestion-level finding(s) could not be anchored to a changed line and were dropped; nothing further to act on here.

Not reviewed: the executable-script lint — could not read the plan to check the gate.

Not reviewed: coverage — the plan could not be used (ENOENT: no such file or directory, open 'C:\Users\jinye.djy.qoderwork\workspace\mspqz3u5etjh72hs\qwen-code\Usersjinye.djy.qoderworkworkspacemspqz3u5etjh72hsqwen-code.qwen mpqwen-review-pr-9421-fetch.json'), so this run cannot show that any of the diff was read.

Not reviewed: verification — could not check that Step 4 and Step 5 ran (ENOENT: no such file or directory, open 'C:\Users\jinye.djy.qoderwork\workspace\mspqz3u5etjh72hs\qwen-code\Usersjinye.djy.qoderworkworkspacemspqz3u5etjh72hsqwen-code.qwen mpqwen-review-pr-9421-fetch.json').

⚠️ The reverse-audit findings file could not be read at compose time, so this run cannot show its findings were verified.

— qwen3.8-max via Qwen Code /review (v0.21.13)

if (sig !== null) {
if (item.id > 0 && livePendingSigs.has(sig)) continue;
// Same batch twice within the pending list: keep the later copy.
const prev = deduped[deduped.length - 1];

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] Pending-list dedup only checks adjacent items; non-adjacent duplicates within the pending list are not collapsed — Failure scenario: If two identical tool_group copies appear in pendingHistoryItems separated by a non-tool_group item, the second copy is not collapsed because the dedup only checks deduped[deduped.length - 1]. The combined list would render the same tool_group twice.

— qwen3.8-max via Qwen Code /review (v0.21.13)

中文说明

[Suggestion] pending 列表内的去重仅检查相邻项,非相邻的重复项不会被折叠 —— 失败场景:如果两个相同的 tool_group 副本之间被非 tool_group 项隔开,第二个副本不会被折叠。

— qwen3.8-max via Qwen Code /review (v0.21.13)

return item.tools
.map((tool) => tool.callId)
.sort()
.join(',');

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] toolGroupSignature uses join(',') which could produce ambiguous signatures if callId values contain commas — Failure scenario: If a callId contained a comma, two tool_groups with different callId sets could produce the same signature string. This would incorrectly collapse two distinct tool batches. Currently callIds are system-generated and never contain commas, so this is a theoretical concern.

— qwen3.8-max via Qwen Code /review (v0.21.13)

中文说明

[Suggestion] toolGroupSignature 使用 join(',') 在 callId 值包含逗号时可能产生歧义签名。

— qwen3.8-max via Qwen Code /review (v0.21.13)

});

// Shared fixtures for the #9420 collapse tests.
const toolGroupFixture = (callId: string) => ({

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] Multi-tool toolGroupSignature sorting is untested — the fixture always creates single-tool groups — Failure scenario: toolGroupFixture always creates a single-tool group, so the .sort() call in toolGroupSignature is never exercised in a meaningful way. If a future refactor accidentally removed the .sort(), two tool_groups with the same tools in different orders would not be collapsed.

read

— qwen3.8-max via Qwen Code /review (v0.21.13)

中文说明

[Suggestion] 多工具 toolGroupSignature 排序未被测试。

— qwen3.8-max via Qwen Code /review (v0.21.13)

@qwen-code-dev-bot

Copy link
Copy Markdown
Collaborator Author

🕐 Review received — an automatic review of the current head is still running, so this round is held until it lands (a push now would cancel it and discard its work, #8888). Your feedback stays queued for the next eligible round.

中文说明

🕐 已收到评审 —— 当前 head 上仍有一轮自动 review 在运行,本轮暂缓(现在推送会取消该 review 并丢弃其工作,#8888)。反馈保持排队,等待下一次可运行的轮次处理。

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

Deferred under the convergence posture (round 3, not a blocker) — recorded, not requested in this round:

  • packages/cli/src/ui/components/MainContent.tsx:339 — [probe] committed-collision guard in the dedup loop has zero loop-path test coverage (probe-confirmed surviving mutant)
中文说明

收敛姿态下延后(第 3 轮,非阻断)——已记录,本轮不要求修改:共 1 条(原文未翻译,列表见上方英文部分)。

— qwen3.8-max via Qwen Code /review (v0.21.13)

for (const item of combined) {
const sig = toolGroupSignature(item);
if (sig !== null) {
if (item.id > 0 && livePendingSigs.has(sig)) continue;

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.

[Critical] R3-1: callId-signature collision hides committed tool_group rows — this branch drops EVERY committed tool_group whose signature matches a live pending batch, but callIds are not globally unique, so a committed row from a different batch is silently hidden for the whole duplicate window. Reachable without provider misbehavior: full compaction replaces core history while the TUI display history stays intact (handleChatCompressionEvent only adds an info item), and normalizeModelToolCallIds seeds usedToolCallIds per-send from the current core history (geminiChat.ts ~4456) — so the deterministic generated ids (call_qwen_1, ...) are re-minted after compaction and collide with pre-compaction display rows. Wire ids from OpenAI-compatible endpoints also pass through unfiltered (converter.ts ~1250; handledProviderToolCallIdsRef is cleared at every top-level submit), so a naive or malicious endpoint reusing ids across turns collides too; join(',') is additionally ambiguous for callIds containing a comma. — Failure scenario: a committed row with callId X exists in display history; after compaction (or in the next turn) an unrelated batch streams with the same callId X as the live pending tool_group → this branch drops the committed row, and an executed tool batch vanishes from the rendered list until the pending copy clears — for a malicious provider, a way to conceal executed tool calls. Pre-diff both rows rendered (duplicated but visible); the diff turns the collision into silent disappearance (window-length — the row returns when the stale pending clears, but is invisible during the window).

Witness (probe against the real component):

committed [tool_group call_qwen_1] + pending [read_file call_qwen_1]
observed: [ -9007199254740991, 2, -1 ]   <- committed id 1 dropped
flip (branch disabled): [ -9007199254740991, 1, 2, -1 ]

Suggested fix: match committed<->pending copies by a batch identifier the scheduler itself assigns (a batchId carried from the display-state copy into the committed item), or restrict this drop to only the LATEST committed tool_group matching a live pending signature (the just-committed stale copy is always the most recent such row); if a content signature must stay, make the join unambiguous (encodeURIComponent + \u0000 separator).

中文说明

[Critical] callId 签名冲突会隐藏已提交的 tool_group 行——该分支会丢弃所有签名与实时 pending 批次匹配的已提交 tool_group,但 callId 并非全局唯一,因此来自另一个批次的已提交行会在整个重复窗口内被静默隐藏。无需 provider 异常即可触发:完全压缩(full compaction)会替换核心历史,但 TUI 展示历史保持不变(handleChatCompressionEvent 仅添加一条 info 项),而 normalizeModelToolCallIds 每次发送时以当前核心历史为种子初始化 usedToolCallIdsgeminiChat.ts ~4456)——因此确定性生成的 id(call_qwen_1 等)在压缩后会被重新铸造,与压缩前已存在的展示行冲突。OpenAI 兼容端点的 wire id 也会原样透传(converter.ts ~1250;handledProviderToolCallIdsRef 在每次顶层提交时清空),因此跨回合复用 id 的 naive/恶意端点同样会冲突;join(',') 对含逗号的 callId 还存在歧义。— 失败场景:展示历史中已存在 callId 为 X 的已提交行;压缩后(或下一回合)一个不相关的新批次以相同的 callId X 作为实时 pending tool_group 流式出现 → 该分支丢弃已提交行,一个已执行的工具批次从渲染列表中消失,直到 pending 副本被清除——对恶意 provider 而言,这是隐藏已执行工具调用的一种手段。diff 之前两行都会渲染(重复但可见);该 diff 使冲突变为静默消失(窗口期长度——过期 pending 清除后该行会恢复,但在窗口期内不可见)。

证据(针对真实组件的探针):

committed [tool_group call_qwen_1] + pending [read_file call_qwen_1]
observed: [ -9007199254740991, 2, -1 ]   <- 已提交 id 1 被丢弃
flip(禁用该分支): [ -9007199254740991, 1, 2, -1 ]

建议修复:用调度器自身分配的批次标识(将 batchId 从展示状态副本携带到已提交项)来匹配已提交与 pending 副本,或将该丢弃限制为与实时 pending 签名匹配的最新一个已提交 tool_group(刚提交的过期副本总是其中最新的一行);若必须保留内容签名,则使拼接无歧义(encodeURIComponent + \u0000 分隔符)。

— qwen3.8-max via Qwen Code /review (v0.21.13)

Comment on lines +333 to +334
for (const item of combined) {
const sig = toolGroupSignature(item);

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] R2-1: still stands (partially addressed by 4584d05dcf) — the early return covers only the no-pending-tool_group case; while any tool_group IS pending (the steady state of an agentic turn), every streaming tick still (a) walks the entire combined list in pass 1 checking item.id < 0, and (b) recomputes map+sort+join signatures (fresh allocations) for every committed tool_group in pass 2 — even though committed items are stable references whose signatures never change across ticks. — Concrete cost: a long agentic session with hundreds of committed tool_groups streaming a batch: pendingHistoryItems gets a fresh array identity on each throttled flush, so the memo recomputes every tick, the early return does not fire, and the session pays a full-history walk + G signature allocations per tick on the default render path this file is explicitly tuned for (see the #3899 work). (Magnitude is an inspection estimate, not a benchmark.)

Suggested fix: cache signatures keyed by item reference in a module-level WeakMap<VpItem, string | null> — committed items are passed by reference and never mutated (this fix itself relies on that), so their signatures compute once per session; pending items get fresh objects per tick, so the WeakMap naturally misses and entries are GC'd with them — and/or build livePendingSigs by iterating pendingHistoryItems directly instead of walking the combined list.

中文说明

[Suggestion] R2-1 仍然存在(4584d05dcf 仅部分解决)——提前返回只覆盖了没有 pending tool_group 的情况;只要存在 pending 的 tool_group(agent 回合的常态),每个流式 tick 依然会:(a) 在第一遍遍历整个合并列表检查 item.id < 0;(b) 在第二遍为每个已提交的 tool_group 重新计算 map+sort+join 签名(每次都是新分配)——尽管已提交项是稳定的引用,其签名跨 tick 从不变。— 具体代价:拥有数百个已提交 tool_group 的长会话在流式执行批次时:pendingHistoryItems 每次节流刷新都获得新的数组身份,memo 每 tick 重算,提前返回不会触发,会话在这个文件专门为长历史调优(见 #3899 工作)的默认渲染路径上,每 tick 付出整段历史遍历 + G 次签名分配的开销。(量级为检查估算,非基准测试。)

建议修复:用模块级 WeakMap<VpItem, string | null> 以项引用为键缓存签名——已提交项按引用传递且从不被修改(本修复本身就依赖这一点),其签名每会话只计算一次;pending 项每 tick 是新对象,WeakMap 自然未命中,条目随对象一起被 GC——和/或直接遍历 pendingHistoryItems 来构建 livePendingSigs,而不是遍历整个合并列表。

— qwen3.8-max via Qwen Code /review (v0.21.13)

@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: · 已处理最新评审反馈(第 3/10 轮)。改动内容与我反驳保留之处如下:

Autofix review round — PR #9421

Commit: 2946b9ab5afix(ui): drop only the latest committed tool_group copy on callId collision (#9420) (2 files, +142/−45)

Feedback points and dispositions

[rc:3808214007] [Critical] R3-1: callId-signature collision hides committed tool_group rows — RESOLVED.
Reproduced before changing anything: a new focused test (committed batches id 1 and id 3 sharing the live pending batch's callId) failed on the pre-fix code with the exact witness from the finding — observed [MIN_SAFE, 2, -1] (committed id 1 silently dropped), expected [MIN_SAFE, 1, 2, -1]. Fix: the dedup now drops only the LATEST committed row per live pending signature (the just-committed stale copy is always the most recently appended match), instead of every committed row matching the signature. Earlier committed batches whose callIds merely collide — ids re-minted after core-history compaction, provider wire-id reuse — keep rendering.

[rc:3808149681] [Suggestion] pending-list dedup only checks adjacent items — RESOLVED.
Also reproduced pre-fix (two identical pending copies separated by a thought item both rendered: [MIN_SAFE, -1, -2, -3]). The restructured dedup keeps the latest copy per signature within the pending list regardless of what items sit between the copies. Surviving copies keep their original positional ids, which renderVirtualItem relies on for pending source-copy-offset lookup.

[rc:3808149689] [Suggestion] join(',') signature ambiguity — RESOLVED.
The signature is now JSON.stringify of the sorted callIds, which is unambiguous for string arrays even if a callId contains a comma. Reproduced the ambiguous collapse pre-fix: a committed single-tool batch ['a,b'] was wrongly collapsed against a pending two-tool batch ['a','b']; both now render.

[rc:3808149693] [Suggestion] multi-tool signature sorting untested — RESOLVED.
The shared fixture now takes variadic callIds (all existing call sites unchanged), and a new test collapses a committed [call-A, call-B] group against a pending [call-B, call-A] copy — pinning the .sort() that a future refactor could silently drop.

[rc:3808214023] [Suggestion] R2-1: per-tick signature recomputation / full-list walk — RESOLVED.
livePendingSigs is now built by iterating pendingHistoryItems directly, so a tick without any pending tool_group returns before any history-wide pass, and the pending-signature pass no longer walks the whole combined list. Committed-item signatures are cached in a module-level WeakMap keyed by item reference: history items are stable references that are replaced — never mutated — when they change (verified in useHistoryManager and useReactToolScheduler/mapToDisplay), so a committed tool_group's signature computes once per session; pending items are rebuilt by the scheduler on every state change, so misses are natural and entries die with their keys. Reference-keying also matches the existing sourceCopyOffsetsByHistoryItem pattern in this file.

[rv:4966112501] review body (CHANGES_REQUESTED) — no separate action required.
Its single listed item is explicitly deferred by the reviewer ("recorded, not requested in this round"): zero loop-path test coverage of the committed-collision guard. This round's Critical fix and its regression tests land exactly there — the dedup loop's committed branch is now exercised by tests pinning both outcomes (the surviving earlier colliding row and the dropped stale copy).

[rv:4966034307] review body (COMMENTED) — no action. States "nothing further to act on here" (three unanchorable suggestions were dropped by that run).

[ic:5333680838] issue-level fallback comment — no action. Informational notice that an earlier review run crashed; transient, retried automatically.

Notes

  • Pre-existing environment failure, NOT caused by this round (evidence below): Footer.test.tsx has 4 failing tests in this containerized runner because the status line renders a docker segment that truncates the hint row / golden snapshots. Reproduced identically with this round's changes temporarily removed (pre-round HEAD), so it is left untouched — it is outside this PR's footprint.
  • No conflict handling needed (--conflict false); no base merge performed.

Verification

Commands actually run (from the repository root unless noted; all exit 0 unless stated):

  • npm run build — passed (run before testing and again on the final tree).
  • npm run typecheck — passed.
  • npm run lint — passed.
  • cd packages/cli && npx vitest run src/ui/components/MainContent.test.tsx — 32/32 passed. Before the fix the same run showed 3 of the 4 new tests failing, reproducing the Critical collision, the non-adjacent pending duplicate, and the comma-join ambiguity (output matched the finding's probe witness exactly).
  • cd packages/cli && npx vitest run src/ui/components/ — 2143 passed, 1 skipped, 4 failed; the 4 failures are the pre-existing Footer.test.tsx environment failures reproduced on pre-round HEAD (see Notes).
  • Integration tests: not run — the changed behavior is a component render path fully exercised by the unit tests above, not behavior only reachable through the bundled CLI or integration harness.
  • npm run generate:settings-schema: not applicable — no settings source changed.
中文说明

Autofix 审查轮次 — PR #9421

提交:2946b9ab5afix(ui): drop only the latest committed tool_group copy on callId collision (#9420)(2 个文件,+142/−45)

反馈点及处置

[rc:3808214007] [Critical] R3-1:callId 签名冲突导致已提交的 tool_group 行被隐藏 — 已解决。
在修改任何代码之前先完成复现:新增一个聚焦测试(已提交批次 id 1id 3 和实时 pending 批次共享同一 callId),该测试在修复前的代码上失败,且与 finding 中的证据完全一致 —— 观察到 [MIN_SAFE, 2, -1](已提交的 id 1 被静默丢弃),期望为 [MIN_SAFE, 1, 2, -1]。修复方式:去重现在只丢弃每个实时 pending 签名所对应的最新一条已提交行(刚提交的过期副本总是最新追加的匹配项),而不再丢弃所有签名匹配的已提交行。callId 恰好冲突的更早提交批次 —— 如核心历史压缩后重新铸造的 id、provider 复用 wire id —— 将继续正常渲染。

[rc:3808149681] [Suggestion] pending 列表去重仅检查相邻项 — 已解决。
同样在修复前完成复现(两个相同的 pending 副本被一个 thought 项隔开时都会渲染:[MIN_SAFE, -1, -2, -3])。重构后的去重逻辑在 pending 列表内按签名保留最新副本,无论副本之间隔着什么项。幸存副本保留其原始位置 id,因为 renderVirtualItem 依赖该 id 查找 pending 的 source-copy 偏移。

[rc:3808149689] [Suggestion] join(',') 签名歧义 — 已解决。
签名现在改为对排序后的 callIds 做 JSON.stringify,即使 callId 含逗号,对字符串数组而言也是无歧义的。修复前复现了歧义折叠:已提交的单工具批次 ['a,b'] 被错误地与 pending 的双工具批次 ['a','b'] 折叠;现在两者都会渲染。

[rc:3808149693] [Suggestion] 多工具签名排序未被测试 — 已解决。
共享 fixture 现在接受可变参数 callIds(所有现有调用点不变),并新增一个测试:将已提交的 [call-A, call-B] 组与 pending 的 [call-B, call-A] 副本折叠 —— 固化了 .sort(),防止未来重构时被静默移除。

[rc:3808214023] [Suggestion] R2-1:每 tick 重算签名 / 全列表遍历 — 已解决。
livePendingSigs 现在直接遍历 pendingHistoryItems 构建,因此不存在 pending tool_group 的 tick 会在任何全历史遍历之前提前返回,且 pending 签名遍历不再走遍整个合并列表。已提交项的签名缓存在模块级 WeakMap 中,以项引用为键:历史项是稳定引用,变更时是被替换而从不被原地修改(已在 useHistoryManageruseReactToolScheduler/mapToDisplay 中核实),因此已提交 tool_group 的签名每个会话只计算一次;pending 项在调度器每次状态变更时都会重建,因此缓存未命中是自然的,条目随键一起被回收。按引用建键也与本文件中既有的 sourceCopyOffsetsByHistoryItem 模式一致。

[rv:4966112501] 审查主体(CHANGES_REQUESTED)— 无需单独处理。
其列出的唯一一项已被审查者明确延后("已记录,本轮不要求修改"):已提交冲突守卫的循环路径零测试覆盖。本轮的 Critical 修复及其回归测试恰好落在该处 —— 去重循环的已提交分支现在由测试覆盖,且固化了两种结果(幸存的更早冲突行与被丢弃的过期副本)。

[rv:4966034307] 审查主体(COMMENTED)— 无需处理。 其声明 "nothing further to act on here"(该次运行丢弃了 3 条无法锚定的建议)。

[ic:5333680838] issue 级兜底评论 — 无需处理。 关于早前一次审查运行崩溃的告知性说明;属瞬时错误,会自动重试。

备注

  • 预先存在的环境性失败,本轮引入(证据见下):Footer.test.tsx 在本容器化 runner 上有 4 个测试失败,原因是 status line 渲染出 docker 段,导致提示行被截断 / 黄金快照不匹配。在本轮更改被临时移除后(pre-round HEAD)做了相同复现,失败完全一致,故不处理 —— 它不在本 PR 的足迹范围内。
  • 无需处理冲突(--conflict false);未执行 base 合并。

验证

实际执行的命令(未注明时均在仓库根目录执行;除特别说明外退出码均为 0):

  • npm run build — 通过(测试前执行一次,最终代码状态又执行一次)。
  • npm run typecheck — 通过。
  • npm run lint — 通过。
  • cd packages/cli && npx vitest run src/ui/components/MainContent.test.tsx — 32/32 通过。修复前同一命令显示 4 个新测试中有 3 个失败,分别复现了 Critical 冲突、非相邻 pending 重复、逗号拼接歧义(输出与 finding 的探针证据完全一致)。
  • cd packages/cli && npx vitest run src/ui/components/ — 2143 通过、1 跳过、4 失败;4 个失败即上述 Footer.test.tsx 预先存在的环境性失败(已在 pre-round HEAD 复现,见备注)。
  • 集成测试:未执行 —— 被改动的行为是组件渲染路径,已由上述单元测试完整覆盖,并非只能通过打包 CLI 或集成测试框架验证的行为。
  • npm run generate:settings-schema:不适用 —— 未改动任何 settings 源。

Base-conflict check · 基分支冲突检查: no conflict with main. · 与 main 无冲突。

Re-review when you have a moment. After round 10 this bot stops and leaves the PR for a human. · 有空请复审;第 10 轮后本 bot 停止并将 PR 交给人工。


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

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

Partially reviewed — gaps disclosed.

Not reviewed: build-and-test — Integration Tests (CLI, No Sandbox) was skipped in CI and its suite did not run locally.

中文说明

仅完成部分审查,审查缺口已披露。

未审查:build-and-test — Integration Tests (CLI, No Sandbox) was skipped in CI and its suite did not run locally。

— qwen3.8-max via Qwen Code /review (v0.21.13)

keptPendingBySig.set(sig, item);
}
}
for (const item of latestCommittedBySig.values()) dropped.add(item);

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.

[Critical] R3-1: callId-signature collision still hides committed tool_group rows — the round-3 fix ("drop only the LATEST committed match for a live pending signature") holds only AFTER the live batch commits. Before onComplete commits it, the batch has no stale committed copy yet, so the unrelated earlier committed row whose callIds merely collide IS the latest (often only) match, and this line drops it — an executed tool batch disappears from the rendered transcript for its whole execution window. — Failure scenario: full core-history compaction replaces core history while the TUI display history stays intact (handleChatCompressionEvent only adds an info item); usedToolCallIds is re-seeded per-send from the post-compaction core history (geminiChat.ts:4456), so the next turn's first call re-mints call_qwen_1. From scheduling until commit of that new batch — its whole execution, minutes for a slow shell/build tool — the pre-compaction committed row holding call_qwen_1 is filtered out of the rendered list, silently reappearing only after the new batch commits. Provider wire-id reuse across turns reaches the same shape. Pre-diff both rows rendered (duplicated but visible); the diff turns the collision into silent disappearance, violating issue #9420's expectation that each tool call renders exactly once.

Witness (probe against the real component):

history=[tool_group(id 1, 'dup-call')], pending=[tool_group('dup-call')] (no committed stale copy)
expected [ -9007199254740991, 1, -1 ] — received [ -9007199254740991, -1 ]   <- committed id 1 dropped
flip (drop loop disabled): [ -9007199254740991, 1, -1 ] passes

Suggested fix: give the collapse a real batch identity instead of inferring it from callIds — mint a batchId when the batch is scheduled, stamp it onto both the pending display group and the item committed by onComplete, and collapse only rows sharing that batchId (R3-1 option (a)); or fix the lifecycle seam (clear/replace the scheduler display state at commit time) so the two copies never coexist. If the signature heuristic stays, first add a regression test for the pre-commit shape (single committed colliding row + live pending batch, no stale copy) — it currently fails.

中文说明

[Critical] R3-1:callId 签名冲突仍会隐藏已提交的 tool_group 行 —— 第 3 轮修复("只丢弃与实时 pending 签名匹配的最新一条已提交行")仅在该批次提交之后成立。onComplete 提交之前,实时批次在 history 中还没有过期副本,此时 callId 恰好冲突的无关已提交行就是最新(往往也是唯一)的匹配项,被这一行丢弃 —— 一个已执行的工具批次在整个执行窗口内从渲染结果中消失。— 失败场景:完全压缩替换核心历史而 TUI 展示历史保持不变(handleChatCompressionEvent 仅追加 info 项);usedToolCallIds 每次发送都以压缩后的核心历史重新播种(geminiChat.ts:4456),于是下一回合的第一个调用重新铸出 call_qwen_1。从新批次被调度到提交之间(整个执行期,慢速 shell/构建工具可达数分钟),压缩前那条持有 call_qwen_1 的已提交行被过滤出渲染列表,直到新批次提交后才悄悄恢复。provider 跨回合复用 wire id 会触发同样形态。diff 之前两行都会渲染(重复但可见);本改动把冲突变成了静默消失,违背 issue #9420 "每个工具调用恰好渲染一次" 的预期。

证据(针对真实组件的探针):

history=[tool_group(id 1, 'dup-call')], pending=[tool_group('dup-call')](无已提交过期副本)
expected [ -9007199254740991, 1, -1 ] — received [ -9007199254740991, -1 ]   <- 已提交 id 1 被丢弃
flip(禁用丢弃循环): [ -9007199254740991, 1, -1 ] 通过

建议修复:给折叠一个真实的批次身份,而不是从 callId 推断 —— 调度批次时铸造 batchId,同时盖在 pending 展示组与 onComplete 提交的项上,仅折叠共享该 batchId 的行(R3-1 方案 (a));或修复生命周期接缝(提交时清空/替换调度器展示状态),使两份副本永不共存。若暂留签名启发式,先补一个提交前形态的回归测试(单个冲突已提交行 + 实时 pending 批次、无过期副本)—— 它当前会失败。

— qwen3.8-max via Qwen Code /review (v0.21.13)

// history. Earlier committed rows sharing the signature are distinct
// executions whose callIds merely collide (ids re-minted after core
// history compaction, provider wire-id reuse) and must keep rendering.
const latestCommittedBySig = new Map<string, VpItem>();

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] No test exercises two DISTINCT live pending tool_group signatures at once, so the per-signature keying of latestCommittedBySig / keptPendingBySig is unpinned — Concrete cost: probe-confirmed: replacing the sig-keyed Map with a single "latest committed match" slot survives all nine #9420 tests, yet a real input discriminates it: history=[batchA_committed, batchB_committed], pending=[batchA, batchB] should render [banner, -1, -2], but the mutant renders [banner, 1, -1, -2], resurrecting the #9420 duplicate for the older batch.

Witness (probe):

single-slot mutant vs suite: 9 passed | 25 skipped (34)   <- mutant survives all nine #9420 tests
pinning test vs mutant: expected [ -9007199254740991, -1, -2 ] — received [ -9007199254740991, 1, -1, -2 ]

Suggested fix — add one test with two live batches each having a committed counterpart:

renderMainContent(
  createUIState({
    history: [
      { id: 1, ...toolGroupFixture('call-A') },
      { id: 2, ...toolGroupFixture('call-B') },
    ],
    pendingHistoryItems: [toolGroupFixture('call-A'), toolGroupFixture('call-B')],
  }),
);
expect(lastVpDataIds()).toEqual([Number.MIN_SAFE_INTEGER, -1, -2]);
中文说明

[Suggestion] 没有任何测试同时验证两个不同的实时 pending tool_group 签名,因此 latestCommittedBySig / keptPendingBySig 的按签名键控未被固化 —— 具体代价:探针确认:把按签名的 Map 替换为单个"最新已提交匹配"槽位后,全部九个 #9420 测试依然通过,但真实输入可以区分二者:history=[batchA_committed, batchB_committed]、pending=[batchA, batchB] 应渲染 [banner, -1, -2],而变异体渲染 [banner, 1, -1, -2],让较早批次的 #9420 重复渲染复活。

证据(探针):

单槽位变异体 vs 测试套件: 9 passed | 25 skipped (34)   <- 变异体在全部九个 #9420 测试下存活
固化测试 vs 变异体: expected [ -9007199254740991, -1, -2 ] — received [ -9007199254740991, 1, -1, -2 ]

建议修复 —— 新增一个两个实时批次各有已提交对应项的测试:

renderMainContent(
  createUIState({
    history: [
      { id: 1, ...toolGroupFixture('call-A') },
      { id: 2, ...toolGroupFixture('call-B') },
    ],
    pendingHistoryItems: [toolGroupFixture('call-A'), toolGroupFixture('call-B')],
  }),
);
expect(lastVpDataIds()).toEqual([Number.MIN_SAFE_INTEGER, -1, -2]);

— qwen3.8-max via Qwen Code /review (v0.21.13)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

review/self-reported The linked issue was opened by the PR author (self-reported)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

bug(ui): in-flight tool call rendered twice until the next tool call arrives (history + pending double-include)

4 participants