Skip to content

perf(serve): Restore large sessions selectively - #9055

Merged
doudouOUC merged 5 commits into
mainfrom
perf/issue-8678-selective-session-restore
Aug 13, 2026
Merged

perf(serve): Restore large sessions selectively#9055
doudouOUC merged 5 commits into
mainfrom
perf/issue-8678-selective-session-restore

Conversation

@doudouOUC

Copy link
Copy Markdown
Collaborator

What this PR does

This PR implements the selective daemon session restore contract designed in #8743. Cold loadSession and resumeSession now build one transcript index and read only the records needed to reconstruct model/runtime state and the requested replay projection, instead of materializing the complete JSONL conversation before applying replay pagination.

The projection preserves active-chain semantics for compressed and legacy model history, recording ancestry, interrupted turns, FileHistory, artifacts, Goals and checkpoint evidence, attribution, telemetry, cumulative usage, source metadata, and background notifications. Writer-lease restores acquire the authoritative projection after ownership is established, while live-session refreshes reuse a narrower cached projection under the existing recorder barrier. Runtime hydration, response construction, Session publication, rollback, and delayed Goal/FileHistory/attribution activation remain behind the existing transaction boundaries.

Explicit response-mode loads with historyPageSize now select a bounded recent replay before payload reads, return pagination metadata, and reject a transformed replay envelope above 32 MiB or 10,000 updates before publishing the Session. Loads that omit historyPageSize preserve full visible replay compatibility. Resume-only channel and scheduled-task callers now use the no-history resume path. Hidden inherited Goal state is restored for runtime correctness but fenced from client presentation until a visible replacement is created.

The cold index has a 256 MiB source-byte ceiling and cooperative record-boundary scheduling. This PR does not add durable resume checkpoints, worker-thread parsing, or streaming JSON parsing, so a legacy transcript still requires one complete index scan and a single large JSON record remains an indivisible parse interval.

Why it's needed

Issue #8678 showed that a large persisted session could exceed the restore deadline even when the client requested only recent history. The old cold path fully materialized and reconstructed the JSONL transcript before applying historyPageSize, and writer-lease activation could perform another full read. That made restore latency and peak allocation scale with the whole transcript and could delay sibling sessions sharing the ACP child.

The timeout safety, transactional WebUI switching, attachment fencing, and exact request-shape prerequisites have already landed. This PR supplies the performance layer: one selective projection becomes the authoritative handoff from persistence to Config and Session setup, while preserving existing failure isolation and public compatibility.

Reviewer Test Plan

How to verify

  1. Restore a persisted session through load with a small explicit historyPageSize. Confirm the response contains only the aligned recent page, reports historyHasMore and historyAnchorRecordId when older records exist, and the restored Session remains promptable.
  2. Restore the same session without historyPageSize. Confirm full visible replay is preserved for compatibility and is not coalesced with the bounded request shape.
  3. Resume a channel or scheduled-task session. Confirm runtime state is restored without replaying historical UI updates and the session remains operational.
  4. Exercise compressed and uncompressed transcripts, rewind/fork and side-task lineage, interrupted tool pairs, FileHistory, artifacts, Goals, attribution, telemetry, and background notifications. Confirm the projected runtime matches the legacy full loader, including active-chain selection and malformed-record failure semantics.
  5. With hideInheritedHistory, place a newer inherited Goal behind an older visible Goal. Confirm runtime recovery remains correct while the client sees only the visible Goal; active recovery broadcasts for the hidden Goal must remain fenced until a different Goal replaces it.
  6. Trigger the 256 MiB transcript bound and the explicit recent replay 32 MiB/10,000-update bounds. Confirm typed restore failures occur before Session publication, writer ownership and cleanup remain correct, and a registered sibling session stays usable.
  7. Run the affected Core, CLI, ACP bridge, and channel-base test files, then run repository build, typecheck, lint, and bundle. All should pass.

Evidence (Before & After)

Before: replay pagination was applied only after the full persisted JSONL had been materialized and reconstructed, so a recent-page request still paid the full cold-load cost and could exceed the restore deadline described in #8678.

After: the final bundled CLI restored two 30,000-record fixtures of 86.18–86.21 MB with historyPageSize: 2. The empty-channel run returned 200 in 1,350 ms with historyHasMore=true; the shared-channel run returned 200 in 651 ms, and its registered sibling returned 200 both during and after the restore. Both daemons advertised the 60,000 ms restore budget and exited cleanly. These fixtures contain no compression record, so this evidence demonstrates bounded UI replay and sibling continuity, not a universal memory reduction for every uncompressed transcript.

Tested on

OS Status
🍏 macOS ✅ tested
🪟 Windows ⚠️ not tested
🐧 Linux ⚠️ not tested

Environment (optional)

macOS Darwin 25.4.0 arm64; Node.js v26.0.0; npm 11.12.1; final commit a8bde6832c; bundled CLI SHA-256 f5818498a2716ffd9d70839ebc7a9e3be7bff3252b541c2c20d1eb4f06a625dd.

Risk & Scope

  • Main risk or tradeoff: This is a large Core and cross-package feature change (28 production files, approximately 3,900 added and 1,048 deleted production lines), so maintainer architectural review is required. Please explicitly review the 256 MiB transcript ceiling, the 32 MiB transformed recent-replay ceiling, the 10,000-update ceiling, active-chain reducer parity, writer-lease timing, and hidden-Goal presentation fence. A cold legacy restore still scans the complete transcript once, and cooperative yielding cannot preempt one large synchronous JSON parse.
  • Not validated / out of scope: Windows and Linux E2E; durable checkpoint/sidecar restore; worker-thread or streaming JSON parsing; a machine-independent latency gate; export, fork/branch, TUI and non-interactive full-content readers; and a general memory-reduction claim for uncompressed transcripts. The approximately 80 MiB manual fixture has no compression record and is evidence only.
  • Breaking changes / migration notes: No public success schema or caller migration is required. Clients that omit historyPageSize keep full visible replay. Explicit recent loads can now fail with the documented transcript/replay limit errors rather than allocating an unbounded response. The internal cold transcript index rejects snapshots above 256 MiB pending explicit maintainer sign-off.

Linked Issues

References #8678

Implements the design approved in #8743. Prerequisites #8691, #8833, #8882, #8933, #8939, and #8990 are merged.

中文说明

本 PR 做了什么

本 PR 实现 #8743 设计的 daemon 会话选择性恢复契约。冷 loadSessionresumeSession 现在只构建一次 transcript 索引,并仅读取重建模型/运行态与所请求 replay projection 所需的记录,不再先物化完整 JSONL 会话再应用 replay 分页。

projection 保留 compressed 与 legacy 模型历史、recording 祖先关系、中断 turn、FileHistory、artifact、Goal 与 checkpoint evidence、attribution、telemetry、累计 usage、source metadata 和后台通知的 active-chain 语义。使用 writer lease 的恢复会在所有权建立后获取权威 projection,live-session refresh 则在既有 recorder barrier 下复用更窄的缓存 projection。运行态 hydration、响应构建、Session 发布、回滚以及延迟的 Goal/FileHistory/attribution 激活继续受既有事务边界保护。

显式携带 historyPageSize 的 response-mode load 现在会在读取 payload 前选择有界 recent replay,返回分页 metadata,并在发布 Session 前拒绝超过 32 MiB 或 10,000 条 update 的转换后 replay envelope。省略 historyPageSize 的 load 继续保留完整可见 replay 兼容性。只需要恢复运行态的 channel 和 scheduled-task 调用方改用无历史 replay 的 resume 路径。隐藏的 inherited Goal 状态仍会为运行时正确性恢复,但会被隔离于客户端展示之外,直到创建新的可见替代 Goal。

冷索引设置 256 MiB source-byte 上限,并在记录边界协作式让出调度。本 PR 不增加持久 resume checkpoint、worker-thread 解析或 streaming JSON 解析,因此 legacy transcript 仍需执行一次完整索引扫描,单条大型 JSON 记录也仍是不可分割的解析区间。

为什么需要

Issue #8678 表明,即使客户端只请求最近历史,大型持久会话仍可能超过恢复截止时间。旧冷路径会在应用 historyPageSize 前完整物化并重建 JSONL transcript,而 writer-lease 激活还可能再次执行全量读取。这使恢复时延和峰值分配随整个 transcript 增长,并可能延迟共享 ACP child 的 sibling session。

超时安全、事务式 WebUI 切换、attachment fencing 和精确 request-shape 等前置工作已经合入。本 PR 补齐性能层:一个选择性 projection 成为持久层到 Config 与 Session setup 的权威交接,同时保留既有失败隔离和公开兼容性。

Reviewer 测试计划

验证方式

  1. 通过 load 和较小的显式 historyPageSize 恢复一个持久会话。确认响应只包含 turn 对齐的最近页面;存在更早记录时报告 historyHasMorehistoryAnchorRecordId;恢复后的 Session 仍可 prompt。
  2. 省略 historyPageSize 恢复同一会话。确认继续保留完整可见 replay 兼容性,且不会与有界请求 shape 合并。
  3. 恢复 channel 或 scheduled-task 会话。确认在不 replay 历史 UI update 的情况下恢复运行态,且会话继续可用。
  4. 覆盖 compressed 与 uncompressed transcript、rewind/fork 与 side-task lineage、中断 tool pair、FileHistory、artifact、Goal、attribution、telemetry 和后台通知。确认 projected runtime 与 legacy full loader 一致,包括 active-chain 选择和 malformed-record 失败语义。
  5. hideInheritedHistory 下,让一个较新的 inherited Goal 位于较旧的可见 Goal 之后。确认运行态恢复仍正确,而客户端只看到可见 Goal;隐藏 Goal 的 active recovery broadcast 必须持续被隔离,直到不同的 Goal 替代它。
  6. 触发 256 MiB transcript 上限和显式 recent replay 的 32 MiB/10,000-update 上限。确认 typed restore failure 发生在 Session 发布前,writer ownership 和清理仍正确,并且已注册的 sibling session 保持可用。
  7. 运行受影响的 Core、CLI、ACP bridge 和 channel-base 测试文件,再运行仓库 build、typecheck、lint 和 bundle。所有检查都应通过。

证据(Before & After)

Before:replay 分页只在完整持久 JSONL 已经被物化和重建后应用,因此 recent-page 请求仍需承担完整冷加载成本,并可能超过 #8678 描述的恢复截止时间。

After:最终 bundled CLI 使用 historyPageSize: 2 恢复了两份 30,000 records、86.18–86.21 MB 的 fixture。空通道运行在 1,350 ms 内返回 200 且 historyHasMore=true;共享通道运行在 651 ms 内返回 200,其已注册 sibling 在恢复期间和恢复后都返回 200。两个 daemon 都公布 60,000 ms 恢复预算并正常退出。这些 fixture 不包含 compression record,因此该证据只证明有界 UI replay 与 sibling 连续性,不代表所有 uncompressed transcript 都能获得通用内存下降。

测试平台

OS 状态
🍏 macOS ✅ 已测试
🪟 Windows ⚠️ 未测试
🐧 Linux ⚠️ 未测试

环境(可选)

macOS Darwin 25.4.0 arm64;Node.js v26.0.0;npm 11.12.1;最终 commit a8bde6832c;bundled CLI SHA-256 f5818498a2716ffd9d70839ebc7a9e3be7bff3252b541c2c20d1eb4f06a625dd

风险与范围

  • 主要风险或权衡:这是一个大型 Core 与跨 package feature 变更(28 个 production 文件,production 逻辑约增加 3,900 行、删除 1,048 行),因此需要 maintainer 进行架构评审。请明确评审 256 MiB transcript 上限、32 MiB 转换后 recent-replay 上限、10,000-update 上限、active-chain reducer 语义一致性、writer-lease 时序以及 hidden-Goal 展示 fence。冷 legacy restore 仍会完整扫描 transcript 一次,且 cooperative yield 无法抢占单条大型同步 JSON parse。
  • 未验证 / 不在范围内:Windows 与 Linux E2E;持久 checkpoint/sidecar restore;worker-thread 或 streaming JSON parsing;机器无关的时延门槛;export、fork/branch、TUI 和 non-interactive 全量内容 reader;以及对 uncompressed transcript 的通用内存下降声明。约 80 MiB 的手工 fixture 不包含 compression record,仅作为证据。
  • 破坏性变更 / 迁移说明:不要求修改公开成功 schema 或迁移调用方。省略 historyPageSize 的客户端继续获得完整可见 replay。显式 recent load 现在可能返回已记录的 transcript/replay limit error,而不是分配无上限响应。内部冷 transcript 索引会拒绝超过 256 MiB 的 snapshot,等待 maintainer 明确确认。

关联 Issue

References #8678

实现 #8743 批准的设计。前置 #8691#8833#8882#8933#8939#8990 均已合入。

doudouOUC and others added 2 commits August 13, 2026 13:23
Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
@doudouOUC

Copy link
Copy Markdown
Collaborator Author

E2E and benchmark report

Validated the final bundled CLI at commit a8bde6832c (dist/cli.js SHA-256 f5818498a2716ffd9d70839ebc7a9e3be7bff3252b541c2c20d1eb4f06a625dd) on macOS Darwin 25.4.0 arm64 with Node.js v26.0.0.

Scenario Transcript Result Restore wall time Daemon peak RSS ACP child peak RSS Sibling continuity
Empty ACP channel 30,000 records / 86,178,856 bytes HTTP 200; historyHasMore=true; anchor returned 1,350 ms 204,784 KiB 366,896 KiB N/A
Shared ACP child 30,000 records / 86,208,856 bytes HTTP 200; historyHasMore=true; anchor returned 651 ms 207,184 KiB 377,072 KiB Registered sibling status was HTTP 200 during and after restore

Both daemons advertised limits.sessionRestoreTimeoutMs=60000 and exited normally with code 0 after SIGTERM. The result artifacts are /tmp/qwen-selective-final-empty-a8bde6832c.json (SHA-256 0886bf0359f7a514efe3066644dd513630e9468962637ba82d925f57c32747a7) and /tmp/qwen-selective-final-shared-a8bde6832c.json (SHA-256 d3ae306bdf8e3903ddf6d3c4fcc0f5d40707d7d9b1afd37bbfb852e1d8e2b548).

Scope note: these fixtures intentionally have no compression record. They demonstrate bounded initial UI replay, pagination metadata, healthy outer-daemon shutdown, and registered sibling continuity. They do not establish a universal memory reduction for every uncompressed transcript, and wall time remains benchmark evidence rather than a CI threshold.

Verification summary

  • Core focused suite: 7 files / 1,274 tests passed.
  • CLI focused suite: 8 files / 1,515 tests passed.
  • ACP bridge: 575 tests passed.
  • Channel base: 39 tests passed.
  • Final related-file verification: CLI 1,005 tests and Core 216 tests passed.
  • npm run build, npm run typecheck, npm run lint, npm run bundle, git diff --check, and two consecutive broad clean diff audits passed.

@github-actions

github-actions Bot commented Aug 13, 2026

Copy link
Copy Markdown
Contributor

Code Coverage Summary

Package Lines Statements Functions Branches
CLI 84.08% 84.08% 89.98% 83.31%
Core 87.93% 87.93% 89.48% 86.49%
CLI Package - Full Text Report
-------------------|---------|----------|---------|---------|-------------------
File               | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s 
-------------------|---------|----------|---------|---------|-------------------
All files          |   84.08 |    83.31 |   89.98 |   84.08 |                   
 src               |   85.27 |    81.44 |   87.61 |   85.27 |                   
  cli.ts           |   95.68 |    84.11 |     100 |   95.68 | ...60-561,565-566 
  gemini.tsx       |   73.75 |    79.33 |   80.76 |   73.75 | ...1319-1323,1450 
  ...ractiveCli.ts |   87.19 |    81.33 |   88.13 |   87.19 | ...2972,2978,3043 
  ...liCommands.ts |   88.64 |    82.83 |      80 |   88.64 | ...77-579,593,692 
  ...ActiveAuth.ts |     100 |     87.5 |     100 |     100 | 66-80             
 ...cp-integration |   71.63 |    73.99 |   91.49 |   71.63 |                   
  acpAgent.ts      |   71.02 |    73.78 |   91.03 |   71.02 | ...09,12614-12616 
  ...k-reporter.ts |     100 |    80.95 |     100 |     100 | 77,80,115,135     
  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 |    86.45 |   96.24 |      91 |                   
  Session.ts       |   90.28 |    84.79 |   95.79 |   90.28 | ...19,11346-11350 
  ...entTracker.ts |    96.8 |    89.36 |      90 |    96.8 | 137-143,221       
  ...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.46 |    90.62 |     100 |   94.46 | ...05-108,135-145 
  ...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.75 |     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.7 |    93.37 |   96.87 |    95.7 |                   
  ...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 |   99.18 |    96.47 |     100 |   99.18 | 355-356           
 ...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.81 |    79.71 |   66.66 |   90.81 |                   
  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.66 |      100 |      50 |   98.66 | 86                
  serve.ts         |   89.84 |    77.45 |     100 |   89.84 | ...52,855-858,870 
  sessions.ts      |     100 |      100 |      50 |     100 |                   
  update.ts        |   98.13 |    94.44 |   66.66 |   98.13 | 82-83             
 ...mmands/channel |   88.95 |    88.55 |   90.59 |   88.95 |                   
  channel-cwd.ts   |     100 |      100 |     100 |     100 |                   
  ...l-registry.ts |   94.11 |    95.45 |   88.88 |   94.11 | ...54-257,302-305 
  ...entry-path.ts |      75 |       50 |     100 |      75 | 8-9               
  config-utils.ts  |   95.87 |    96.35 |     100 |   95.87 | ...08-213,271-274 
  configure.ts     |    14.7 |      100 |       0 |    14.7 | 18-21,23-84       
  daemon-worker.ts |   93.91 |    85.55 |   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 |   87.64 |    88.29 |   88.45 |   87.64 |                   
  agent-prompt.ts  |   93.73 |     92.4 |   97.22 |   93.73 | ...2524,2649-2729 
  base-tree.ts     |   76.16 |    80.76 |   77.77 |   76.16 | ...50-371,373-386 
  capture-local.ts |   68.57 |     90.9 |      75 |   68.57 | 107-111,158-189   
  ...k-coverage.ts |   50.71 |       35 |   66.66 |   50.71 | ...40-245,279-289 
  cleanup.ts       |   89.12 |    82.22 |   83.33 |   89.12 | ...99-504,506-507 
  ...ent-status.ts |   93.03 |    83.87 |   83.33 |   93.03 | 291,531-551       
  ...ose-review.ts |   96.99 |    93.17 |   96.66 |   96.99 | ...2203,2231-2253 
  cost-ledger.ts   |   94.67 |    95.86 |   78.57 |   94.67 | ...04-505,545-555 
  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-pr.ts      |    76.7 |    68.75 |   63.63 |    76.7 | ...95,417,450-455 
  findings.ts      |   89.35 |    89.13 |   95.45 |   89.35 | ...15-918,927-928 
  load-rules.ts    |   26.41 |      100 |   16.66 |   26.41 | ...41-153,155-156 
  match-remote.ts  |   85.54 |     92.3 |   66.66 |   85.54 | 67-72,131-136     
  mock-provider.ts |   95.44 |    90.25 |   89.47 |   95.44 | 145,690-709       
  parse-args.ts    |   99.66 |    96.55 |     100 |   99.66 | 404               
  plan-diff.ts     |   64.04 |      100 |   66.66 |   64.04 | 127-163           
  pr-context.ts    |   81.77 |    80.86 |   92.85 |   81.77 | ...1043,1072-1074 
  presubmit.ts     |   83.75 |    92.72 |   88.88 |   83.75 | ...77-578,655-685 
  ...ish-assets.ts |   77.18 |    82.14 |   71.42 |   77.18 | ...85-531,533-544 
  repo-context.ts  |   94.92 |    90.82 |     100 |   94.92 | ...67-368,376-377 
  ...ve-anchors.ts |   77.77 |    88.88 |      75 |   77.77 | ...77-182,194-211 
  run.ts           |   82.16 |    87.12 |   91.66 |   82.16 | ...52,468-516,529 
  save-artifact.ts |    89.9 |    81.81 |   94.11 |    89.9 | ...08-311,404-407 
  script-lint.ts   |   81.14 |    79.23 |   88.88 |   81.14 | ...59-773,775-797 
  submit.ts        |   83.77 |    83.95 |      90 |   83.77 | ...55,544,571-607 
  test-delta.ts    |   87.13 |    91.46 |      75 |   87.13 | 206-237,477-485   
  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.46 |    95.03 |   98.32 |   97.46 |                   
  agent-briefs.ts  |   98.98 |      100 |      50 |   98.98 | 735-736           
  anchors.ts       |     100 |    94.79 |     100 |     100 | ...33,169,178,225 
  assets.ts        |     100 |      100 |     100 |     100 |                   
  audit-layers.ts  |   99.04 |    97.36 |     100 |   99.04 | 223-224           
  authorization.ts |    92.4 |    92.59 |     100 |    92.4 | 127-133           
  budget.ts        |     100 |    97.14 |     100 |     100 | 513,553           
  coverage.ts      |   96.81 |    94.42 |     100 |   96.81 | ...85-486,526-537 
  deadline.ts      |   98.33 |    93.61 |     100 |   98.33 | ...88,237,629,661 
  diff-flags.ts    |     100 |        0 |     100 |     100 | 63                
  diff-plan.ts     |   98.73 |    93.01 |     100 |   98.73 | ...41,264,290-291 
  disk.ts          |     100 |      100 |     100 |     100 |                   
  effort.ts        |     100 |      100 |     100 |     100 |                   
  gh.ts            |   87.07 |    92.45 |   76.47 |   87.07 | ...72,309-310,337 
  git.ts           |   97.64 |    95.65 |     100 |   97.64 | 180-181           
  heavy.ts         |     100 |      100 |     100 |     100 |                   
  inline-counts.ts |     100 |      100 |     100 |     100 |                   
  ...audit-gate.ts |     100 |    96.15 |     100 |     100 | 107               
  ledger.ts        |     100 |      100 |     100 |     100 |                   
  local-diff.ts    |    84.4 |    88.46 |     100 |    84.4 | ...63-473,475-483 
  ...ry-context.ts |   96.19 |    94.93 |     100 |   96.19 | ...90-491,496-499 
  merge-base.ts    |     100 |      100 |     100 |     100 |                   
  npm-toolchain.ts |   97.36 |    95.37 |     100 |   97.36 | ...86,409,770,787 
  path-rules.ts    |     100 |      100 |     100 |     100 |                   
  paths.ts         |     100 |     87.5 |     100 |     100 | 92                
  prompt-record.ts |   97.88 |    93.87 |     100 |   97.88 | 260-261,267       
  receipt.ts       |     100 |      100 |     100 |     100 |                   
  remote-match.ts  |   97.26 |    91.42 |     100 |   97.26 | 49-50             
  report.ts        |   94.68 |    93.75 |     100 |   94.68 | 189-193           
  ...ry-context.ts |     100 |    98.66 |     100 |     100 | 184               
  retirement.ts    |     100 |    92.39 |     100 |     100 | ...28,308-309,449 
  review-footer.ts |     100 |      100 |     100 |     100 |                   
  roster.ts        |     100 |    95.71 |     100 |     100 | 145,163,208       
  shell-quote.ts   |     100 |      100 |     100 |     100 |                   
  stale-bundle.ts  |   98.11 |    94.04 |     100 |   98.11 | 416,457,497-498   
  test-utils.ts    |     100 |      100 |     100 |     100 |                   
  toolchain.ts     |     100 |      100 |     100 |     100 |                   
  transcripts.ts   |   96.59 |    94.56 |     100 |   96.59 | ...08,297-298,323 
  ...pace-scope.ts |     100 |    96.96 |     100 |     100 | 172               
  workspaces.ts    |     100 |    96.77 |     100 |     100 | 222,452,499,512   
  worktree.ts      |     100 |      100 |     100 |     100 |                   
 ...mands/sessions |   91.56 |    86.95 |   83.33 |   91.56 |                   
  common.ts        |     100 |      100 |     100 |     100 |                   
  list.ts          |   90.96 |    86.66 |   81.81 |   90.96 | 208-219,221-222   
 src/config        |    94.9 |    89.86 |   96.28 |    94.9 |                   
  ...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 |   88.75 |    76.19 |     100 |   88.75 | ...3,90-92,98,101 
  ...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.54 |      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.4 |     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          |   85.98 |    81.92 |   89.65 |   85.98 |                   
  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.12 |    94.18 |   95.29 |   98.12 |                   
  ...putAdapter.ts |   97.98 |    93.23 |   98.07 |   97.98 | ...1416,1432-1433 
  ...putAdapter.ts |      96 |    91.66 |   85.71 |      96 | 51-52             
  ...nputReader.ts |     100 |    94.73 |     100 |     100 | 67                
  ...putAdapter.ts |   98.49 |      100 |   90.47 |   98.49 | 85-86,126-127     
  ...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         |   87.57 |    83.86 |   90.51 |   87.57 |                   
  ...tp-enabled.ts |     100 |      100 |     100 |     100 |                   
  ...ion-bridge.ts |     100 |      100 |     100 |     100 |                   
  auth.ts          |   93.43 |    93.05 |     100 |   93.43 | ...20-321,324-326 
  ...em-adapter.ts |     100 |      100 |     100 |     100 |                   
  capabilities.ts  |     100 |    98.07 |     100 |     100 | 679               
  ...cp-command.ts |     100 |      100 |     100 |     100 |                   
  ...horization.ts |   92.79 |    93.33 |    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 |   88.59 |    93.65 |   96.29 |   88.59 | ...95-207,451-454 
  ...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.1 |    77.83 |   94.73 |    90.1 | ...1014,1021-1026 
  daemon-logger.ts |    82.2 |    77.42 |   91.76 |    82.2 | ...1720,1747-1753 
  ...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.57 |     90.8 |     100 |   98.57 | ...1411,1413-1414 
  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 |    86.95 |     100 |   92.06 | ...72,287-293,316 
  ...-path-argv.ts |     100 |      100 |     100 |     100 |                   
  ...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-144             
  ...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 |   84.06 |    80.14 |   75.43 |   84.06 | ...7481,7487-7488 
  ...tup-errors.ts |     100 |      100 |     100 |     100 |                   
  ...-keepalive.ts |   94.25 |    88.99 |     100 |   94.25 | ...28,532-533,572 
  ...-lifecycle.ts |     100 |      100 |     100 |     100 |                   
  server.ts        |   90.59 |    91.18 |   71.81 |   90.59 | ...2720,2734-2738 
  ...-admission.ts |   98.24 |     94.8 |     100 |   98.24 | 79-80,303-304     
  ...on-helpers.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 |   93.89 |     87.5 |     100 |   93.89 | ...18-519,525-526 
  ...e-remember.ts |   98.23 |    92.51 |     100 |   98.23 | ...36,340-345,386 
  ...te-runtime.ts |   83.98 |    90.29 |     100 |   83.98 | ...48-156,216-237 
  ...me-storage.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.26 |     100 |   91.63 | ...71-273,306-307 
 ...serve/acp-http |   78.26 |    80.02 |    93.1 |   78.26 |                   
  ...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 |    98.2 |    88.55 |     100 |    98.2 | 1015,1041-1052    
  dispatch.ts      |   73.87 |    77.71 |   94.23 |   73.87 | ...5240,5288-5294 
  index.ts         |   82.23 |    80.11 |   91.07 |   82.23 | ...2341,2425-2426 
  json-rpc.ts      |     100 |    96.96 |     100 |     100 | 92                
  safe-ws-send.ts  |   52.94 |    71.42 |     100 |   52.94 | 33-42,47-55       
  sse-stream.ts    |   93.96 |    88.57 |   84.61 |   93.96 | ...57-159,161-163 
  ...ort-stream.ts |       0 |        0 |       0 |       0 | 1                 
  ws-stream.ts     |   91.86 |       80 |     100 |   91.86 | 45,50,96,100-103  
 src/serve/auth    |   86.86 |     79.7 |   93.87 |   86.86 |                   
  device-flow.ts   |   96.35 |    80.57 |   97.61 |   96.35 | ...1358,1453,1519 
  ...w-provider.ts |   44.24 |    74.07 |   71.42 |   44.24 | ...23-284,297,301 
 ...rve/cdp-tunnel |   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             
 src/serve/fs      |   86.46 |    81.42 |     100 |   86.46 |                   
  audit.ts         |     100 |    96.15 |     100 |     100 | 204               
  errors.ts        |     100 |      100 |     100 |     100 |                   
  index.ts         |     100 |      100 |     100 |     100 |                   
  ...x-registry.ts |     100 |      100 |     100 |     100 |                   
  paths.ts         |   77.64 |    74.21 |     100 |   77.64 | ...65,594-598,611 
  policy.ts        |   90.42 |    89.18 |     100 |   90.42 | 161-169           
  text-cursor.ts   |   88.23 |       90 |     100 |   88.23 | 74-77,92-95       
  ...ile-system.ts |   86.27 |    80.56 |     100 |   86.27 | ...2699,2709-2710 
 src/serve/live    |   78.01 |    69.52 |   90.61 |   78.01 |                   
  ...en-context.ts |   95.74 |    81.25 |     100 |   95.74 | ...0,66-67,99-100 
  ...-workspace.ts |   88.63 |    82.53 |     100 |   88.63 | ...40-241,253-254 
  discovery.ts     |   85.77 |    76.92 |      90 |   85.77 | ...49-250,255-256 
  ...structions.ts |     100 |      100 |     100 |     100 |                   
  ...oordinator.ts |   82.67 |    76.75 |   97.01 |   82.67 | ...1319,1351-1353 
  ...-installer.ts |    64.3 |    82.35 |   80.76 |    64.3 | ...45-446,460-472 
  ...oordinator.ts |   75.99 |    65.18 |   85.71 |   75.99 | ...1883,1974-1975 
  ...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.3 |    59.78 |   93.33 |    86.3 | ...1160,1184-1191 
  ...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.83 |    77.58 |     100 |   94.83 | ...18,327-330,350 
  ...ion-source.ts |     100 |      100 |     100 |     100 |                   
  types.ts         |     100 |      100 |     100 |     100 |                   
 src/serve/routes  |   85.61 |    80.15 |   94.75 |   85.61 |                   
  a2ui-action.ts   |   96.84 |     88.5 |    87.5 |   96.84 | ...70-272,309-311 
  capabilities.ts  |     100 |      100 |     100 |     100 |                   
  ...nel-notify.ts |   86.45 |       88 |     100 |   86.45 | ...,83-87,103-104 
  ...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          |    82.4 |    71.42 |     100 |    82.4 | ...-94,96-101,121 
  permission.ts    |     100 |     92.3 |     100 |     100 | 50,98             
  ...uled-tasks.ts |   87.29 |    82.94 |   92.59 |   87.29 | ...1275,1318-1319 
  ...on-runtime.ts |     100 |    90.47 |     100 |     100 | 58,94             
  session.ts       |   85.79 |    82.27 |   91.54 |   85.79 | ...4938,4940-4941 
  sse-events.ts    |   86.82 |    85.71 |   94.11 |   86.82 | ...16-927,930,937 
  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.92 |    79.69 |     100 |   90.92 | ...81-482,501-502 
  ...d-contacts.ts |     100 |      100 |     100 |     100 |                   
  ...controller.ts |   83.11 |    79.31 |      90 |   83.11 | ...1033,1039,1042 
  ...extensions.ts |   88.15 |    75.19 |   92.98 |   88.15 | ...2027,2072-2073 
  ...-file-read.ts |      91 |    80.91 |     100 |      91 | ...20-621,624-625 
  ...file-write.ts |   84.44 |    64.51 |     100 |   84.44 | ...73-275,355-357 
  ...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 
  ...management.ts |   87.41 |    84.13 |     100 |   87.41 | ...1660,1680-1685 
  ...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 |   78.92 |    66.21 |      80 |   78.92 | ...38-343,351-352 
  ...pace-voice.ts |   91.33 |    80.92 |     100 |   91.33 | ...70-673,676-678 
 src/serve/server  |   91.75 |    89.37 |   96.95 |   91.75 |                   
  access-log.ts    |   98.68 |     97.1 |     100 |   98.68 | 115,186           
  ...er-helpers.ts |   63.82 |    77.96 |   81.81 |   63.82 | ...16,330,332-347 
  ...w-registry.ts |    98.8 |    81.81 |     100 |    98.8 | 107               
  ...r-handlers.ts |   97.29 |       75 |     100 |   97.29 | 17                
  ...r-response.ts |   86.54 |    72.48 |     100 |   86.54 | ...49,766,829-838 
  fs-factory.ts    |     100 |    94.54 |     100 |     100 | 42,103,159        
  ...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 |    73.33 |   33.33 |      65 | 30-35,38-43,47-48 
  ...st-helpers.ts |   95.13 |    95.09 |     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.55 |    87.72 |   97.14 |   89.55 | ...32-836,888-889 
  ...ion-export.ts |     100 |    94.44 |     100 |     100 | 64                
  session-list.ts  |   95.86 |    93.37 |     100 |   95.86 | ...-848,1026-1030 
  telemetry.ts     |   99.04 |    97.44 |     100 |   99.04 | ...37,651,793-795 
 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.65 |    87.73 |   91.11 |   90.65 |                   
  index.ts         |   90.13 |    87.04 |   89.74 |   90.13 | ...1464-1468,1471 
  types.ts         |     100 |      100 |     100 |     100 |                   
 src/services      |   92.49 |    89.25 |      98 |   92.49 |                   
  ...mandLoader.ts |     100 |    88.88 |     100 |     100 | 105-118           
  ...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 |   88.23 |    86.48 |     100 |   88.23 | ...94-199,232-233 
  ...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.24 |    75.52 |   67.03 |   73.24 |                   
  App.tsx          |   33.33 |       75 |   33.33 |   33.33 | 32-86             
  AppContainer.tsx |   74.45 |    72.04 |   68.57 |   74.45 | ...4188,4304-4310 
  ...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        |      60 |      100 |   35.29 |      60 | ...52,54-55,60-61 
  constants.ts     |     100 |      100 |     100 |     100 |                   
  keyMatchers.ts   |   95.91 |    97.14 |     100 |   95.91 | 25-26             
  ...tic-colors.ts |     100 |      100 |     100 |     100 |                   
  ...ractiveUI.tsx |   70.51 |       74 |    62.5 |   70.51 | ...12,339,392-397 
  ...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.35 |    83.55 |   89.88 |   83.35 |                   
  aboutCommand.ts  |     100 |      100 |     100 |     100 |                   
  agentsCommand.ts |   83.78 |      100 |      60 |   83.78 | 30-32,42-44       
  ...odeCommand.ts |    93.1 |    95.23 |     100 |    93.1 | 77-82             
  arenaCommand.ts  |   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 |   69.07 |     72.6 |   84.61 |   69.07 | ...78-611,622-623 
  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 |   71.96 |    79.54 |   79.56 |   71.96 |                   
  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 |       0 |        0 |       0 |       0 | 1-598             
  DiffDialog.tsx   |    53.5 |     37.5 |   69.23 |    53.5 | ...32-737,747-760 
  ...ngsDialog.tsx |       0 |        0 |       0 |       0 | 1-195             
  EffortDialog.tsx |   97.36 |      100 |     100 |   97.36 | 55-56             
  ExitWarning.tsx  |     100 |      100 |     100 |     100 |                   
  ...hProgress.tsx |    87.8 |    33.33 |     100 |    87.8 | 28-31,56          
  ...ustDialog.tsx |     100 |      100 |     100 |     100 |                   
  Footer.tsx       |   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.28 |    66.99 |     100 |   79.28 | ...08,511,514-520 
  ...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.58 |    95.06 |   46.15 |   95.58 | ...79,482-486,489 
  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 |       0 |        0 |       0 |       0 | 1-56              
  ...onsDialog.tsx |       0 |        0 |       0 |       0 | 1-1004            
  ...ryDisplay.tsx |     100 |      100 |     100 |     100 |                   
  ...icePrompt.tsx |   92.64 |    85.71 |     100 |   92.64 | 102-106,134-139   
  PrepareLabel.tsx |   91.66 |    77.27 |     100 |   91.66 | 73-75,77-79,110   
  ...atePrompt.tsx |       0 |        0 |       0 |       0 | 1-134             
  ...geDisplay.tsx |     100 |      100 |     100 |     100 |                   
  ...ngDisplay.tsx |       0 |        0 |       0 |       0 | 1-39              
  ...hProgress.tsx |   85.25 |    88.46 |     100 |   85.25 | 121-147           
  ...dSelector.tsx |   92.79 |    82.65 |     100 |   92.79 | ...19-323,354-370 
  ...ionPicker.tsx |   83.66 |    72.13 |     100 |   83.66 | ...96,402,444-466 
  ...onPreview.tsx |   93.58 |    83.78 |     100 |   93.58 | ...,70-71,195-197 
  ...ryDisplay.tsx |     100 |      100 |     100 |     100 |                   
  ...putPrompt.tsx |   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 |       0 |        0 |       0 |       0 | 1-40              
  ...iewDialog.tsx |   97.77 |    87.67 |     100 |   97.77 | ...97,305-307,324 
  ...tsDisplay.tsx |   95.86 |       75 |     100 |   95.86 | 67-71             
  ...ionPicker.tsx |       0 |        0 |       0 |       0 | 1-172             
  ...tivityTab.tsx |    3.94 |      100 |       0 |    3.94 | 27-275            
  StatsDialog.tsx  |    8.64 |      100 |       0 |    8.64 | ...76-111,130-322 
  StatsDisplay.tsx |     100 |      100 |     100 |     100 |                   
  ...ciencyTab.tsx |    78.9 |    56.52 |     100 |    78.9 | ...26,213,262-288 
  ...atmapView.tsx |    8.98 |      100 |       0 |    8.98 | 20-107            
  ...essionTab.tsx |      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 |       0 |        0 |       0 |       0 | 1-134             
  ...xitDialog.tsx |   80.36 |    43.47 |      60 |   80.36 | ...24-238,248-251 
  ...odeVisuals.ts |   97.22 |    85.71 |     100 |   97.22 | 25                
  ...s-helpers.tsx |   66.25 |    81.25 |      50 |   66.25 | 25-32,46-53,62-72 
 ...nts/agent-view |   55.05 |    69.09 |      50 |   55.05 |                   
  ...atContent.tsx |    9.09 |      100 |       0 |    9.09 | 54-275,281-283    
  ...tChatView.tsx |   21.05 |      100 |       0 |   21.05 | 21-39             
  ...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 |    42.3 |    68.69 |   73.68 |    42.3 |                   
  ArenaCards.tsx   |   73.06 |    71.79 |   85.71 |   73.06 | ...83-185,321-326 
  ...ectDialog.tsx |   83.48 |    69.86 |   88.88 |   83.48 | ...88-392,409-410 
  ...artDialog.tsx |       0 |        0 |       0 |       0 | 1-166             
  ...tusDialog.tsx |       0 |        0 |       0 |       0 | 1-288             
  ...topDialog.tsx |       0 |        0 |       0 |       0 | 1-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.26 |    86.89 |   85.57 |   90.26 |                   
  ...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 |    86.95 |      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 |       0 |        0 |       0 |       0 |                   
  ...gerDialog.tsx |       0 |        0 |       0 |       0 | 1-681             
 ...ents/subagents |       0 |        0 |       0 |       0 |                   
  constants.ts     |       0 |        0 |       0 |       0 | 1-71              
  index.ts         |       0 |        0 |       0 |       0 | 1-11              
  reducers.tsx     |       0 |        0 |       0 |       0 | 1-190             
  types.ts         |       0 |        0 |       0 |       0 | 1-125             
  utils.ts         |       0 |        0 |       0 |       0 | 1-102             
 ...bagents/create |       0 |        0 |       0 |       0 |                   
  ...ionWizard.tsx |       0 |        0 |       0 |       0 | 1-299             
  ...rSelector.tsx |       0 |        0 |       0 |       0 | 1-85              
  ...onSummary.tsx |       0 |        0 |       0 |       0 | 1-331             
  ...tionInput.tsx |       0 |        0 |       0 |       0 | 1-177             
  ...dSelector.tsx |       0 |        0 |       0 |       0 | 1-63              
  ...nSelector.tsx |       0 |        0 |       0 |       0 | 1-58              
  ...EntryStep.tsx |       0 |        0 |       0 |       0 | 1-78              
  ToolSelector.tsx |       0 |        0 |       0 |       0 | 1-253             
 ...bagents/manage |   14.14 |    53.19 |    37.5 |   14.14 |                   
  ...ctionStep.tsx |       0 |        0 |       0 |       0 | 1-103             
  ...eleteStep.tsx |       0 |        0 |       0 |       0 | 1-62              
  ...tEditStep.tsx |       0 |        0 |       0 |       0 | 1-124             
  ...ctionStep.tsx |   35.61 |    59.52 |     100 |   35.61 | ...21-433,438-440 
  ...iewerStep.tsx |       0 |        0 |       0 |       0 | 1-73              
  ...gerDialog.tsx |       0 |        0 |       0 |       0 | 1-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   |   84.16 |    81.83 |   85.13 |   84.16 |                   
  ...ewContext.tsx |   64.83 |    88.88 |      50 |   64.83 | ...16-219,225-235 
  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    |       0 |        0 |       0 |       0 |                   
  ...ngsManager.ts |       0 |        0 |       0 |       0 | 1-67              
 src/ui/hooks      |   85.64 |    83.19 |   87.86 |   85.64 |                   
  ...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.86 |    71.67 |   83.33 |   86.86 | ...1540,1562-1566 
  ...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   |       0 |        0 |       0 |       0 | 1-87              
  ...oublePress.ts |   53.12 |       75 |     100 |   53.12 | 33-35,41-54       
  ...orSettings.ts |     100 |      100 |     100 |     100 |                   
  ...Completion.ts |   99.12 |    97.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 |   86.08 |    81.23 |   76.92 |   86.08 | ...5198-5200,5202 
  ...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.48 |    88.88 |     100 |   89.48 | ...54-456,489-499 
  ...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.22 |     100 |   97.12 | ...92-193,247-250 
  ...sionPicker.ts |   92.87 |    90.35 |     100 |   92.87 | ...99-501,503-505 
  ...earchInput.ts |     100 |    97.29 |     100 |     100 | 82                
  ...ngsCommand.ts |   18.75 |      100 |       0 |   18.75 | 10-25             
  ...ellHistory.ts |   93.28 |    80.95 |     100 |   93.28 | ...96,153-154,164 
  ...oryCommand.ts |   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.19 |     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.54 |     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.57 |    85.62 |   95.76 |   87.57 |                   
  ...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.46 |     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.38 |    92.38 |     100 |   98.38 | 108,136-137,343   
  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.24 |     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.03 |     97.1 |     100 |   96.03 | 103-106           
  ...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 |   82.86 |    79.48 |     100 |   82.86 | ...88-610,741-742 
  ...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     |   97.94 |    95.49 |   94.11 |   97.94 | ...82-283,443-444 
  ...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       
  ...ow-keyword.ts |     100 |      100 |     100 |     100 |                   
 ...i/utils/export |   75.03 |     60.3 |   94.59 |   75.03 |                   
  collect.ts       |   71.27 |    66.38 |      96 |   71.27 | ...90-633,655-656 
  index.ts         |     100 |      100 |     100 |     100 |                   
  normalize.ts     |   80.42 |    50.68 |     100 |   80.42 | ...59-364,376-378 
  types.ts         |       0 |        0 |       0 |       0 | 1                 
  utils.ts         |     100 |      100 |     100 |     100 |                   
 ...ort/formatters |   52.92 |    47.22 |   71.42 |   52.92 |                   
  html.ts          |   84.61 |       50 |     100 |   84.61 | ...53,57-58,62-63 
  json.ts          |     100 |      100 |     100 |     100 |                   
  jsonl.ts         |   82.45 |     37.5 |     100 |   82.45 | ...48,50-51,65-66 
  markdown.ts      |   36.32 |    47.05 |      50 |   36.32 | ...16-219,233-295 
 src/ui/voice      |   81.27 |    79.92 |   81.94 |   81.27 |                   
  ...d-recorder.ts |     6.2 |      100 |       0 |     6.2 | ...33-159,162-163 
  ...o-recorder.ts |   84.61 |    93.33 |   57.14 |   84.61 | ...16-117,131-136 
  ...me-session.ts |   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.63 |    87.33 |   92.75 |   81.63 |                   
  ...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.73 |    73.23 |   88.88 |   70.73 | ...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.05 |     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.13 |    91.79 |     100 |   95.13 | ...53-454,552,565 
  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 |                   
  sessionPaths.ts  |   90.84 |    90.56 |     100 |   90.84 | ...81-182,185-186 
  settingsUtils.ts |   82.35 |    89.57 |      90 |   82.35 | ...25-743,750-758 
  spawnWrapper.ts  |     100 |      100 |     100 |     100 |                   
  ...ate-verify.ts |     100 |      100 |     100 |     100 |                   
  ...one-update.ts |   39.81 |    77.44 |   62.16 |   39.81 | ...1193,1196-1215 
  ...upProfiler.ts |   98.47 |    94.66 |     100 |   98.47 | 132-133,308       
  ...upWarnings.ts |     100 |      100 |     100 |     100 |                   
  stdioHelpers.ts  |     100 |       90 |     100 |     100 | 23                
  systemInfo.ts    |   95.12 |    90.27 |     100 |   95.12 | ...54-255,260-264 
  ...InfoFields.ts |    87.5 |    65.85 |     100 |    87.5 | ...24-125,146-147 
  ...alSequence.ts |     100 |    97.61 |     100 |     100 | 60                
  ...iffPreview.ts |   76.47 |       25 |     100 |   76.47 | 13,17,23-24       
  ...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 |                   
  windowTitle.ts   |   96.55 |    94.73 |     100 |   96.55 | 56-57             
  ...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          |   87.93 |    86.49 |   89.48 |   87.93 |                   
 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.38 |    84.54 |   94.85 |   90.38 |                   
  ...transcript.ts |   87.63 |    83.52 |     100 |   87.63 | ...80,588,594-598 
  ...ent-resume.ts |   85.59 |    77.55 |   83.33 |   85.59 | ...1793-1797,1800 
  ...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 
 src/agents/arena  |   76.32 |    67.71 |   78.94 |   76.32 |                   
  ...gentClient.ts |   79.47 |    88.88 |   81.81 |   79.47 | ...68-183,189-204 
  ArenaManager.ts  |   75.11 |    64.51 |   78.57 |   75.11 | ...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.11 |    86.68 |   89.23 |   91.11 |                   
  agent-context.ts |     100 |      100 |     100 |     100 |                   
  agent-core.ts    |   85.07 |     76.8 |   77.77 |   85.07 | ...2291,2337-2339 
  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 |   91.76 |    75.86 |     100 |   91.76 | ...38-139,179-181 
  ...chestrator.ts |    92.4 |       90 |   83.78 |    92.4 | ...1862,1911-1914 
  ...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 | ...1705,1711-1712 
  ...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.72 |    84.65 |   89.05 |   82.72 |                   
  TeamManager.ts   |    73.6 |    80.82 |   79.62 |    73.6 | ...1706,1729-1730 
  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.24 |    82.82 |     100 |   89.24 | ...-994,1038-1039 
  team-events.ts   |   60.52 |      100 |      50 |   60.52 | ...40-144,151-155 
  teamHelpers.ts   |   92.02 |    94.91 |   95.23 |   92.02 | ...31-332,368-378 
  types.ts         |     100 |      100 |     100 |     100 |                   
 ...eam/test-utils |   94.39 |    94.35 |   98.21 |   94.39 |                   
  ...on-harness.ts |   96.49 |       85 |     100 |   96.49 | 128-129,141-142   
  fake-agent.ts    |   98.49 |    95.16 |     100 |   98.49 | 201-203           
  fake-backend.ts  |   86.46 |    97.61 |   95.83 |   86.46 | 124-146           
 src/config        |   84.07 |    86.63 |    75.1 |   84.07 |                   
  approval-mode.ts |     100 |      100 |     100 |     100 |                   
  ...xtDefaults.ts |     100 |      100 |     100 |     100 |                   
  config.ts        |   83.36 |    86.34 |   73.53 |   83.36 | ...8719,8723-8724 
  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.35 |    88.07 |   93.29 |   92.35 |                   
  baseLlmClient.ts |    88.4 |     83.8 |   81.81 |    88.4 | ...59,672,678-680 
  client.ts        |   91.99 |    87.35 |   91.66 |   91.99 | ...4012,4110-4111 
  ...tGenerator.ts |   86.34 |    87.34 |   84.61 |   86.34 | ...96-497,542-548 
  ...lScheduler.ts |   90.04 |    84.67 |   96.15 |   90.04 | ...6216,6244-6260 
  geminiChat.ts    |    94.7 |    90.12 |   95.53 |    94.7 | ...5052,5100-5101 
  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 | 68-72             
  ...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          |   98.67 |    93.12 |     100 |   98.67 | ...79,707-708,755 
  ...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 |   95.88 |    90.34 |    92.3 |   95.88 |                   
  index.ts         |     100 |      100 |     100 |     100 |                   
  ...tGenerator.ts |   95.81 |    89.63 |   91.89 |   95.81 | ...1221-1222,1250 
  ...tDetection.ts |     100 |      100 |     100 |     100 |                   
 ...ntentGenerator |   91.71 |    90.53 |   95.61 |   91.71 |                   
  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         |   60.31 |       75 |      50 |   60.31 | ...71,74-78,90-94 
  ...tGenerator.ts |    66.4 |    70.58 |   88.88 |    66.4 | ...51-157,168-169 
  pipeline.ts      |   95.48 |    91.27 |     100 |   95.48 | ...1309,1317,1416 
  ...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.36 |    92.19 |    98.5 |   97.36 |                   
  dashscope.ts     |   98.33 |    94.97 |   96.42 |   98.33 | ...91-692,834-835 
  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      |    79.9 |    78.92 |    90.9 |    79.9 |                   
  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   |   71.76 |    64.76 |   71.42 |   71.76 | ...53-654,661-662 
  ...onToolGate.ts |   97.97 |     87.5 |     100 |   97.97 | 105,110           
  ...nGenerator.ts |   72.03 |    81.15 |   83.33 |   72.03 | ...68-219,331-333 
 src/generated     |       0 |        0 |       0 |       0 |                   
  git-commit.ts    |       0 |        0 |       0 |       0 | 1-10              
 src/goals         |   93.03 |    88.51 |   94.22 |   93.03 |                   
  ...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 |   89.32 |     85.9 |     100 |   89.32 | ...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 |      92 |    93.33 |      80 |      92 | 102-103,167-168   
  goal-reducer.ts  |   94.91 |    92.06 |   96.96 |   94.91 | ...27,501,519-520 
  goal-runtime.ts  |   96.86 |    89.83 |   95.74 |   96.86 | ...1295-1296,1417 
  goal-tools.ts    |   98.22 |    93.02 |      95 |   98.22 | ...46-147,248-249 
  ...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        |   87.83 |    83.82 |   90.47 |   87.83 |                   
  ...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 |       80 |     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 |    87.03 |     100 |   97.26 | ...10-218,222,225 
  recall.ts        |   82.06 |       75 |    90.9 |   82.06 | ...59-364,395-406 
  refresh.ts       |   93.58 |    89.58 |     100 |   93.58 | ...75-176,183-184 
  ...ceSelector.ts |    93.1 |    81.81 |     100 |    93.1 | ...25,127-128,136 
  remember.ts      |   98.89 |    90.19 |     100 |   98.89 | 50,70             
  scan.ts          |   93.12 |    77.41 |     100 |   93.12 | ...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 |     82.6 |     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.97 |   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 |    47.82 |   84.61 |   74.22 | ...,67-74,106-117 
  ...igResolver.ts |   98.71 |    93.33 |     100 |   98.71 | 166,328,334       
  modelRegistry.ts |     100 |    98.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 |    89.01 |      80 |   86.63 | ...1111,1217-1221 
  rule-parser.ts   |   94.49 |     92.7 |     100 |   94.49 | ...1447,1481-1483 
  ...-semantics.ts |   70.44 |    91.07 |   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.06 |    85.48 |    96.9 |   90.06 |                   
  ...ionTrailer.ts |     100 |      100 |     100 |     100 |                   
  ...llRegistry.ts |   98.46 |    87.17 |     100 |   98.46 | 81-82,105,468-469 
  ...ionService.ts |   97.51 |    96.15 |     100 |   97.51 | ...,929,1072-1080 
  ...ingService.ts |   91.75 |    85.44 |   95.83 |   91.75 | ...2190,2217-2218 
  ...ttribution.ts |   91.73 |    87.71 |      90 |   91.73 | ...80-685,826-827 
  ...utSlimming.ts |    97.2 |    94.17 |     100 |    97.2 | ...39-340,378-381 
  cronScheduler.ts |   94.17 |    90.45 |      98 |   94.17 | ...1333,1736-1737 
  cronTasksFile.ts |   96.31 |    91.81 |     100 |   96.31 | ...11,336-337,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 |    73.7 |    68.49 |   95.83 |    73.7 | ...2196,2225-2226 
  ...on-service.ts |   87.38 |       72 |     100 |   87.38 | ...01-305,343-344 
  ...references.ts |   98.39 |    88.76 |     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.85 |     100 |   97.74 | 298-308,646       
  ...pi-history.ts |   98.94 |    88.88 |     100 |   98.94 | 43                
  ...ersistence.ts |   91.66 |    80.75 |     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             
  ...ken-counts.ts |     100 |       96 |     100 |     100 | 58                
  ...ipt-reader.ts |   93.59 |    91.41 |    97.7 |   93.59 | ...2643-2644,2712 
  ...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 |   88.31 |    85.37 |   95.58 |   88.31 | ...2342,2356-2376 
  sessionTitle.ts  |   95.75 |    77.41 |     100 |   95.75 | ...53-256,287-288 
  ...ionService.ts |    84.4 |    78.45 |   97.18 |    84.4 | ...2493,2499-2504 
  ...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.8 |     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.89 |   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.5 |     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     |   81.83 |    84.11 |   84.92 |   81.83 |                   
  ...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.31 |    74.62 |   73.68 |   76.31 | ...80,387-389,405 
  ...attributes.ts |   95.15 |    87.27 |     100 |   95.15 | ...97-198,216-217 
  ...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.1 |    95.72 |      95 |    99.1 | 145,369-370       
  ...t.circular.ts |       0 |        0 |       0 |       0 | 1-128             
  loggers.ts       |   60.25 |    77.03 |   66.66 |   60.25 | ...1492,1509-1529 
  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      |   91.06 |    87.15 |   68.75 |   91.06 | ...32,482-483,499 
  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.1 |    88.68 |   96.77 |    91.1 | ...1737,1768-1771 
  ...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.27 |    85.09 |   88.72 |   86.27 |                   
  ...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 |   91.18 |    86.71 |    87.5 |   91.18 | ...26-427,441-453 
  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.81 |    84.22 |   91.91 |   78.81 | ...5036,5099-5100 
  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     |   78.22 |    84.21 |   83.33 |   78.22 | ...66,105,109-116 
  task-stop.ts     |   93.14 |    96.15 |   85.71 |   93.14 | 39-40,54-64       
  task-update.ts   |   82.89 |    83.92 |    92.3 |   82.89 | ...14-422,454-465 
  team-create.ts   |   97.22 |    85.71 |   83.33 |   97.22 | 48-49,129-130     
  team-delete.ts   |   86.74 |    83.33 |   83.33 |   86.74 | 37-38,42-48,72-73 
  ...n-approval.ts |   92.14 |    96.77 |   77.77 |   92.14 | 38-39,42-43,93-99 
  todoWrite.ts     |   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 | ...69-570,586-592 
  ...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    |   86.72 |    84.92 |   88.88 |   86.72 | ...25-828,865-900 
  zoom-image.ts    |   95.76 |    93.75 |      90 |   95.76 | 54-59,203-204     
 src/tools/agent   |   87.02 |    87.31 |   88.69 |   87.02 |                   
  agent.ts         |   85.64 |    86.19 |   86.31 |   85.64 | ...4366,4400-4410 
  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.51 |    84.81 |      75 |   86.51 |                   
  workflow.ts      |   86.51 |    84.81 |      75 |   86.51 | ...67,512,514-515 
 src/utils         |   92.92 |    89.66 |   96.89 |   92.92 |                   
  LruCache.ts      |     100 |      100 |     100 |     100 |                   
  ...Controller.ts |     100 |      100 |     100 |     100 |                   
  ...ssageQueue.ts |     100 |      100 |     100 |     100 |                   
  ...cFileWrite.ts |   94.94 |    92.47 |     100 |   94.94 | ...43-544,651-655 
  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.88 |    94.11 |      95 |   95.88 | ...98-499,511-524 
  ...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        |   83.39 |    95.17 |    61.9 |   83.39 | ...81-397,401-407 
  fetch.ts         |   90.68 |    82.51 |     100 |   90.68 | ...72,483-484,503 
  file-identity.ts |     100 |      100 |     100 |     100 |                   
  fileUtils.ts     |   94.87 |    92.95 |   96.15 |   94.87 | ...1907,1915-1916 
  forkedAgent.ts   |   92.45 |    82.35 |   93.75 |   92.45 | ...34,642,647-654 
  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.02 |    81.25 |   85.71 |   78.02 | ...22-123,147-198 
  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.12 |    93.33 |     100 |   95.12 | ...68-172,240-244 
  ...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 |       90 |     100 |   94.01 | ...47-353,445-446 
  ...Inspectors.ts |     100 |      100 |     100 |     100 |                   
  modelId.ts       |   98.96 |    98.21 |     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         |   93.61 |    92.42 |     100 |   93.61 | ...62-563,565-567 
  pdf.ts           |   92.17 |    85.81 |     100 |   92.17 | ...64-565,606-611 
  projectPath.ts   |     100 |      100 |     100 |     100 |                   
  projectRoot.ts   |   71.73 |    78.57 |     100 |   71.73 | 54-66             
  ...ectSummary.ts |   89.62 |    72.41 |     100 |   89.62 | ...40-145,196-199 
  ...tIdContext.ts |     100 |      100 |     100 |     100 |                   
  proxyUtils.ts    |     100 |      100 |     100 |     100 |                   
  ...rDetection.ts |   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.11 |     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 |      100 |     100 |     100 |                   
  ...orageUtils.ts |   96.21 |    84.95 |     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.07 |    88.34 |     100 |   86.07 | ...2269,2276-2280 
  ...lAstParser.ts |   98.27 |    91.38 |     100 |   98.27 | ...1321-1323,1333 
  ...ContextEnv.ts |     100 |       92 |     100 |     100 | 50-52             
  ...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 |   97.66 |     90.9 |     100 |   97.66 | 165-166,168-172   
  ...-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 |       64 |      75 |   54.62 | ...03-105,108-134 
  ...Compaction.ts |   96.13 |    96.42 |     100 |   96.13 | ...34-339,341-346 
  ...pt-records.ts |    87.5 |    86.13 |     100 |    87.5 | ...76-480,510-525 
  truncation.ts    |   90.61 |    90.43 |     100 |   90.61 | ...53-461,498-504 
  windowsPath.ts   |   89.47 |    79.31 |     100 |   89.47 | ...57-58,62,90-91 
  ...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 |   69.76 |    75.47 |   85.29 |   69.76 |                   
  ...eTokenizer.ts |   65.72 |    74.02 |    92.3 |   65.72 | ...65-466,479-533 
  index.ts         |     100 |      100 |     100 |     100 |                   
  ...tTokenizer.ts |   68.39 |    69.49 |    90.9 |   68.39 | ...24-325,327-328 
  ...ageFormats.ts |   76.92 |      100 |   33.33 |   76.92 | 46-49,56-57       
  textTokenizer.ts |     100 |      100 |     100 |     100 |                   
  types.ts         |       0 |        0 |       0 |       0 | 1                 
-------------------|---------|----------|---------|---------|-------------------

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

@doudouOUC doudouOUC self-assigned this Aug 13, 2026
@qwen-code-ci-bot

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

Copy link
Copy Markdown
Collaborator

🩺 serve daemon A/B

Built the PR base vs this PR head 941c54b, drove a fixed endpoint set against each, and diffed the JSON responses. Only fields that changed are shown.

No response changes against the PR base across 4 scenario(s).

Qwen Code · serve A/B

@doudouOUC
doudouOUC marked this pull request as ready for review August 13, 2026 06:14
@doudouOUC
doudouOUC enabled auto-merge August 13, 2026 06:14
@qwen-code-ci-bot

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

Copy link
Copy Markdown
Collaborator

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

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

@qwen-code-ci-bot

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

Copy link
Copy Markdown
Collaborator

Thanks for the PR — re-running the gate after the lease-gating fix (941c54b5).

Template still complete ✓.

Problem: unchanged — observed, not theoretical. #8678 (P1, open) documents a real restore-deadline incident on a 76.69 MiB transcript; the design was reviewed and merged as #8743 and all six prerequisites are in.

Direction: aligned, unchanged from prior passes. Bounded selective restore is squarely within the session-management work the project is actively investing in.

Size: the new commit adds 1 production line and 43 test lines — now ~5,023 production logic lines (+3,966 / −1,057 across 29 production files, including the design doc) vs ~3,697 test lines. Per the core-module gate this is not size-blocked (perf-type, not refactor), but at 500+ production core lines it remains escalated for maintainer awareness, and the 1000+ large-PR advisory still applies. The merged design deliberately treats this as one contract; deferred pieces stay explicitly out of scope.

Approach: 941c54b5 is exactly the fix @wenshao asked for in the lease-gating thread and nothing more — one predicate term in the CLI plus a regression test for the non-ACP host case. No drive-by scope. I verified the fix against core's effective writer-lease predicate term by term (details in Stage 2).

Risk: Stage 1e match unchanged — 10 files under packages/cli/src/acp-integration/, a path correlated with post-merge reverts in this repo's history. This commit doesn't touch that path, but the PR as a whole keeps the raised review depth (full Stage 2 enrichments + CI evidence before any approval). The author has write access; the sandboxed /verify lane ran once already (verdict: findings, see Stage 2) and a second run is in progress for this head.

Moving on to code review. 🔍

中文说明

感谢贡献——这是 lease-gating 修复(941c54b5)后的门禁复查。

模板依然完整 ✓。

问题: 不变——已观测到,不是理论问题。#8678(P1,open)记录了 76.69 MiB transcript 上真实的恢复超时事故;设计已在 #8743 评审合入,六个前置均已合入。

方向: 对齐,与前几轮一致。有界选择性恢复属于项目持续投入的 session-management 工作。

规模: 新提交仅增加 1 行生产代码与 43 行测试——目前约 5,023 行生产逻辑(29 个生产文件含设计文档,+3,966 / −1,057),测试约 3,697 行。按核心模块门禁不被规模阻断(perf 类型而非 refactor),但 500+ 生产核心行仍升级为 maintainer 关注,1000+ 大 PR 提示同样适用。合入的设计有意将其作为一个完整契约,被推迟的部分明确不在范围内。

方案: 941c54b5 恰好是 @wenshao 在 lease-gating thread 中要求的修复本身——CLI 谓词加一项,外加非 ACP host 场景的回归测试,无其他内容。已逐项对照 core 的有效 writer-lease 谓词核实(见 Stage 2)。

风险: Stage 1e 命中不变——packages/cli/src/acp-integration/ 下 10 个文件,与本仓库合入后回滚的历史相关。本提交不触及该路径,但 PR 整体维持提高的 review 深度。作者有 write 权限;沙箱 /verify 已运行过一次(结论:findings,见 Stage 2),针对当前 head 的第二次运行正在进行。

进入代码审查。🔍

Qwen Code · qwen3.8-max

Reviewed at 941c54b5368101807c58cadf6665764bd7b5e0e8 · re-run with @qwen-code /triage

@qwen-code-ci-bot

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

Copy link
Copy Markdown
Collaborator

Code review

Re-run at 941c54b5. My full-diff conclusions from the previous passes stand (architecture matches my independent proposal; reducer parity enforced by construction; writer-lease ordering, hidden-Goal fence, fail-closed bounds, and goal prepare/activate all verified). This pass reviewed the one new commit and independently checked the author's dispositions on the rest of @wenshao's review round.

The lease-gating fix (941c54b5) is correct. The CLI's deferProjectionUntilWriterLease now carries isAcpMode === true, and I verified the predicate chain term by term against core: isAcpMode = argv.acp || argv.experimentalAcp matches the experimentalZedIntegration the CLI hands core, settings.experimental?.sessionWriterLease === true is exactly the passed sessionWriterLeaseEnabled param, and the chatRecording expression matches core's chatRecordingEnabled derivation. So the deferral now fires precisely when core's activateChatRecording will actually pursue a lease — and a non-ACP host with the lease flag set preloads the projection instead of silently starting with empty history, model state, and Goal. The new test pins that case (preload called, experimentalZedIntegration: false). ACP behavior is unchanged: deferral still applies, acquisition still precedes the projection read.

The other six threads from the maintainer's round — I checked the author's counter-claims against the code rather than taking the disposition table at face value:

  • realtime_message turn-boundary divergence: the claim "both paths already align" holds — getSessionTurnRecordHint excludes exactly the subtype set rebuildTurnBoundaries excludes (goal_runtime / notification / cron / mid_turn_user_message / realtime_message), so projected and legacy restores index turns identically.
  • Small-session recent-page fast path: the stated repro does not occur — selectBackwardPageUuids absorbs the leading non-turn prefix when no earlier turn start exists and the window fits the byte budget (selectedStart = 0, hasMore: false), and the diff carries a test asserting exactly that scenario (leading session_source record included, hasMore: false). A prefix that overflows the byte budget stays paginated — a deliberate bounded-page change from the old unconditional full return, worth knowing but not a regression.
  • Foreign-sessionId fail-closed check: coverage claim holds — tests exercise both a foreign record on the selected chain and a foreign dead-branch record no consumer selects. Whether bricking the whole transcript on one stray record is the right blast radius remains a design call (see Stage 3).
  • Hidden-Goal fence scope: mechanism as described — suppression holds while goal.goalId === suppressedGoalId, lifts on clear or replacement, regression test covers same-ID revisions and replacement. Whether terminal cards should also stay fenced is a design call.
  • Cold-index freshness vs pending-build reuse: the rationale is backed by the existing bridge layer (pendingRestoreIds admission, coalesced restore waiters, captured restoreState for late attachers), and request-local freshness across writer-lease acquisition is a documented design requirement. Reasonable; flagged below as the maintainer's to accept or not.
  • Deferred items (userDisplayTextsForTitle projection; hideInheritedHistory continuation/anchor threading): the gaps are real but non-critical — auto-title quality on restored untitled sessions, and inherited records reappearing in backward paging after a hidden-inherited load. Both are contract extensions and reasonable follow-ups; worth tracking as issues after merge.

⚠️ One process observation for the maintainer: all threads of this round were resolved by the author, including the six that got "Not taking" or "Deferred" rather than a code change. The dispositions above are my independent read of each, but they have not been acked by @wenshao since the round was posted — the open items in Stage 3 are exactly the ones that need that ack.

sequenceDiagram
    participant P1 as Client
    participant P2 as QwenAgent loadSession
    participant P3 as Config
    participant P4 as Writer lease
    participant P5 as TranscriptReader
    participant P6 as Session publication
    P1->>P2: load with historyPageSize
    P2->>P3: initialize config with projection source
    P3->>P4: acquire writer lease
    P4-->>P3: ownership established
    P3->>P5: readRestoreProjection, fresh index
    P5->>P5: one scan, per-record hints
    P5->>P5: selective reads, runtime plus replay page
    P5-->>P3: projection with reduced runtime state
    P3->>P2: hydrate history, recorder, goal prepare
    P2->>P2: build replay envelope, enforce 32 MiB and 10000 update caps
    P2->>P6: create Session only after validation
    P6-->>P1: response with bounded replay envelope
    P2->>P3: finalizeSessionRestore, goal and file-history activation
Loading
Files changed (30 of 44 shown)
File What changed
packages/core/src/services/session-transcript-reader.ts Heart of the change: cold index with per-record hints, runtime vs replay chains, selective projection reads; typed-error deferral for Goal checkpoint evidence
packages/core/src/services/sessionService.ts Delegates restore to the reader; legacy loadSession refactored onto the shared accumulators (-324 lines)
packages/core/src/services/session-api-history.ts New: API-history/compression accumulator shared by both loaders
packages/core/src/services/session-resume-token-counts.ts New: resume token-count selection, moved out of sessionService
packages/core/src/services/session-turn-state.ts New: turn counter, turn-parent, background-notification accumulation
packages/core/src/services/session-file-history-state.ts New: file-history snapshot accumulation with first-insertion-slot eviction
packages/core/src/services/session-artifact-persistence.ts Artifact active-branch selection and snapshot rebuild extracted to shared accumulator
packages/core/src/services/chatRecordingService.ts Recorder can activate from the projection's reduced state
packages/core/src/goals/goal-evidence.ts Index-time evidence hints plus incremental checkpoint-window accumulator
packages/core/src/goals/goal-persistence.ts Recovery selection now reports the source record uuid; candidate normalization
packages/core/src/goals/goal-runtime.ts Restore split into prepare and activate; broadcast and work gated until activation
packages/core/src/config/config.ts Projection source consumed after writer lease; deferred goal/file-history/attribution activation; fail-closed cleanup
packages/core/src/core/client.ts GeminiClient hydrates directly from the runtime projection
packages/core/src/index.ts Exports for the new projection types
packages/core/src/utils/sessionStorageUtils.ts Title-info tail reader extracted for shared use
packages/cli/src/acp-integration/acpAgent.ts Load/resume rebuilt around the projection; recovered-Goal updates streamed best-effort after replay; session id passed through the projection source
packages/cli/src/acp-integration/session/Session.ts Suppressed-goal presentation fence, primeTurnState, replay options passthrough
packages/cli/src/acp-integration/session/recovered-goal-update.ts Renders the prepared goal update; unrestorable-goal cleared cards from replayed records with bootstrap fallback
packages/cli/src/acp-integration/session/history-replay-page.ts Incremental byte/update limits during collection; page-boundary goal state seeding
packages/cli/src/acp-integration/session/history-replayer.ts Goal bootstrap emission before replay; v2 bootstrap validation
packages/cli/src/acp-integration/session/emitters/MessageEmitter.ts Goal status updates can carry goalState meta
packages/cli/src/config/config.ts CLI resume path uses the projection source, rebound for forks; the latest commit aligns lease deferral with core's ACP-only writer-lease predicate
packages/cli/src/config/config.test.ts Fork-rebind coverage plus the new non-ACP-host preload test from the latest commit
packages/cli/src/serve/scheduled-task-keepalive.ts Revive/rehydrate switched from loadSession to resumeSession (no replay)
packages/cli/src/commands/channel/daemon-worker.ts Channel reattach switched from load to resume
packages/cli/src/ui/utils/restoreGoal.ts Accepts narrowed GoalRecoveryRecord shape
packages/acp-bridge/src/bridge.ts Propagates anchorRecordId; adopts the shared update-count limit
packages/acp-bridge/src/bridgeTypes.ts Envelope gains anchorRecordId; shared 32 MiB / 10000-update constants
packages/channels/base/src/AcpBridge.ts Channel restore uses unstable_resumeSession instead of loadSession
packages/core/src/services/session-transcript-reader.test.ts +1,700 lines: full-loader parity, fail-closed paths, cooperative yields, foreign-session coverage, leading-prefix page test
…and 14 more files Remaining test files for the touched modules (acpAgent, Session, bridge, channels, goal runtime, config, client, recorder, daemon-worker, keepalive, file-history, recovered-goal-update, history-replay-page) plus the design doc

Testing

CI run — no PR code was built or executed by this gate; the evidence below is quoted from the PR's own CI checks on the reviewed commit, fetched via the API.

All three pull_request workflows completed green on this head: Qwen Code CI, SDK Java, and Serve A/B. Notably Real daemon E2E / Java 11 is green this time — the setup-java infra flake that reddened the two previous heads did not recur. The 175 skipped checks are review-event jobs (not PR CI); the 6 cancelled route/autofix runs are superseded review-event runs.

Check Conclusion
Test (ubuntu-latest, Node 22.x) ✅ success
Serve A/B (ubuntu-latest, Node 22.x) ✅ success
Desktop Shell (ubuntu-22.04) ✅ success
Desktop Shell (windows-2022) ✅ success
Real daemon E2E / Java 11 ✅ success
web-shell E2E Smoke (ubuntu-latest, Node 22.x) ✅ success
SDK Java matrix (ubuntu Java 11/17/21, windows/macos Java 21) ✅ success
Test (macos-latest, Node 22.x) ⏭️ skipped (merge-queue only, by design)
Test (windows-latest, Node 22.x) ⏭️ skipped (merge-queue only, by design)
Integration Tests (CLI, No Sandbox) ⏭️ skipped (merge-queue only, by design)

Sandboxed verification: the first @qwen-code /verify run (on fb3ace2e) returned verdict findings — 34/35 scripted assertions passed. Correctness, full-loader parity, pagination metadata, all three ceilings, and test load-bearingness (mutation check) all held; the single failed assertion is the perf headline itself: on uncompressed transcripts the cold selective path is ~3× slower than the legacy full loader at the core seam, because the index scan parses the whole transcript once and runtime reconstruction then re-reads all records when no compression checkpoint exists. With a compression checkpoint the mechanism engages and head beats base on both time and memory. This matches @wenshao's independent daemon A/B (~3.3× slower cold, ~11× faster warm refresh) and the author's own disclosed caveat. A second /verify run for 941c54b5 is in progress and will post its report to the verification thread — the lease fix doesn't touch the restore hot path, so F1 is expected to stand.

Not verified by this gate: live daemon/TUI behavior — per the static-review rule the gate never executes PR code. Live-behavior evidence comes from the maintainer's local A/B report (independent, real daemons) and the sandboxed /verify runs; the author's macOS benchmark numbers remain the author's claim. Windows/Linux E2E not covered by anyone yet, per the PR's own scoping.

中文说明

代码审查:全量 diff 结论延续前几轮(架构与独立方案一致、reducer parity 由构造保证、writer-lease 时序、隐藏 Goal 隔离、fail-closed 上限、goal prepare/activate 均已核实)。本轮审查唯一新提交,并独立核对了作者对其余 thread 的处置:

  • lease-gating 修复正确deferProjectionUntilWriterLease 增加 isAcpMode === true 后,与 core 的有效 writer-lease 谓词逐项一致(experimentalZedIntegrationsessionWriterLeaseEnabled 参数、chatRecordingEnabled 推导均已对照)。deferral 恰好在 core 真正会获取 lease 时生效;非 ACP host 开启 lease 标志时现在会预加载 projection,不再静默以空历史/空 Goal 启动(新测试钉住该场景)。ACP 行为不变。
  • realtime_message 分歧:作者说法成立——两条恢复路径排除的 subtype 集合完全一致,turn 索引相同。
  • 小会话 recent 页快路径:wenshao 的复现场景不成立——selectBackwardPageUuids 在无更早 turn 边界且窗口适配字节预算时吸收前导前缀(hasMore: false),diff 中有断言该场景的测试。超出字节预算的前缀仍分页,是有意的有界行为变更。
  • 外部 sessionId fail-closed:覆盖声明成立(selected 与 dead-branch 两种用例均有测试);单一杂散记录导致整个 transcript 不可用的 blast radius 是否合适,仍是设计决策。
  • 隐藏 Goal 隔离范围:机制与描述一致(同 goalId 期间抑制,清空或替换解除,有回归测试);终态卡片是否也应被隔离是设计决策。
  • 冷索引新鲜度:理由有 bridge 层既有机制支撑(pendingRestoreIds、合并等待、restoreState),且 lease 获取前后的请求级新鲜扫描是设计文档要求。
  • 顺延项(标题展示上下文投影、hideInheritedHistory 延续/anchor 穿透):缺口真实但非关键,属契约扩展,适合作为合入后 follow-up。

⚠️ 流程提示:本轮所有 thread 均由作者自行 resolve,其中六项是"不采纳/顺延"而非代码修改。以上是我对每项的独立核对,但自该轮评审发出后尚未得到 @wenshao 的确认——Stage 3 中列出的正是这些待确认项。

测试:CI 运行,门禁未构建或执行任何 PR 代码。该 head 上三个 pull_request 工作流全绿(Qwen Code CISDK JavaServe A/B);Real daemon E2E / Java 11 本次为绿(前两个 head 的 setup-java 基础设施抖动未复现)。175 项 skipped 为 review 事件任务;6 项 cancelled 为被取代的 autofix/route 运行。

沙箱验证:第一次 /verifyfb3ace2e)结论 findings,34/35 断言通过——正确性、与全量加载器的 parity、分页元数据、三项上限、测试承重性(mutation)全部成立;唯一失败断言即性能主张本身:无压缩 transcript 的冷选择性恢复在 core 接缝比旧全量加载器慢约 3×(索引扫描全量解析一遍,无压缩检查点时 runtime 重建又重读全部记录);存在压缩检查点时机制生效,head 时间与内存双优。与 @wenshao 的独立 daemon A/B(冷慢约 3.3×、warm refresh 快约 11×)及作者自述 caveat 一致。针对 941c54b5 的第二次 /verify 正在进行,报告将发布在验证 thread;lease 修复不触及恢复热路径,预计 F1 不变。

门禁未验证:实机 daemon/TUI 行为(静态审查规则禁止执行 PR 代码);实机证据来自 maintainer 的本地 A/B 报告与沙箱 /verify 运行;作者的 macOS 基准数字为其自述。Windows/Linux E2E 按 PR 自述范围尚未覆盖。

Qwen Code · qwen3.8-max

Reviewed at 941c54b5368101807c58cadf6665764bd7b5e0e8 · re-run with @qwen-code /triage

@qwen-code-ci-bot

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

Copy link
Copy Markdown
Collaborator

Confidence: 3/5 — the lease-gating batch is correct and CI is fully green on this head; the cap is still the core-size escalation policy plus open maintainer calls, not doubt about the code.

What changed since the last pass: @wenshao's second review round asked for seven things; the author fixed the one with a concrete silent-failure path (the lease predicate mismatch) and pushed back on the other six with reasons. I reviewed the fix and stress-checked every pushback against the code rather than the disposition table:

  • The lease fix is exactly right — the CLI deferral predicate now mirrors core's effective writer-lease gate term for term, the silent empty-restore hole for non-ACP hosts is closed, and the regression test pins it. No second-order effects: ACP children always run with --acp, so the deferred path is untouched.
  • Of the six pushbacks, two are factually verified as correct: the realtime_message divergence no longer exists (both restore paths exclude the same subtype set), and the small-session paging repro does not occur (the prefix-absorb branch plus a dedicated test). Two more have their factual claims verified, leaving a pure design call: the foreign-sessionId fail-closed boundary (tests cover it; the question is whether one stray record should make a session permanently unloadable) and the hidden-Goal fence (mechanism is as described; the question is whether terminal cards should stay fenced). The cold-index freshness rationale is backed by the bridge admission layer. The two deferred items (title display-text projection; hideInheritedHistory anchor continuation) are real but non-critical contract extensions — after six review rounds, follow-ups are the reasonable call, but they should be tracked as issues so they don't evaporate.

The picture around the code is as strong as it gets for a PR this size: all three pull_request CI workflows green on this head (including the previously flaky daemon E2E), an independent maintainer A/B validating the functional contract end to end, and a sandboxed /verify that passed 34/35 assertions with the single failure being the perf headline itself — the cold-path slowdown is now mechanistically explained (double parse of uncompressed transcripts; the win is conditional on compression checkpoints).

What keeps this at 3/5 is policy and open calls, unchanged: ~5,000 production lines across core session restore, the goal runtime, and the ACP integration layer is the class of change the gate hands to a human architect — approval here was never the gate's to give.

⏸️ Deferring to @wenshao — three things for the maintainer's call:

  1. The six non-code dispositions. All threads of your round were resolved by the author; none of the "Not taking"/"Deferred" replies has your ack. Where I could verify, the claims hold (details in Stage 2), but the design calls are yours — most consequentially the foreign-sessionId blast radius and the hidden-Goal fence suppressing terminal cards. If you accept them, the two deferred items deserve tracking issues before merge.
  2. The cold-load tradeoff, now with a mechanism: on uncompressed transcripts the index scan parses the full transcript once and runtime reconstruction re-reads it. Optimize the hot path now (the /verify report sketches a preloadedRecords direction), or sign off consciously given the fix(serve): Preserve the current session when a large restore times out #8678 scenario and the compression-conditioned win.
  3. Final architectural sign-off on the 256 MiB ceiling, writer-lease timing, and hidden-Goal fence — plus the second /verify report for 941c54b5, which is still running and will post to the verification thread.

No approval marker on this run — the verdict is defer, and the core-size escalation stands until a maintainer signs off.

中文说明

置信度:3/5 —— lease-gating 批次正确、该 head 的 CI 全绿;上限仍来自核心规模升级策略与待定的 maintainer 决策,而非对代码的疑虑。

自上一轮以来的变化:@wenshao 的第二轮评审提出七点;作者修复了其中唯一有具体静默失败路径的一项(lease 谓词不一致),并对其余六点给出了理由。我审查了修复本身,并逐项对照代码核实了每个反驳,而不是只看处置表:

  • lease 修复完全正确——CLI 的 deferral 谓词现在与 core 的有效 writer-lease 门逐项一致,非 ACP host 的静默空恢复漏洞已关闭,回归测试钉住该场景。无次级影响:ACP 子进程总是带 --acp,延迟路径不受影响。
  • 六项反驳中,两项经核实属实:realtime_message 分歧已不存在(两条恢复路径排除相同 subtype 集合);小会话分页复现不成立(前缀吸收分支 + 专门测试)。另两项的事实声明核实成立,剩下纯设计决策:外部 sessionId fail-closed 边界(测试已覆盖;问题是单条杂散记录是否应让会话永久不可用)与隐藏 Goal 隔离(机制与描述一致;问题是终态卡片是否也应被隔离)。冷索引新鲜度的理由有 bridge 准入层支撑。两项顺延(标题展示文本投影、hideInheritedHistory anchor 延续)是真实但非关键的契约扩展——第六轮评审之后顺延合理,但应建立跟踪 issue 以免遗失。

代码外围证据对这个规模的 PR 来说已相当充分:三个 pull_request CI 工作流在该 head 全绿(包括此前抖动的 daemon E2E),maintainer 独立 A/B 验证了功能契约端到端成立,沙箱 /verify 34/35 断言通过、唯一失败即性能主张本身——冷加载变慢现有机理明确(无压缩 transcript 被双重解析;收益以压缩检查点为条件)。

维持 3/5 的仍是策略与未决项:约 5,000 行生产代码横跨核心会话恢复、goal 运行时与 ACP 集成层,属于门禁应交人类架构师的变更类别——批准从来不在门禁权限之内。

⏸️ 转交 @wenshao —— 三项 maintainer 决策:

  1. 六项非代码处置:你那一轮的所有 thread 均由作者 resolve,"不采纳/顺延"的回复尚无你的确认。可核实之处声明均成立(见 Stage 2),但设计决策在你——最重要的是外部 sessionId 的 blast radius 与隐藏 Goal 隔离对终态卡片的抑制。若接受,两项顺延内容应在合入前建立跟踪 issue。
  2. 冷加载权衡(现有机理):无压缩 transcript 下索引扫描全量解析一遍、runtime 重建再重读一遍。现在优化热路径(/verify 报告给出 preloadedRecords 方向),或在考虑 fix(serve): Preserve the current session when a large restore times out #8678 场景与以压缩为条件的收益后有意识地签字认可。
  3. 最终架构签字:256 MiB 上限、writer-lease 时序、隐藏 Goal 隔离——以及针对 941c54b5 的第二次 /verify 报告(仍在运行,将发布在验证 thread)。

本轮不附批准标记——裁决为 defer,核心规模升级在 maintainer 签字前持续有效。

Qwen Code · qwen3.8-max

Reviewed at 941c54b5368101807c58cadf6665764bd7b5e0e8 · re-run with @qwen-code /triage

Comment thread packages/core/src/services/session-transcript-reader.ts Outdated
Comment thread packages/cli/src/acp-integration/acpAgent.ts Outdated
Comment thread packages/core/src/services/chatRecordingService.ts
Comment thread packages/cli/src/config/config.ts Outdated
Comment thread packages/core/src/services/session-turn-state.ts
Comment thread packages/core/src/services/session-transcript-reader.ts
@wenshao

wenshao commented Aug 13, 2026

Copy link
Copy Markdown
Collaborator

Local verification report (maintainer)

I built this PR locally and ran a base-vs-head A/B against real daemons with synthetic large transcripts. The functional contract holds up well end to end — bounded replay, pagination metadata, full-replay compatibility, typed limits, resume path, and sibling continuity all verified. One measured tradeoff maintainers should weigh before merging: cold bounded restore got ~3.3× slower than base on this machine, while the warm/live refresh path got ~11× faster (details below).

Method. Two isolated worktrees — base = merge-base ca449718, head = a8bde683 — each npm run build && npm run bundle, daemons started from the bundled dist/cli.js with isolated QWEN_HOME and a mock OpenAI SSE provider that keeps a request ledger. The same raw-HTTP probe file (no PR code imported) ran against both sides with identical fixtures: JSONL transcripts hand-built in the persisted ChatRecord shape (uuid/parentUuid chain, monotonic timestamps, [[R######]] markers in every record so replay content can be asserted). Fixtures: 92 MB / 30k records, 253 MB / 80k records, 275 MB (over the 256 MiB ceiling), a 40 MB single-turn page (over the 32 MiB page cap), and a 40-record parity session. Every cold-load measurement used a fresh daemon with the ACP child pre-warmed via a live sibling session; timings below are server-side durationMs from daemon logs.

A/B summary

What I verified (test plan items 1–7)

  1. Bounded load (92 MB, historyPageSize: 2): 200 with only the last aligned records ([[R029998]]/[[R029999]], 9.4 KB body), historyHasMore: true, and historyAnchorRecordId present. Base accepts the same request shape and also returns a bounded body + historyHasMore, but only head returns historyAnchorRecordId — the new pagination metadata is real and additive.
  2. Full-replay compatibility: on the 40-record session, the full visible replay (no historyPageSize) is byte-identical between base and head after normalizing volatile fields; the bounded page differs only by the added anchor field.
  3. Resume path: POST /session/:id/resume on the 92 MB session → 200, 2.8 KB response, no compactedReplay/liveJournal, session remains operational.
  4. Model-facing state after bounded restore: prompting the bounded-restored 40-record session sent the full 42-message history to the mock provider. On the 92 MB session the context guard correctly measured the full restored history (21,091,154 estimated tokens) and refused to send — the synthetic fixture exceeds any real context window; the session and daemon stayed healthy.
  5. Limits: 275 MB transcript → 413 transcript_too_large (both with and without historyPageSize); 40 MB single-turn page → 413 transcript_page_too_large (41,943,303 > 33,554,432). All failures occur before Session publication; afterwards create/status/load/prompt on other sessions still work on the same daemon. On base, the same fixtures return 200 with a 41.9 MB unbounded response body and 200 for the 275 MB transcript — the documented behavior change is real and, in my view, the right call. I could not construct a >10,000-update page end to end (turn-aligned selection kept a 10,501-record single-turn fixture under the cap); that branch shares the enforcement path with the verified bytes cap and is unit-tested in history-replay-page.test.ts.
  6. Sibling continuity: status sampling and prompt→model latency (~20 ms) during a 253 MB cold load showed no starvation on either side — I could not reproduce the fix(serve): Preserve the current session when a large restore times out #8678 event-loop stall on this hardware (M-series, NVMe), so I can't independently confirm the headline latency win; see the tradeoff below.
  7. Tests/build: affected suites all pass on head — core 1136, cli 1136, acp-bridge 575, channels/base 39; build/bundle clean. The failing Real daemon E2E / Java 11 check is a pre-existing self-hosted-runner infra flake (its Set up Java step; the same step fails on main runs b65a0d60, d912f4c6) — not caused by this PR.

Probe results

Measured tradeoff for maintainers to weigh

cold bounded load (ps=2, 3 runs) base head
92 MB / 30k records 243 / 237 / 234 ms 777 / 790 / 804 ms (~3.3× slower)
253 MB / 80k records 678 / 653 / 657 ms 2032 / 2037 / 2027 ms (~3.1× slower)
second load, same daemon (live refresh) 150 / 161 / 166 ms 15 / 14 / 14 ms (~11× faster)

Peak RSS during the 253 MB bounded cold load was only ~8 % lower on head (+432/+439 MB vs +465/+480 MB) — consistent with the PR's own disclaimer that this is not a universal memory reduction, since the full model-facing history is still hydrated. The cold-load slowdown scales linearly with transcript size and stays far below the 60 s restore budget, and on machines where base's synchronous full materialization is the bottleneck (the #8678 scenario) head's cooperative index scan should behave much better than these numbers suggest — but on fast hardware the selective path currently pays ~3× the wall clock of the old full parse. Worth a look at the index-scan hot path (or at least a conscious sign-off) before merge.

One more pre-existing bound worth knowing (not a regression): full visible replay of the 92 MB session fails on both sides with 500 ndjson_frame_too_large — the ACP channel frame ceiling, unchanged by this PR — so historyPageSize is currently the only way to open such sessions at all, which strengthens the case for this PR.

Screenshots (real stack: bundled head CLI, real daemon, web-shell, mock model)

30,000-record (92 MB) session restored and opened in web-shell, only recent records rendered:

Prompt round-trip on a bounded-restored session (mock reply pong [[MOCKREPLY31]] arrives, sidebar lists the fixture sessions):

Environment: macOS 26.6 arm64, Node v24.18.1; head a8bde683, base (merge-base) ca449718; evidence branch pr-assets/9055-verify @ 3b47dadf.

中文版本

本地验证报告(维护者)

我在本地构建了此 PR,用合成大 transcript 对真实 daemon 做了 base/head A/B 对比。功能契约端到端全部成立——有界回放、分页元数据、全量回放兼容性、typed 上限、resume 路径、sibling 连续性均已验证。合并前需要维护者权衡的一个实测代价:冷有界恢复在本机比 base 慢约 3.3×,同时 warm/live refresh 路径快了约 11×(下详)。

方法:两个隔离 worktree——base = merge-base ca449718,head = a8bde683——各自 npm run build && npm run bundle,daemon 从打包产物 dist/cli.js 启动,隔离 QWEN_HOME,mock OpenAI SSE provider 记录请求台账。同一份原始 HTTP 探针文件(不 import PR 代码)对两侧用完全相同的 fixture 运行:按持久化 ChatRecord 格式手工构造的 JSONL(uuid/parentUuid 链、单调时间戳、每条记录埋 [[R######]] 标记以便断言回放内容)。fixture 覆盖:92 MB / 3 万条、253 MB / 8 万条、275 MB(超 256 MiB 上限)、40 MB 单 turn 页(超 32 MiB 页上限)、40 条 parity 会话。所有冷加载测量都用全新 daemon 且先用 sibling 会话预热 ACP child;时延取 daemon 日志的 server 侧 durationMs

验证结论(对应测试计划 1–7)

  1. 有界加载(92 MB,historyPageSize: 2):200,仅返回最后的对齐记录([[R029998]]/[[R029999]],9.4 KB),historyHasMore: true 且带 historyAnchorRecordId。base 也接受相同请求形状并返回有界响应 + historyHasMore,但只有 head 返回 historyAnchorRecordId——新增分页元数据真实且纯增量。
  2. 全量回放兼容:40 条会话上,不带 historyPageSize 的全量可见回放在归一化易变字段后 base 与 head 逐字节一致;有界页仅多出 anchor 字段。
  3. resume 路径:92 MB 会话 POST /session/:id/resume → 200,2.8 KB 响应,无 compactedReplay/liveJournal,会话仍可用。
  4. 有界恢复后的模型侧状态:对有界恢复的 40 条会话发 prompt,mock provider 收到完整 42 条消息历史。92 MB 会话上 context 守卫正确测得完整恢复历史(估算 21,091,154 tokens)并拒发——合成 fixture 超出任何真实上下文窗口;会话与 daemon 保持健康。
  5. 上限:275 MB transcript → 413 transcript_too_large(带与不带 historyPageSize 均如此);40 MB 单 turn 页 → 413 transcript_page_too_large(41,943,303 > 33,554,432)。所有失败都发生在 Session 发布之前;之后同一 daemon 上其它会话的 create/status/load/prompt 全部正常。base 对相同 fixture 返回 200 + 41.9 MB 无上限响应体、275 MB transcript 返回 200——文档化的行为变更属实,我认为方向正确。我未能端到端构造出 >10,000 update 的页面(turn 对齐选择让 10,501 条单 turn fixture 仍低于上限);该分支与已验证的 bytes 上限共享同一执行路径,且在 history-replay-page.test.ts 有单测覆盖。
  6. sibling 连续性:253 MB 冷加载期间的 status 采样与 prompt→model 时延(约 20 ms)两侧均无饿死——本机(M 系列、NVMe)无法复现 fix(serve): Preserve the current session when a large restore times out #8678 的事件循环阻塞,因此无法独立证实主打的时延收益;见下方代价分析。
  7. 测试/构建:受影响套件在 head 全部通过——core 1136、cli 1136、acp-bridge 575、channels/base 39;build/bundle 干净。CI 中失败的 Real daemon E2E / Java 11 是 self-hosted runner 的既有基础设施抖动(Set up Java 步骤;mainb65a0d60d912f4c6 两次 run 同款失败)——与本 PR 无关。

需要维护者权衡的实测代价

冷有界加载(ps=2,3 次) base head
92 MB / 3 万条 243 / 237 / 234 ms 777 / 790 / 804 ms(约慢 3.3×
253 MB / 8 万条 678 / 653 / 657 ms 2032 / 2037 / 2027 ms(约慢 3.1×
同 daemon 二次加载(live refresh) 150 / 161 / 166 ms 15 / 14 / 14 ms(约快 11×)

253 MB 有界冷加载期间的 RSS 峰值 head 仅低约 8%(+432/+439 MB vs +465/+480 MB)——与 PR 自述一致:由于模型侧历史仍需全量水合,这不是普适的内存下降。冷加载变慢随 transcript 大小线性扩展,仍远低于 60 s 恢复预算;在 base 的同步全量物化真正成为瓶颈的机器上(即 #8678 场景),head 的协作式索引扫描应明显好于这些数字——但在快速硬件上,选择性路径目前要付出旧全量解析约 3× 的墙钟时间。建议合并前看一眼索引扫描热路径(或至少明确签字认可)。

另一个值得了解的既有边界(非本 PR 回归):92 MB 会话的全量可见回放在两侧都以 500 ndjson_frame_too_large 失败——ACP 通道帧上限,本 PR 未改动——因此 historyPageSize 目前是打开这类会话的唯一途径,这反而强化了本 PR 的必要性。

环境:macOS 26.6 arm64,Node v24.18.1;head a8bde683,base(merge-base)ca449718;证据分支 pr-assets/9055-verify @ 3b47dadf

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

One non-blocking pagination-policy finding.

Comment thread packages/core/src/services/session-transcript-reader.ts
doudouOUC and others added 2 commits August 13, 2026 18:06
Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
@doudouOUC

Copy link
Copy Markdown
Collaborator Author

Addressed the current unresolved review batch at fb3ace2.

Thread Disposition
Pending Goal checkpoint evidence can brick restore Fixed: invalid/unavailable projected windows defer to existing runtime degradation
Missing unrestorable Goal cleared card Fixed for stream and bulk; correction delivery remains best-effort
Projection source bound to source ID after --fork-session Fixed for preloaded and writer-lease-deferred acquisition
Projected title display-text context Deferred as a non-critical follow-up after the sixth review round
realtime_message turn-boundary divergence Not taken: current head already aligns both reconstruction paths
Mismatched record session ID Not taken: intentional fail-closed ownership/integrity boundary with coverage
hideInheritedHistory continuation policy Deferred: non-blocking latent protocol extension; current routes do not combine the options

Verification on the pushed head: targeted Core/CLI tests, complete affected test files (111 Core + 745 CLI before the final best-effort guard, plus its targeted regression), npm run build, npm run typecheck, npm run lint, and two consecutive clean broad diff audits.

The 256 MiB transcript cap, explicit recent 32 MiB/10,000-update cap, omitted historyPageSize full visible replay compatibility, and scoped benchmark claims remain unchanged.

@qwen-code-ci-bot

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

Copy link
Copy Markdown
Collaborator

Sandboxed verification: ❌ not passed — findings reported (agent verdict) - workflow run

Ran the PR in an isolated, token-free container: A/B against the base build, mock-free harness assertions, targeted gates. Advisory evidence for human reviewers — not a review, an approval, or a CI check.

Scripted assertions: 34 passed · 1 failed · 35 total

中文 — 判定:❌ 不通过 · 报告了发现(agent 判定)

沙箱验证在隔离、无凭证的容器中执行了该 PR 的代码(与 base 构建 A/B 对照、无 mock harness 断言、定向门禁)。仅作为评审证据,不构成评审、批准或 CI 检查

脚本断言:34 通过 · 1 失败 · 35 总计

Verification report

PR 9055 — perf(serve): Restore large sessions selectively

Verdict: findings — 34/35 scripted assertions passed (1 unexpected failure: the uncompressed cold-restore latency cell). Verified head: fb3ace2e7f5774d3ad1944247a6dbf110ec4c083 (merge-ref HEAD^2; base tip HEAD^1 = 7f458b47ff). Correctness, parity, pagination metadata, and all three ceilings hold; the single finding is that the perf benefit is conditional on compression checkpoints — on uncompressed transcripts the new cold path is ~3× slower than the legacy full loader at the core seam.

中文摘要
  • 结论findings。35 条脚本断言 34 过 1 败;正确性、投影与旧全量加载器的状态一致性、分页元数据(hasMore/anchorRecordId)、256 MiB 索引上限与 32 MiB/10,000-update replay 上限全部成立。
  • A/B 结论(83.4 MiB / 30,000 记录 fixture,core 接缝):无压缩检查点时 head 冷恢复 慢于 base(中位 979 ms vs 301 ms,内存持平 ~260 MiB)——索引扫描已全量解析一遍 transcript,而 runtime 重建(完整 apiHistory)又把 30,000 条记录重读重解析一遍(见 01-ab-uncompressed-base-vs-head.png 与 stage 计时)。存在 chat_compression 检查点时选择性才生效:head 265–314 ms / 178 MiB vs base 300–379 ms / 260 MiB(02-ab-compressed-base-vs-head.png)。这与作者自述的 caveat 一致,但意味着对无压缩大会话该 perf 目标是退化的,需 reviewer 权衡。
  • Findings:F1(中)无压缩冷恢复 ~3× 慢于旧全量加载器;收益以压缩检查点为条件。
  • 未覆盖:daemon 级 sibling 连续性与 writer-lease 时序、hideInheritedHistory 独立探针、goalCheckpointWindow、resumeTokenCounts 跨 build 对照、export/fork/TUI reader、Windows/Linux、逐 commit 归因(shallow checkout)、仓库级 lint/bundle(PR 自带 CI 覆盖)。

Central claim + A/B

Central claim: cold loadSession/resumeSession with an explicit historyPageSize no longer materializes the full transcript before paginating; one selective projection bounds the replay while preserving runtime state.

Harness: cell.mjs drives the compiled dist/ of head (readRestoreProjection) and a base worktree at HEAD^1 (loadSession + the base build's own buildApiHistoryFromConversation, symmetric timed window) against an 83.37 MiB / 30,000-record fixture (same scale as the author's 86 MB evidence fixture), each cell in a fresh process. Realpath control: node_modules/@qwen-code/qwen-code-core symlinks into the head tree, so base cells import the base dist by absolute path; packages/core has no @qwen-code/* dependencies, so the control cannot load head code.

cell (83.4 MiB, limit=2) wall ms peak RSS oracle
base loadSession+apiHistory (uncompressed) 287–358 264–267 MiB 30,000 messages, apiHistory=30,000
head recent (uncompressed) 836–1,204 258–265 MiB page=[u15000,a15000], hasMore=true, anchor=u15000, apiHistory=30,000
base loadSession+apiHistory (compressed @​14900) 300–379 260–268 MiB apiHistory=202
head recent (compressed) 265–314 178–183 MiB page=[u15000,a15000], apiHistory=202

Witnesses: 01-ab-uncompressed-base-vs-head.png (3 fresh runs, median base 301 ms/265 MiB vs head 979 ms/258 MiB), 02-ab-compressed-base-vs-head.png.

Scripted A/B results: page shape/metadata correct (A3–A5), lastCompletedUuid parity (A8), full-replay compatibility — head kind:'all' replay uuids byte-identical to base's reconstruction, 30,000 records (A9), model history not truncated by the bounded page (A10). A6 fails: on the uncompressed fixture head is ~3× slower than base (see F1). With compression, head is faster and 30% lighter (A11–A13).

Findings

F1 (medium) — the perf benefit is conditional on compression; uncompressed cold restore regresses ~3× at the core seam

On the uncompressed fixture the selective path costs index-build + a second full read, while base reads once. Measured with the reader's own ForTest hooks (stage-timer.mjs): index build 217 ms (the index scan fully parses every line — already base's entire cost), then post-index 660 ms in which selectedLineReads = 30,000 (83.3 MiB re-read and re-parsed) because runtime.apiHistory requires every record when no compression checkpoint exists; the "selective" read only bounds the 2-record replay page. Reproduce: node repeat-ab.mjs 3 and node stage-timer.mjs recent (harness dir).

With a chat_compression checkpoint at turn 14,900 the mechanism engages: post-index reads drop to the summary + tail (apiHistory=202), and head beats base on both axes (A11–A12). This is consistent with the author's disclosed caveat ("these fixtures contain no compression record … not a universal memory reduction"), but the #8678 deadline scenario does not promise compressed sessions, so reviewers should weigh the uncompressed regression against the bounded-replay benefit. Not a correctness defect: parity holds in both regimes (A10, A13).

Direction (unmeasured — not a shipped fix)

When no compression checkpoint exists, the records parsed during the index scan are exactly the records the runtime reconstruction re-reads; the reader already threads a preloadedRecords context through AggregatedRecordReadContext. Reusing the index-scan parses for runtime reconstruction (trading index memory for the second parse, gated on snapshot size) would remove the 660 ms second pass. I did not implement or measure this; it is a direction for the author, not evidence.

Secondary claims (all verified)

  • Runtime-state parity vs the legacy full loader (rich fixture: fork off the active chain, interrupted tool pair, compression, file-history snapshot, artifact events, attribution, telemetry, background notification, title/lineage/source, Goal create): P1–P9 all pass — apiHistory byte-equal to base's buildApiHistoryFromConversation, fileHistorySnapshots/artifactSnapshot/historyGaps/lastCompletedUuid/recording metadata equal, fork branch excluded identically on both builds, background notifications restored. Incidental parity data point: a fixture variant with a malformed artifact payload degraded identically on both builds (same historyGaps entry, same truncated chain).
  • Ceilings: 257 MiB sparse transcript → typed SessionTranscriptTooLargeError before any Session publication (C1, 04-256mib-ceiling.png); the CLI replay guard (collectHistoryReplayUpdates with the daemon's constants) throws HistoryReplayLimitError at 10,001 updates and at 33.6 MB > 32 MiB, with a live small-replay control (E0–E2, 03-envelope-limits.png).
  • Test load-bearing: reverting the bounded-recent selection hunk (recent→all) makes 4/111 reader tests fail with the expected-vs-actual page mismatch; restoring returns 111/111 green (05-vacuity-mutation.png).

Targeted gates (all green, 3,223 tests)

core session-transcript-reader.test.ts 111; core config/client/goal-runtime/chatRecording/file-history 1,025; cli acpAgent/Session/history-replay-page/recovered-goal-update/daemon-worker/config/scheduled-task-keepalive 1,473; acp-bridge bridge.test.ts 575; channels/base AcpBridge.test.ts 39. Head core typecheck clean; base core typecheck clean after the environment fix below.

Not covered

  • Daemon-level behavior: sibling-session continuity during restore, writer-lease timing, the 60 s budget under load — my seam is SessionService/reader, not the live daemon.
  • hideInheritedHistory hidden-Goal fence: covered only by the PR's own tests, not independently probed.
  • goalCheckpointWindow (absent on my fixture) and a cross-build oracle for resumeTokenCounts/attribution (base exposes no core seam for them).
  • Export/fork/TUI/non-interactive full-content readers; Windows/Linux E2E; per-commit attribution (shallow depth-2 checkout — only the head commit is locally reachable, so the aggregate HEAD^1..HEAD diff was verified); repo-wide lint/bundle (the PR's own CI covers these).

Methodology

Environment: CI merge-ref checkout (depth 2) in node:22-bookworm; npm ci + npm run build pre-run at head. Base control: git worktree add tmp/base-tree HEAD^1, rebuilt packages/core there; the nested worktree initially failed typecheck/resolution because npm hoists version-conflicting deps (diff, fdir, ignore, mime, ajv, …) into packages/core/node_modules, which a worktree lacks — fixed with a symlink, after which base typechecked clean (exit 0), proving the errors environmental. Harnesses (gen-fixtures.mjs, cell.mjs, run-all.mjs, repeat-ab.mjs, stage-timer.mjs, envelope-limits.mjs) are mock-free: real compiled dist/, real JSONL fixtures (83.4 MiB uncompressed + compressed variants, rich parity, malformed, 257 MiB sparse), one fresh process per cell, peak RSS from /proc/self/status VmHWM. Raw logs in logs/, per-cell dumps in cells/, captures in evidence/.

Evidence images

01-ab-uncompressed-base-vs-head

02-ab-compressed-base-vs-head

03-envelope-limits

04-256mib-ceiling

05-vacuity-mutation

Harness scripts and raw logs are in the workflow run artifacts (7-day retention).

Qwen Code · sandboxed verification

@qwen-code-ci-bot

Copy link
Copy Markdown
Collaborator

Triage re-run completed without a new review.

⚠️ The bot has neither a verdict nor a deferral on fb3ace2e7f5774d3ad1944247a6dbf110ec4c083 — no APPROVED, CHANGES_REQUESTED, or COMMENTED review of its own. A DISMISSED one does not count: dismiss_stale_reviews voids the bot's approval on every push, which is exactly when a fresh one is needed. If this re-run was meant to review or approve, it did not, and an approval left by another account is a separate vote that does not count as the bot's own.

⚠️ 机器人在 fb3ace2e7f5774d3ad1944247a6dbf110ec4c083既没有裁决也没有 defer —— 没有属于它自己的 APPROVEDCHANGES_REQUESTEDCOMMENTED 评审。DISMISSED 不算:dismiss_stale_reviews 会在每次推送时作废机器人的批准,而那恰恰是需要一次新批准的时刻。如果这次重跑本应评审或批准,那么它没有做到;而其他账号留下的批准是另一张票,不能算作机器人自己的。

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

上方各阶段评论已更新为最新结果。查看工作流运行

@doudouOUC
doudouOUC requested a review from samuelhsin August 13, 2026 10:48
Comment thread packages/core/src/services/session-transcript-reader.ts
Comment thread packages/cli/src/config/config.ts
Comment thread packages/cli/src/acp-integration/session/Session.ts
Comment thread packages/core/src/services/session-transcript-reader.ts
Comment thread packages/core/src/services/session-transcript-reader.ts
Comment thread packages/core/src/services/chatRecordingService.ts
Comment thread packages/core/src/services/session-transcript-reader.ts
Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
@doudouOUC

Copy link
Copy Markdown
Collaborator Author

Review round summary for 941c54b536:

Thread Decision Result
Writer-lease projection deferral Fixed Non-ACP hosts now preload selective restore state; ACP lease deferral is unchanged.
Foreign-session transcript records Not taking Intentional fail-closed ownership/integrity boundary; duplicate of the resolved thread.
Hidden recovered Goal updates Not taking Same Goal ID remains private because every later snapshot still reveals hidden inherited state; replacement/clear lifts the fence.
Small recent-page leading prefix Not taking The bounded alignment path already absorbs a fitting prefix and reports no more history; oversized prefixes remain intentionally paginated.
Hidden-history continuation Deferred Duplicate non-blocking protocol extension after six review rounds.
Auto-title display-text projection Deferred Duplicate non-critical projection-contract extension after six review rounds.
Cold index pending reuse Not taking Fresh request-local cold scans are required across writer-lease acquisition; bridge admission already coalesces identical restore requests.

Verification: CLI config tests 334/334, repository build, repository typecheck, git diff --check, and two clean diff-audit passes.

@doudouOUC

Copy link
Copy Markdown
Collaborator Author

@qwen-code /triage

@qwen-code-ci-bot

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

Copy link
Copy Markdown
Collaborator

Sandboxed verification: ❌ not passed — findings reported (agent verdict) - workflow run

Ran the PR in an isolated, token-free container: A/B against the base build, mock-free harness assertions, targeted gates. Advisory evidence for human reviewers — not a review, an approval, or a CI check.

Scripted assertions: 37 passed · 1 failed · 38 total

中文 — 判定:❌ 不通过 · 报告了发现(agent 判定)

沙箱验证在隔离、无凭证的容器中执行了该 PR 的代码(与 base 构建 A/B 对照、无 mock harness 断言、定向门禁)。仅作为评审证据,不构成评审、批准或 CI 检查

脚本断言:37 通过 · 1 失败 · 38 总计

Verification report

PR 9055 — perf(serve): Restore large sessions selectively (follow-up round)

Verdict: findings — 37/38 scripted assertions passed (1 fail: PERF-U, the carried-over F1 uncompressed cold-restore regression, re-measured at the new head). Verified head: 941c54b5368101807c58cadf6665764bd7b5e0e8 (git rev-parse HEAD^2; merge-ref checkout, base tip HEAD^1 = 9d55fab5f8). The single new commit since the previous round (941c54b5 "fix(serve): Align selective restore lease gating", +1 production line) is verified correct and load-bearing; the core restore seam is byte-identical to the previously verified head, and every carried-over measurement was re-run against the new base.

中文摘要
  • 结论findings。38 条脚本断言 37 过 1 败;唯一失败是上一轮的 F1(无压缩 transcript 冷恢复在 core 接缝比 base 慢约 3×),在新 head 941c54b5 + 新 base 9d55fab5复测成立(中位 1,119 ms vs 391 ms,2.86×;首次新鲜运行 839 vs 282 ms,2.98×)。正确性、投影与旧全量加载器字节级一致、分页元数据、256 MiB 索引上限、32 MiB/10,000-update envelope 上限、全部 3,224 条定向门禁测试均通过。
  • 增量 commit(本轮唯一新增,production 仅 +1 行):CLI 的 projection 延迟门控加上 isAcpMode === true。验证结论:core 侧延迟投影的唯一消费者(activateChatRecording → lease 获取后取投影)本身就只在 ACP 模式下激活,修复后两侧条件逐字对齐;移除该子句的变异体在新增测试的目标断言上变红(projectionSource 被调用 0 次而非 1 次),证明修复 load-bearing 且测试非空洞。
  • Findings:F1(中,维持)无压缩冷恢复 ~3× 慢于旧全量加载器,收益以压缩检查点为条件;F2(低,新)defer 分支(ACP+lease 下延迟取投影)与其 core 消费路径无任何测试钉住,属覆盖缺口。
  • 未覆盖:daemon 级 sibling 连续性与 writer-lease 时序、hideInheritedHistory 独立探针、goalCheckpointWindow、export/fork/TUI reader、Windows/Linux、commit 1–4 的逐个归因(上轮已在 fb3ace2e 验证,本轮验证聚合 diff + 精确增量)。

Previous-finding status (follow-up round)

# Finding (previous report, head fb3ace2e) Severity Status at new head 941c54b5
F1 Uncompressed cold restore regresses ~3× at the core seam; benefit conditional on compression checkpoints medium Stands — re-measured. Median head 1,119 ms vs base 391 ms (2.86×, capture run); first fresh run 839 vs 282 ms (2.98×). Mechanism re-confirmed with the reader's own ForTest hooks: index build 229–329 ms, then a post-index pass re-reading all 30,001 records (84.8 MiB) because runtime.apiHistory needs every record without a compression checkpoint (02-f1-stage-timer.png). The delta commit touches only packages/cli/src/config/config.ts (+1 line), cannot affect this seam; core sources are byte-identical between fb3ace2e and 941c54b5 (git diff fb3ace2e..HEAD^2 --stat = 2 cli files). One measured-value change vs the previous report: head peak RSS is now lower than base (202 vs 361 MiB; harness places fixtures in a separate process this round), so the regression is wall-time-only.
Ceilings (256 MiB index; 32 MiB / 10,000-update envelope) verified Re-verified, hold (CEILING-256, E1/E2; base moved to 9d55fab5, head rebuilt).
Reader bounded-recent tests load-bearing (4/111 red on revert) verified Re-verified: same 4 tests, same page-shape assertion (04-vacuity-mutations.png).
Malformed-record parity degrades identically on both builds incidental Carried forward without re-run: input closure (core reader + deps + lockfile) proven unchanged by the delta diff; not re-measured this round.

Central claim + A/B (re-measured at new head and new base)

Central claim: cold restore with an explicit historyPageSize no longer materializes the full transcript before paginating; one selective projection bounds the replay while preserving runtime state.

Harness: cell.mjs drives the compiled dist/ of head (readRestoreProjection) and a base worktree at HEAD^1 (loadSession + the base build's buildApiHistoryFromConversation, symmetric timed window) against an 84.11 MiB / 30,001-record fixture (source record + 15,000 turns, same scale as the author's 86 MB evidence fixture), plus a chat_compression variant at turn 14,900. Fresh process per cell; fixture placement happens in a separate process so VmHWM/wall reflect only the restore.

cell (84.1 MiB, limit=2) wall ms (3 runs) median peak RSS (median) oracle
base loadSession+apiHistory (uncompressed) 400 / 391 / 368 391 361 MiB apiHistory=30,000, last=a15000
head recent (uncompressed) 1,119 / 1,187 / 1,098 1,119 202 MiB page=[u15000,a15000], hasMore=true, anchor=u15000, apiHistory hash byte-equal to base
base loadSession+apiHistory (compressed @​14900) 355 / 390 / 380 380 213 MiB apiHistory=202 (2 summary + 200 tail)
head recent (compressed) 367 / 327 / 354 354 119 MiB page identical, apiHistory hash byte-equal to base

Witness: 01-ab-matrix-base-vs-head.png (full 26-assertion run as printed). Scripted results: page shape/metadata/anchor correct (B1–B3), apiHistory parity byte-equal in both regimes (P1–P3, D1–D3), lastCompletedUuid parity (L1–L3), full-replay compatibility — head kind:'all' replay uuids byte-identical to base's reconstruction, 30,001 records (ALL-REPLAY), compressed head faster and ~44% lighter (PERF-C, RSS-C). PERF-U fails: uncompressed head is 2.86× slower than base — that is F1.

Delta commit verification (941c54b5, +1 production line)

The whole round's delta is one clause added to the CLI projection-defer gate (packages/cli/src/config/config.ts:2012):

deferProjectionUntilWriterLease =
  sessionRestoreProjectionSource !== undefined &&
  (argv.chatRecording ?? settings.general?.chatRecording ?? true) &&
  isAcpMode === true &&            // ← added
  settings.experimental?.sessionWriterLease === true;

Two-end alignment (checked on both ends). The sole consumer of a deferred projection is core Config.activateChatRecording() (config.ts:3176), which early-returns unless chatRecordingEnabled && sessionWriterLeaseEnabled, where sessionWriterLeaseEnabled = experimentalZedIntegration === true && params.sessionWriterLeaseEnabled === true (config.ts:2301) and experimentalZedIntegration = argv.acp || argv.experimentalAcp (cli config.ts:2270) — the same predicate as the gate's isAcpMode (config.ts:1859); the chatRecording expression resolves identically on both sides (cli config.ts:2011 vs 2425). Pre-fix, a non-ACP host with experimental.sessionWriterLease: true deferred the projection and nothing ever acquired it: activateChatRecording() early-returns when sessionWriterLeaseEnabled is false (which it always is outside ACP mode), and the CLI's else branch that would have fallen back to loadSession is skipped whenever a projection source exists — so Config was constructed with neither sessionRestoreProjection nor sessionData, i.e. a restore with no runtime state at all. The mutant run demonstrates this operationally (projectionSource called 0 times, Config params missing the projection). Post-fix the producer side can defer only where the consumer side can consume. Production provider is acpAgent.ts:12216 only (gemini.tsx passes no hostPolicy), so ACP behavior is unchanged and the fix protects embedding non-ACP hosts.

Vacuity / mutation matrix (04-vacuity-mutations.png, positive control = restored files green again, sha256-verified byte-identical, then 334/334 config gate and 111/111 reader gate green):

guard the PR introduces suite mutant result
isAcpMode === true clause (cli gate) new test in config.test.ts remove clause RED at the intended assertionexpected "spy" to be called once, but got 0 times (projection deferred and never consumed); restored → green
bounded-recent selection (selectRestoreReplayUuids) session-transcript-reader.test.ts (111) recent→all 4 RED on page-shape (anchorRecordId/hasMore/2-record page vs full list), 107 unaffected; restored → green

Survivor classification (completeness reporting, not merge conditions): no test pins the defer=true branch — neither the CLI's "ACP + lease → do not preload" path nor the core post-lease consumption (config.ts:3217–3224) is referenced by any *.test.ts (grep across the repo for after_writer_lease, projection_acquisition, sessionRestoreProjectionSource in tests = 0 hits). Coverage gap, not dead code: that branch is the daemon's production path. See F2.

Findings

F1 (medium, stands) — the perf benefit remains conditional on compression; uncompressed cold restore regresses ~2.9–3× at the core seam

Re-measured at the new head against the new base. On the uncompressed fixture the selective path pays index-build + a second full read, while base reads once. Stage timing via the reader's own ForTest hooks (f1-stages.mjs, two runs): index build 229–329 ms (the index scan already parses every line — base's entire cost), then post-index 720–770 ms with selectedLineReads = 30,001 (84.8 MiB re-read and re-parsed) because runtime.apiHistory requires every record when no compression checkpoint exists; the selective read bounds only the 2-record replay page. With the chat_compression checkpoint the mechanism engages: post-index reads collapse to 202 records (0.6 MiB) and head beats base on both axes. Reproduce: node harness/run-ab.mjs and node harness/f1-stages.mjs.

Consistent with the author's disclosed caveat ("fixtures contain no compression record … not a universal memory reduction"), but #8678's deadline scenario does not promise compressed sessions, so reviewers should weigh the uncompressed wall-time regression against the bounded-replay benefit. Not a correctness defect: parity holds in both regimes (P1–P3, D1–D3). The previous round's unmeasured direction (reuse index-scan parses via the existing preloadedRecords context, gated on snapshot size) remains the natural fix path; not implemented or measured here.

F2 (low, new) — the defer branch has no test on either end

The mutation matrix shows the new test pins only the non-ACP preload side. The defer=true path (ACP + lease: projection withheld at config time, fetched after SessionWriterLease.acquire) is exercised by no unit test on the CLI side and no core test references sessionRestoreProjectionSource at all. Behavior verified here by static trace only (both ends align, gate ↔ consumer). A test asserting projectionSource is NOT called at config time under {acp:true} + sessionWriterLease:true, and one asserting core consumes the deferred projection after lease acquisition, would close the gap. Not a merge blocker: this is completeness, and the path is the PR's own daemon production flow.

Not covered

  • Daemon-level behavior: sibling-session continuity during restore, writer-lease timing, the 60 s budget under load — seams verified here are SessionTranscriptReader/SessionService/loadCliConfig, not a live daemon.
  • hideInheritedHistory hidden-Goal fence: covered only by the PR's own tests, not independently probed (both rounds).
  • goalCheckpointWindow (absent from my fixtures) and a cross-build oracle for resumeTokenCounts (base exposes no core seam for it).
  • Malformed-record parity: carried forward from the previous round on the proven-unchanged input closure (delta touches only cli config; lockfile untouched), not re-driven.
  • Export/fork/TUI/non-interactive full-content readers; Windows/Linux E2E.
  • Per-commit attribution for commits 1–4: shallow depth-2 checkout makes them unreachable (git rev-list HEAD^1..HEAD^2 returns 1 vs 5 in the snapshot); they were individually exercised by the previous round at fb3ace2e, and this round verifies the aggregate HEAD^1..HEAD diff plus the exact delta fb3ace2e..HEAD^2.
  • Repo-wide lint/bundle (the PR's own CI covers these); head typecheck is implied by the pre-run npm run build (tsc) at HEAD; base core typechecked clean (exit 0) after the environment fix below.

Methodology

Environment: CI merge-ref checkout (depth 2) in node:22-bookworm; npm ci + npm run build pre-run at head; artifact dir tmp/pr9055-verify-20260813-120944/. Base control: git worktree add tmp/base-tree HEAD^1 (9d55fab5f8), rebuilt packages/core there. Two symlinks were needed (and are quoted as the isolation control): root node_modules (the core tsconfig's paths maps @lydell/node-pty to ../../node_modules/…/node-pty.d.ts, absent in a worktree — without it base typecheck fails with TS7016) and packages/core/node_modules (npm-hoisted version-conflicting deps). Realpath assertion: readlink -f on both resolves into the head-installed tree, which is a clean control because the PR changes no package.json/lockfile (verified: neither appears in git diff HEAD^1..HEAD --name-only); base core has zero @qwen-code/* dependencies (dependency list enumerated), so base cells importing base dist by absolute path cannot load head code. Harnesses (gen-fixtures.mjs, prep.mjs, cell.mjs, run-ab.mjs, stage-timer.mjs, f1-stages.mjs, envelope-limits.mjs, mutations.mjs) are mock-free: real compiled dist/, real JSONL fixtures (84.1 MiB uncompressed + compressed variants, rich parity fixture with fork/interrupted-tool-pair/goal/notification/title, 259.99 MiB sparse), one fresh process per cell, peak RSS from /proc/self/status VmHWM. All 38 assertions are scripted exit/oracle comparisons; raw logs in logs/ (ab-results.json, gate-*.log, m1/m3-*-mutant.log, f1-stages.log, envelope-limits.log), captures in evidence/. Gate liveness proven by the two mutations (both suites went red under a planted violation, green after restore). Mutation sources were restored sha256-byte-identical (e210b151… config.ts, 3e90adc8… reader) and git status is clean.

Evidence images

01-ab-matrix-base-vs-head

02-f1-stage-timer

03-envelope-limits

04-vacuity-mutations

Harness scripts and raw logs are in the workflow run artifacts (7-day retention).

Qwen Code · sandboxed verification

@qwen-code-ci-bot

Copy link
Copy Markdown
Collaborator

Triage re-run completed without a new review.

⚠️ The bot has neither a verdict nor a deferral on 941c54b5368101807c58cadf6665764bd7b5e0e8 — no APPROVED, CHANGES_REQUESTED, or COMMENTED review of its own. A DISMISSED one does not count: dismiss_stale_reviews voids the bot's approval on every push, which is exactly when a fresh one is needed. If this re-run was meant to review or approve, it did not, and an approval left by another account is a separate vote that does not count as the bot's own.

⚠️ 机器人在 941c54b5368101807c58cadf6665764bd7b5e0e8既没有裁决也没有 defer —— 没有属于它自己的 APPROVEDCHANGES_REQUESTEDCOMMENTED 评审。DISMISSED 不算:dismiss_stale_reviews 会在每次推送时作废机器人的批准,而那恰恰是需要一次新批准的时刻。如果这次重跑本应评审或批准,那么它没有做到;而其他账号留下的批准是另一张票,不能算作机器人自己的。

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

上方各阶段评论已更新为最新结果。查看工作流运行

@ytahdn

ytahdn commented Aug 13, 2026

Copy link
Copy Markdown
Collaborator

Detailed review follow-up for current head 941c54b5:

I found no remaining correctness, security, data-loss, or restore-scope blocker. Two non-blocking follow-ups remain worth recording:

  1. For a large transcript without a compression checkpoint, selective cold restore still builds the full index and then re-reads the active records needed for API history. The existing verification measured roughly a 2.9x wall-time regression at the core seam versus the old single-pass loader, although the daemon-level 86 MB restore remained around 1.35 s and used less peak memory. This is an accepted performance trade-off for this PR, not a correctness failure; a future optimization could reuse parsed index-scan records when that is cheaper.
  2. The production ACP + writer-lease path that defers sessionRestoreProjectionSource until lease acquisition is aligned end-to-end, but it lacks a focused unit test proving both that eager loading is skipped and that the deferred source is consumed after ownership is acquired. Current daemon E2E/CI provides integration evidence; a targeted regression test would make this lifecycle invariant easier to maintain.

Given the number of review rounds and the project rule to land only Critical fixes at this stage, I recommend deferring both items to follow-up work. They do not block approval.

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

Approved at 941c54b5368101807c58cadf6665764bd7b5e0e8. I found no remaining blocking correctness, security, data-loss, or session-scope issue. The two non-blocking follow-ups are recorded in the PR discussion.

@doudouOUC

Copy link
Copy Markdown
Collaborator Author

Thanks — deferring both advisory findings. The uncompressed cold-restore wall-time trade-off is already disclosed and does not affect restore correctness, bounded replay, or the validated daemon-level behavior; avoiding the second pass is follow-up performance work outside this PR. The focused deferred-projection unit coverage is also a non-blocking completeness improvement, with the production ACP + writer-lease path covered by daemon E2E. After the existing review rounds, the repository policy limits this stage to Critical fixes, and the latest maintainer review confirms neither item blocks approval. No branch change is needed.

@yiliang114 yiliang114 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Fresh independent review of head 941c54b (all 44 files, focused on the restore path). No P0/P1 found.

What I verified:

  • Index build + selective seek: the index retains only hints (no payloads), the 256MiB index cap is enforced before indexing, and materialization seeks selected (offset,length) segments with cooperative yielding and a single-line cache. A post-read snapshot-signature check fails the restore closed if the transcript changes mid-restore. Torn/partial JSONL still goes through the tolerant line parser.
  • Replay shapes: all/recent/none all behave per design. none restores full runtime state with no replay side effects. recent uses bounded backward selection, and small sessions still absorb the leading metadata prefix (no-earlier-turn branch); the leading-metadata test pins hasMore=false.
  • Bounds fail closed: 32MiB / 10k-update replay envelope limits are enforced inside sendUpdate and mapped to typed errors (-32010/-32011/-32012); limit normalization rejects out-of-range input.
  • Concurrency/cache: index cache re-keys on (fileIdentity, size, mtime); cold restore deliberately builds fresh for writer-lease freshness and offers non-clobberingly to the cache; same-shape restores coalesce at bridge admission.
  • No event loss/dup: the api-history, resume-token, artifact, and file-history accumulators are behavior-preserving extractions of the legacy loader (parity test present); restore is read-only and does not touch the live writer path; bridge event-epoch/early-event buffering is unchanged.
  • Back-compat: the legacy sessionData/restoreSessionState path is intact, bridge fields are additive, recoverGoalFromRecords/buildApiHistoryFromConversation/getResumeTokenCounts wrappers are preserved, and the channel/keepalive load->resume switch is consistent (resume = replay:none, still returns the event cursor).

Status of wenshao's findings at this head:

  • Checkpoint-window hard-fail: fixed. Accumulator construction and finish() now catch EvidenceSourceUnavailableError/InvalidGoalEvidenceReferenceError and omit the window, falling back to runtime degradation (design doc updated to match).
  • Unrestorable-Goal cleared card: fixed. renderPreparedGoalUpdate now receives replayedRecords and emits on both streamed and bulk paths.
  • --fork-session projection binding: fixed. The projection source resolves the forked id and the deferred path binds the final session id.
  • writer-lease predicate mismatch (config.ts:2009): fixed on this head. Deferral now requires ACP mode, matching core's effective predicate; non-ACP hosts preload instead of silently restoring empty. I re-derived both predicates to confirm parity.
  • realtime_message turn-boundary divergence: not present at head; rebuildTurnBoundaries and getSessionTurnRecordHint both exclude it.
  • Deferred/intentional remainders (non-blocking): userDisplayTextsForTitle not projected, hideInheritedHistory continuation-paging contract, foreign-sessionId fail-closed boundary, hidden-Goal update fence, cold index-build dedup. I agree none are P0/P1.

P2/P3 nits (non-blocking):

  • restoreProjectedState leaves userDisplayTextsForTitle empty; until the promised follow-up lands, a resumed session with no custom title may auto-title from the post-restore prompt and rewindRecording's projectionStart math clamps to 0. Worth tracking the follow-up issue.
  • readPage resolves beforeRecordId against the unfiltered replayUuids while the anchor can come from a hideInheritedHistory-filtered list; safe today since no daemon entrypoint combines the two, but a short comment would prevent a future foot-gun.

CI on 941c54b: green (only the review-pr automation check still running).

@doudouOUC
doudouOUC added this pull request to the merge queue Aug 13, 2026
Merged via the queue into main with commit c0e649b Aug 13, 2026
227 of 234 checks passed
@qwen-code-ci-bot

Copy link
Copy Markdown
Collaborator

Released in v0.21.12.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants