Skip to content

fix(core): allow rewind after compressed history - #6358

Merged
yiliang114 merged 7 commits into
mainfrom
fix/6318-rewind-after-compress
Jul 7, 2026
Merged

fix(core): allow rewind after compressed history#6358
yiliang114 merged 7 commits into
mainfrom
fix/6318-rewind-after-compress

Conversation

@yiliang114

Copy link
Copy Markdown
Collaborator

What this PR does

This PR teaches the rewind turn-counting path to treat the synthetic /compress summary prefix as startup context, so real user prompts after compression remain rewindable. It recognizes the compression ack pair and skips the optional post-compression attachment entry only when that third entry is user text, not a tool/function response.

Why it's needed

Fixes #6318. After /compress, the saved summary is plain user-shaped content, so the existing rewind mapping counted it as a real prompt and could reject rewinding to later user prompts. This keeps the fix bounded to compressed-history prefix detection and preserves degraded tool-call fallback behavior.

Reviewer Test Plan

How to verify

Reviewers can confirm that histories beginning with a compressed summary plus Got it. Thanks for the additional context! no longer contribute synthetic turns to /rewind indexing. The added tests cover compressed history without attachments, compressed history with post-compact text/reminder attachments, and a degraded fallback where a function response follows the compression ack and must not be skipped as an attachment entry.

Evidence (Before & After)

N/A for UI evidence. Local verification passed: cd packages/core && npx vitest run src/utils/environmentContext.test.ts, cd packages/cli && npx vitest run src/ui/utils/historyMapping.test.ts, and npm run typecheck. npm install also completed successfully and ran the repository prepare/build/bundle lifecycle in this clean worktree.

Tested on

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

Environment (optional)

macOS local worktree, Node/npm workspace dependencies installed with npm install.

Risk & Scope

  • Main risk or tradeoff: The detection relies on the existing compression acknowledgement sentinel, which is intentionally distinct from the legacy startup-context acknowledgement.
  • Not validated / out of scope: Full interactive TUI reproduction on Windows from the original report was not run locally.
  • Breaking changes / migration notes: None.

Linked Issues

Fixes #6318

中文说明

What this PR does

这个 PR 让 /rewind 的用户轮次计数逻辑把 /compress 生成的摘要前缀视为结构性上下文,因此压缩之后真实输入的用户 prompt 仍然可以被 rewind。它会识别压缩专用的 ack pair,并且只有第三条记录是用户文本时才跳过可选的压缩后附件记录;如果第三条是 tool/function response,则不会误判为附件记录。

Why it's needed

Fixes #6318/compress 之后保存的摘要是普通 user 形态的内容,原来的 rewind mapping 会把它当成真实用户 prompt 计数,从而可能拒绝 rewind 到后续用户 prompt。这个修复只限定在压缩历史前缀识别上,并保留 degraded tool-call fallback 的行为。

Reviewer Test Plan

How to verify

Reviewer 可以确认以压缩摘要和 Got it. Thanks for the additional context! 开头的历史不再把这些 synthetic turns 计入 /rewind 索引。新增测试覆盖了无附件的压缩历史、有压缩后文本/提醒附件的压缩历史,以及 compression ack 后跟 function response 的 degraded fallback,后者不能被跳过为附件 entry。

Evidence (Before & After)

非 UI 变更,无截图。已通过本地验证:cd packages/core && npx vitest run src/utils/environmentContext.test.tscd packages/cli && npx vitest run src/ui/utils/historyMapping.test.tsnpm run typecheck。在这个干净 worktree 中 npm install 也执行成功,并跑完了仓库的 prepare/build/bundle 生命周期。

Tested on

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

Environment (optional)

macOS 本地 worktree,使用 npm install 安装 Node/npm workspace 依赖。

Risk & Scope

  • Main risk or tradeoff: 检测逻辑依赖已有的 compression ack sentinel,该 sentinel 与 legacy startup-context ack 是刻意区分的。
  • Not validated / out of scope: 没有在原始报告的 Windows 环境中跑完整交互式 TUI 复现。
  • Breaking changes / migration notes: 无。

Linked Issues

Fixes #6318

@qwen-code-ci-bot

qwen-code-ci-bot commented Jul 6, 2026

Copy link
Copy Markdown
Collaborator

Thanks for the PR, @yiliang114!

Template looks good ✓ — all required sections present with bilingual body.

Problem: observed bug with evidence. Fixes #6318 — a user reports that after /compress, /rewind rejects rewinding to a post-compression prompt that clearly exists. The issue is labeled type/bug + priority/P2, with a screenshot showing the exact scenario. Root cause is concrete: the compressed-history prefix [user(summary), model(ack)] produced by composePostCompactHistory looks like real user text to isUserTextContent, so the rewind turn-counting inflates by 2–3 synthetic turns and rejects valid targets.

Direction: aligned, minimal. The fix is in the right place — getStartupContextLength is already the chokepoint that computeApiTruncationIndex (CLI) and client.ts (core) use to skip structural history. Extending it to recognize the compression ack sentinel ("Got it. Thanks for the additional context!") — distinct from the legacy ack ("Got it. Thanks for the context!") — is the least-invasive path. The scope matches the problem.

Approach: tight. The diff is 108 production lines / 262 test lines across 5 files. Production changes are in packages/core/src/utils/environmentContext.ts (76+6), packages/cli/src/ui/utils/historyMapping.ts (26+5), and packages/cli/src/acp-integration/session/Session.ts (6+2). One new private helper (detectCompressedPrefixLength), one new UI helper (findLastSuccessfulCompressionIndex), and the includeCompressed option flag. The dual-sentinel corroboration (both Resume the prior task AND exact ack match) prevents false positives. The UI-side compression boundary guard in computeApiTruncationIndex is good defense-in-depth.

Core-module scope: 108 production lines total, well under the 500-line threshold. Downstream consumers (client.ts lines 816, 857) use getStartupContextLength without includeCompressed, which is correct — they're for startup-context refresh/restore, not rewind. The new option defaults to false, so existing behavior is preserved.

Moving on to code review and testing. 🔍

中文说明

感谢 @yiliang114 的 PR!

模板完整 ✓ — 所有必填部分齐全,含双语正文。

问题:有证据的真实 bug。 修复 #6318 —— 用户报告 /compress 之后,/rewind 拒绝 rewind 到明显存在的后续 prompt。该 issue 被标记为 type/bug + priority/P2,附有截图展示完整场景。根因具体明确:composePostCompactHistory 产出的压缩前缀 [user(summary), model(ack)]isUserTextContent 看来像真实用户文本,导致 rewind 轮次计数多出 2–3 个 synthetic 轮次,从而拒绝合法目标。

方向:对齐且最小化。 修复位置正确——getStartupContextLength 已是 computeApiTruncationIndex(CLI)与 client.ts(core)用来跳过结构性历史的唯一入口。扩展它去识别压缩专用 ack sentinel("Got it. Thanks for the additional context!")——与 legacy ack("Got it. Thanks for the context!")刻意区分——是侵入性最小的路径。范围匹配问题。

方案:紧凑。 5 个文件,108 行生产代码 / 262 行测试。生产代码改动位于 packages/core/src/utils/environmentContext.ts(76+6)、packages/cli/src/ui/utils/historyMapping.ts(26+5)、packages/cli/src/acp-integration/session/Session.ts(6+2)。新增一个私有 helper(detectCompressedPrefixLength)、一个 UI helper(findLastSuccessfulCompressionIndex),以及 includeCompressed 选项。双重 sentinel 验证(同时检查 Resume the prior task 和精确 ack 匹配)防止误判。UI 侧 computeApiTruncationIndex 中的压缩边界守卫是很好的纵深防御。

Core 模块范围:共 108 行生产代码,远低于 500 行阈值。下游消费者 client.ts(行 816、857)使用 getStartupContextLength不传 includeCompressed——这是正确的,它们用于启动上下文的刷新/恢复,而非 rewind。新选项默认 false,现有行为保持不变。

进入代码审查与测试 🔍

Qwen Code · qwen3.7-max

@qwen-code-ci-bot

qwen-code-ci-bot commented Jul 6, 2026

Copy link
Copy Markdown
Collaborator

Code Review

The revised diff is clean and focused. Two improvements over the initial version stand out:

1. Dual-sentinel corroboration. detectCompressedPrefixLength now requires BOTH firstText.includes('Resume the prior task') AND exact ack match ('Got it. Thanks for the additional context!'). The initial version only checked the ack, which @wenshao correctly flagged as insufficient — a false positive would cause the same data loss as the original bug. The resume-trailer check is load-bearing: postProcessSummary always appends it, so any real compressed prefix will have both sentinels, and a coincidental match on just the ack is implausible.

2. UI-side compression boundary guard. computeApiTruncationIndex now rejects targets at or before the last successful compression marker (findLastSuccessfulCompressionIndex). This is defense-in-depth — even if getStartupContextLength returned a wrong count, the UI side would still block pre-compression rewinds. The CompressionStatus.NOOP check is correct: failed compressions leave the original history intact, so those targets should remain rewindable.

Reuse check: isUserTextContent in historyMapping.ts and isUserTextContextEntry (removed in the revised diff — replaced by the positive-recognition approach of isPostCompactAttachmentEntry) were flagged in the initial review. The revised approach correctly avoids cross-package coupling. No violations.

No correctness bugs, security issues, or regressions. No drive-by refactors.

Testing

Unit tests — all pass on this branch (worktree verification):

$ cd packages/core && npx vitest run src/utils/environmentContext.test.ts
 ✓ src/utils/environmentContext.test.ts (59 tests) 36ms
 Test Files  1 passed (1)
      Tests  59 passed (59)

$ cd packages/cli && npx vitest run src/ui/utils/historyMapping.test.ts
 ✓ src/ui/utils/historyMapping.test.ts (26 tests) 5ms
 Test Files  1 passed (1)
      Tests  26 passed (26)

$ npm run typecheck   # clean

The 10 new environmentContext.test.ts tests cover: default (no opt-in) returns 0 for compressed prefixes, resume-trailer absence rejects, ack mismatch rejects, real prompt after compressed prefix returns 2, startup reminders before compressed prefix, post-compact attachments return 3, attachments + trailing function call returns 4, and degraded fallback returns 2.

The 3 new historyMapping.test.ts tests cover: post-compression UI turn mapping from the latest compressed marker, rejection of pre-compression targets, and NOOP compression markers not treated as collapsed history.

Real-scenario tmux test — not run in CI. The /compress/rewind flow requires (a) a live API endpoint, (b) a conversation long enough to trigger compression, and (c) interactive /compress + /rewind invocation. This CI environment has no API credentials configured.

However, the author @yiliang114 provided comprehensive tmux verification in their follow-up comment using a deterministic fake OpenAI-compatible server. Key observations from their terminal output:

> /rewind
✕ Cannot rewind to a turn that was compressed. Try a more recent turn.

Pre-compression rewind is correctly rejected. And:

> third postcompress marker CCC

◆ MODEL_REPLY_3: acknowledged third postcompress marker CCC
● Conversation rewound. Edit your prompt and press Enter to continue.

* fourth postcompress marker DDD

Post-compression rewind succeeds and pre-fills the prompt. The resend after rewind also works:

> fourth postcompress marker DDD

◆ MODEL_REPLY_5: acknowledged fourth postcompress marker DDD

This covers the three behaviors the fix introduces: pre-compression targets rejected, post-compression targets rewindable, and post-rewind resend functional. Screenshots are attached in the author's comment.

中文说明

代码审查

修订后的 diff 干净且聚焦。相比初始版本有两个显著改进:

1. 双 sentinel 验证。 detectCompressedPrefixLength 现在同时要求 firstText.includes('Resume the prior task') 和精确的 ack 匹配('Got it. Thanks for the additional context!')。初始版本只检查 ack,@wenshao 正确指出这不够——假阳性会导致与原 bug 相同的数据丢失。resume-trailer 检查是关键的:postProcessSummary 总是追加它,所以任何真实的压缩前缀都会有双 sentinel,仅靠 ack 的偶然匹配不可信。

2. UI 侧压缩边界守卫。 computeApiTruncationIndex 现在拒绝在最后一次成功压缩标记之前或之上的目标(findLastSuccessfulCompressionIndex)。这是纵深防御——即使 getStartupContextLength 返回错误计数,UI 侧仍会阻止压缩前 rewind。CompressionStatus.NOOP 检查正确:失败的压缩保留原始历史,这些目标应仍可 rewind。

复用检查: 初始评审中标记的跨 package 耦合问题在修订版中通过正向识别方式(isPostCompactAttachmentEntry)正确避免。无违规。

无正确性 bug、安全问题或回归。无 drive-by refactor。

测试

单元测试 —— 在该分支上全部通过(worktree 验证):

$ cd packages/core && npx vitest run src/utils/environmentContext.test.ts
 ✓ src/utils/environmentContext.test.ts (59 tests) 36ms
 Test Files  1 passed (1)
      Tests  59 passed (59)

$ cd packages/cli && npx vitest run src/ui/utils/historyMapping.test.ts
 ✓ src/ui/utils/historyMapping.test.ts (26 tests) 5ms
 Test Files  1 passed (1)
      Tests  26 passed (26)

$ npm run typecheck   # 无错误

environmentContext.test.ts 新增 10 个测试覆盖:默认(无 opt-in)对压缩前缀返回 0、resume-trailer 缺失拒绝、ack 不匹配拒绝、压缩前缀后的真实 prompt 返回 2、startup reminders 在压缩前缀之前、压缩后附件返回 3、附件 + 尾部 function call 返回 4、degraded fallback 返回 2。

historyMapping.test.ts 新增 3 个测试覆盖:从最新压缩标记映射压缩后 UI turn、拒绝压缩前目标、NOOP 压缩标记不被视为已压缩历史。

真实场景 tmux 测试 —— CI 中未执行。 /compress/rewind 流程需要 (a) 活跃的 API 端点、(b) 足够长的对话以触发压缩、(c) 交互式 /compress + /rewind 调用。该 CI 环境无 API 凭证。

但作者 @yiliang114后续评论中使用确定性 fake OpenAI 兼容服务器提供了完整的 tmux 验证。其终端输出中的关键观察:

> /rewind
✕ Cannot rewind to a turn that was compressed. Try a more recent turn.

压缩前 rewind 被正确拒绝。而:

> third postcompress marker CCC

◆ MODEL_REPLY_3: acknowledged third postcompress marker CCC
● Conversation rewound. Edit your prompt and press Enter to continue.

* fourth postcompress marker DDD

压缩后 rewind 成功并预填 prompt。rewind 后的重发也正常工作。这覆盖了修复引入的三种行为:压缩前目标被拒绝、压缩后目标可 rewind、rewind 后重发正常。截图附在作者的评论中。

Qwen Code · qwen3.7-max

@github-actions

github-actions Bot commented Jul 6, 2026

Copy link
Copy Markdown
Contributor

Re-triage after author pushed review fixes.

Template ✓

Problem: observed bug — #6318 reports /rewind rejects valid targets after /compress. Root cause is concrete: composePostCompactHistory produces [user(summary), model(ack)] entries that getStartupContextLength previously treated as real user turns, inflating the rewind index by 2–3 synthetic entries.

Direction: aligned and minimal. Extending getStartupContextLength to recognize the compression ack sentinel — gated behind an opt-in includeCompressed option — is the least-invasive path. Only rewind callers (Session.ts, historyMapping.ts) opt in; refreshStartupContextReminder and restoreStartupContextAfterCompaction in client.ts keep the default behavior, so compressed history is preserved (not stripped) during startup-context refresh/restore cycles.

Size: 94 production lines (Session.ts +8/-2, historyMapping.ts +4/-1, environmentContext.ts +82/-6) + 180 test lines. Not applicable for core-module thresholds.

Approach: tight. The review feedback from @wenshao was addressed thoughtfully:

  • Conflicting callers resolved via the includeCompressed option (default false).
  • Real-user misclassification fixed by positively recognizing known post-compact attachment shapes (<plan-mode-active>, <background-tasks>, recently-accessed-files prefixes) instead of treating any user text as synthetic.
  • 10 new tests covering bare prefix, prefix after startup reminders, post-compact attachments, attachments + trailing function call, and degraded fallback.
  • Shared constant for the ack sentinel deferred — author's reasoning (would touch producer paths, broadening scope beyond this fix) is sound.

Moving on to code review. 🔍

中文说明

作者推送了评审修复后的重新 triage。

模板 ✓

问题: 已观察到的 bug — #6318 报告 /compress 之后 /rewind 拒绝有效目标。根因明确:composePostCompactHistory 产出的 [user(summary), model(ack)] 条目被 getStartupContextLength 当成真实用户轮次,导致 rewind 索引多计 2–3 个合成条目。

方向: 对齐且最小。通过 opt-in 的 includeCompressed 选项扩展 getStartupContextLength 识别压缩 ack sentinel 是最低侵入路径。只有 rewind 调用方(Session.tshistoryMapping.ts)opt in;client.ts 中的 refreshStartupContextReminderrestoreStartupContextAfterCompaction 保持默认行为,压缩历史在 startup-context 刷新/恢复周期中被保留(不剥离)。

规模: 94 行生产代码(Session.ts +8/-2,historyMapping.ts +4/-1,environmentContext.ts +82/-6)+ 180 行测试。不触及核心模块阈值。

方案: 紧凑。@wenshao 的评审反馈被认真处理:冲突调用方通过 includeCompressed 选项解决(默认 false);真实用户误分类通过正向识别已知的压缩后附件 shape 修复;新增 10 个测试覆盖所有 shape 变体;共享常量延后——作者的理由(会触及 producer 路径,超出本 fix 范围)合理。

进入代码审查 🔍

Qwen Code · qwen3.7-max

@qwen-code-ci-bot

qwen-code-ci-bot commented Jul 6, 2026

Copy link
Copy Markdown
Collaborator

This PR does exactly what it says and does it well.

The problem is real (linked issue #6318 with screenshot and reproduction), the fix is at the right abstraction level (getStartupContextLength is already the chokepoint), and the scope is minimal — 108 production lines across 3 files, all directly serving the stated goal. No drive-by refactors, no speculative features.

My independent proposal matched the PR's approach: opt-in compressed-prefix detection on getStartupContextLength, UI-side compression boundary guard in computeApiTruncationIndex. The PR executes this cleanly and adds good defense-in-depth with the dual-sentinel check and the CompressionStatus.NOOP exclusion.

The test suite has teeth — 12 new tests covering the happy path, degraded fallback, NOOP compression, and negative cases (wrong sentinel, missing resume trailer). The new tests don't compile against base source, proving they actually exercise the new code.

Two independent real-build TUI verifications (maintainer + author) confirm the fix works end-to-end: pre-compression targets are blocked, post-compression targets rewind correctly, and the re-sent prompt continues normally. The A/B matrix across different pre-compression turn counts (P=1, P≥2) shows the fix is correct regardless of history depth.

Non-blocking note (echoing @wenshao): the dual-sentinel detection couples to hardcoded English strings. Correct today, but if either string is reworded or localized, the mapping silently regresses. A structural marker on the Content entry itself would be sturdier long-term. Not a reason to hold this PR.

Approving. ✅

中文说明

这个 PR 准确解决了问题,做得很好。

问题是真实的(关联 issue #6318 附截图和复现),修复在正确的抽象层级(getStartupContextLength 已是唯一入口),范围最小化——3 个文件 108 行生产代码,全部服务于目标。无顺手重构,无投机性功能。

我的独立方案与 PR 方案一致:在 getStartupContextLength 上 opt-in 检测压缩前缀,在 computeApiTruncationIndex 中加 UI 侧压缩边界守卫。PR 干净地实现了这些,并通过双重 sentinel 检查和 CompressionStatus.NOOP 排除增加了良好的纵深防御。

测试有效——12 个新增测试覆盖正常路径、degraded fallback、NOOP 压缩和反面用例(错误 sentinel、缺少 resume trailer)。新测试在 base 源码上无法编译,证明确实在测试新代码。

两次独立的真实构建 TUI 验证(maintainer + 作者)确认修复端到端有效:压缩前目标被拦截,压缩后目标正确 rewind,重新发送的 prompt 正常继续。不同压缩前轮次数(P=1, P≥2)的 A/B 矩阵显示修复在任何历史深度下都正确。

非阻塞建议(与 @wenshao 一致):双重 sentinel 检测耦合到硬编码英文字符串。目前正确,但如果字符串被改写或本地化,映射会静默回退。长期来看,在 Content 条目上使用结构化标记会更稳健。不是阻止此 PR 的理由。

批准 ✅

Qwen Code · qwen3.7-max

@qwen-code-ci-bot qwen-code-ci-bot left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

LGTM, looks ready to ship. ✅

Comment thread packages/core/src/utils/environmentContext.ts Outdated
Comment thread packages/core/src/utils/environmentContext.ts
@wenshao

wenshao commented Jul 6, 2026

Copy link
Copy Markdown
Collaborator

Suggestions — commit ded6fb077

File Issue Suggested fix
packages/core/src/utils/environmentContext.ts:617 Comment references isUserTextContent but the actual function introduced is isUserTextContextEntry. These are different functions — isUserTextContent in historyMapping.ts also excludes <system-reminder> entries. Change isUserTextContent to isUserTextContextEntry in the comment.
packages/core/src/core/client.test.ts No test covers refreshStartupContextReminder or restoreStartupContextAfterCompaction with a compressed-history prefix — these are the paths where the Critical regressions manifest. Add test cases for both functions with a compressed prefix in currentHistory.
packages/core/src/utils/environmentContext.test.ts isUserTextContextEntry has 4 logical branches but only 2-3 are tested. Missing: model role at history[2], empty parts at history[2], mixed text+functionResponse parts. Add 2-3 short test cases in the getStartupContextLength describe block.
packages/core/src/utils/environmentContext.ts:621 Sentinel 'Got it. Thanks for the additional context!' hardcoded in 3 files (postCompactAttachments.ts, chatCompressionService.ts, environmentContext.ts) with no shared constant. Extract to a named constant (e.g., COMPACT_HISTORY_ACK) in a shared module.
packages/core/src/utils/environmentContext.ts:618 The sentinel is checked only on history[1] with no corroboration from history[0]. A false-positive match would cause the same data loss as the Critical findings. Check that history[0].parts[0].text ends with RESUME_TRAILER (which postProcessSummary always appends) before accepting the match.

— qwen3.7-max via Qwen Code /review

Comment thread packages/core/src/utils/environmentContext.ts Outdated
Comment thread packages/core/src/utils/environmentContext.ts
Comment thread packages/core/src/utils/environmentContext.ts Outdated
Comment thread packages/core/src/utils/environmentContext.ts
Comment thread packages/core/src/utils/environmentContext.test.ts
@yiliang114

Copy link
Copy Markdown
Collaborator Author

Review follow-up summary:

  • Fixed the conflicting use of getStartupContextLength: compressed prefixes are now counted only when rewind callers explicitly opt in, while startup refresh/restore and stripStartupContext keep the old behavior and treat compressed history as no startup prelude.
  • Fixed the real-user misclassification by positively recognizing known post-compact attachment/reminder shapes instead of treating any user text as synthetic context.
  • Covered the bare compressed prefix followed by a real user prompt, the post-compact attachment case, the 4-entry attachment plus trailing functionCall case, and the degraded fallback.
  • Did not extract the compression ack text into a shared constant in this PR. That would touch producer paths and broaden the change beyond this review closeout; the detector remains bounded to this fix.

Comment thread packages/core/src/utils/environmentContext.ts
Comment thread packages/core/src/utils/environmentContext.ts Outdated
Comment thread packages/core/src/utils/environmentContext.test.ts
Comment thread packages/core/src/utils/environmentContext.test.ts

@qwen-code-ci-bot qwen-code-ci-bot left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

⚠️ Downgraded from Approve to Comment: CI failing (Test (ubuntu-latest, Node 22.x)).

No high-confidence review issues found. The fix is well-targeted and the includeCompressed opt-in cleanly separates rewind-specific detection from startup-context refresh/restore paths.

Needs human review (low confidence):

  • historyMapping.test.ts: No integration test for computeApiTruncationIndex with compressed-history API array.
  • Session.test.ts: No integration test for getRewindableUserTurnCount/rewindToTurn with compressed-history prefix.
  • environmentContext.ts:636: RESUME_TRAILER in postCompactAttachments.ts is file-private while detectCompressedPrefixLength uses a substring match — if the trailer text changes, tests still pass but detection breaks silently.

— qwen3.7-max via Qwen Code /review

@wenshao

wenshao commented Jul 6, 2026

Copy link
Copy Markdown
Collaborator

@qwen-code /triage

@qwen-code-ci-bot

qwen-code-ci-bot commented Jul 6, 2026

Copy link
Copy Markdown
Collaborator

Code Review

Independent proposal: To fix /rewind after /compress, I'd extend getStartupContextLength with an opt-in flag that detects the [user(summary), model(ack)] prefix produced by composePostCompactHistory and returns its length (2–4 entries). On the UI side, computeApiTruncationIndex needs to find the last successful compression marker in HistoryItem[] and: (a) block rewinding to turns at or before it, (b) count user turns only from after the compression marker. The opt-in flag is important — the startup-context refresh/restore paths in client.ts must NOT see compressed history as startup context.

Comparison with the diff: the PR matches this approach exactly and adds good defense-in-depth.

Key observations:

  1. Dual-sentinel corroboration. detectCompressedPrefixLength requires BOTH firstText.includes('Resume the prior task') AND exact ack match ('Got it. Thanks for the additional context!'). Verified against production code: postCompactAttachments.ts:487 emits the resume trailer, chatCompressionService.ts:710 and postCompactAttachments.ts:829 emit the ack. A coincidental match on both sentinels is implausible for non-compressed history.

  2. Opt-in includeCompressed flag. Defaults to false. The two client.ts call sites (lines 816, 857) don't pass it — confirmed correct, since refreshStartupContextReminder and restoreStartupContextAfterCompaction need compressed history to look like "no startup prelude" so they don't strip or skip the summary. Only the three rewind call sites (Session.ts ×2, historyMapping.ts ×1) opt in.

  3. UI-side compression boundary guard. computeApiTruncationIndex now rejects targets at or before the last successful compression marker (findLastSuccessfulCompressionIndex). The CompressionStatus.NOOP check is correct: failed compressions leave the original history intact, so those targets should remain rewindable. The loop now starts counting from compressionIndex + 1 instead of 0, which aligns UI turn counting with the API-side skip.

  4. isPostCompactAttachmentEntry correctly matches the five known post-compact attachment prefixes. The degraded fallback path (ack entry carries functionCall → next entry is functionResponse → don't skip) preserves existing behavior.

Reuse check: no violations. The new helpers are appropriately scoped to the rewind path. No cross-package coupling issues.

No correctness bugs, security issues, or regressions found. No drive-by refactors or scope creep.

Testing

Unit tests — all pass on the PR branch:

✓ packages/core/src/utils/environmentContext.test.ts (59 tests) 34ms
✓ packages/cli/src/ui/utils/historyMapping.test.ts   (26 tests) 5ms

Typecheck — clean (tsc --noEmit on packages/core).

Real-build TUI verification — both @wenshao (maintainer) and @yiliang114 (author) independently verified this fix with real CLI builds driven through tmux against deterministic mock providers. Key results from @wenshao's A/B matrix (P = pre-compression user turns):

|                          | base (main)  | pre-fix commit | current head  |
|--------------------------|:------------:|:--------------:|:-------------:|
| P = 1, rewind to newest  | 7 → ✅       | -1 → ❌        | 7 → ✅        |
| P ≥ 2, rewind to newest  | -1 → ❌ (#6318) | -1 → ❌    | 7 → ✅        |

@yiliang114's TUI evidence:

> /compress
◆ Chat history compressed from 80 to 0 tokens.

> /rewind (selecting pre-compression turn)
✕ Cannot rewind to a turn that was compressed. Try a more recent turn.

> /rewind (selecting latest post-compression turn)
● Conversation rewound. Edit your prompt and press Enter to continue.
* fourth postcompress marker DDD

Both verifications confirm: pre-compression targets are correctly blocked, post-compression targets rewind correctly, and the re-sent prompt continues normally.

中文说明

代码审查

独立方案: 要修复 /compress/rewind 失效的问题,我会给 getStartupContextLength 增加一个 opt-in 标志,检测 composePostCompactHistory 产出的 [user(summary), model(ack)] 前缀并返回其长度(2–4 条)。UI 侧 computeApiTruncationIndex 需要找到最后一个成功的压缩标记,然后:(a) 阻止 rewind 到该标记之前或之上的轮次,(b) 只从压缩标记之后计数用户轮次。opt-in 标志很重要——client.ts 中的启动上下文刷新/恢复路径不应将压缩历史视为启动上下文。

与 diff 对比:PR 完全匹配此方案,并增加了良好的纵深防御。

关键观察:

  1. 双重 sentinel 验证。 detectCompressedPrefixLength 同时要求 firstText.includes('Resume the prior task') 和精确 ack 匹配。已与生产代码确认:postCompactAttachments.ts:487 产出 resume trailer,chatCompressionService.ts:710postCompactAttachments.ts:829 产出 ack。非压缩历史同时匹配两个 sentinel 的可能性极低。

  2. Opt-in includeCompressed 标志。 默认 falseclient.ts 两个调用点(行 816、857)未传——确认正确,因为 refreshStartupContextReminderrestoreStartupContextAfterCompaction 需要压缩历史呈现"无启动前缀"状态。只有三个 rewind 调用点(Session.ts ×2、historyMapping.ts ×1)启用。

  3. UI 侧压缩边界守卫。 computeApiTruncationIndex 现在拒绝目标在最后一个成功压缩标记之前或之上的轮次。CompressionStatus.NOOP 检查正确:失败的压缩保留原始历史,这些目标仍可 rewind。

  4. isPostCompactAttachmentEntry 正确匹配五个已知的压缩后附件前缀。degraded fallback 路径保留现有行为。

复用检查: 无违规。新 helper 适当限定在 rewind 路径内。

未发现正确性 bug、安全问题或回退。无顺手重构或范围蔓延。

测试

单测 — PR 分支全部通过:

✓ packages/core/src/utils/environmentContext.test.ts (59 tests) 34ms
✓ packages/cli/src/ui/utils/historyMapping.test.ts   (26 tests) 5ms

类型检查 — 通过(tsc --noEmit on packages/core)。

真实构建 TUI 验证@wenshao(maintainer)和 @yiliang114(作者)均独立使用真实 CLI 构建 + tmux + 确定性 mock provider 验证了此修复。关键结果:P ≥ 2 时 rewind 到最新压缩后 prompt 在 main 上被拦截(#6318),在当前 head 上成功。pre-compression 目标被正确拦截。

Qwen Code · qwen3.7-max

@qwen-code-ci-bot qwen-code-ci-bot left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

LGTM, looks ready to ship. ✅

@wenshao

wenshao commented Jul 6, 2026

Copy link
Copy Markdown
Collaborator

Verification report — real tmux E2E + deterministic replay

I verified this PR by driving the real interactive TUI under tmux against a mock OpenAI server (clean HOME, OPENAI_* pointed at the mock, real /compress side‑query, real /rewind selector), and by replaying histories captured verbatim from that live session through the real compiled computeApiTruncationIndex. Everything ran on this PR's own build (npm ci in a clean worktree of fix/6318-rewind-after-compress; fix present in packages/core/dist, packages/cli/dist and the dist/ bundle). "Before/after" was produced by neutralizing only detectCompressedPrefixLength, which makes getStartupContextLength(h,{includeCompressed:true}) behave exactly like main.

Verdict: ⚠️ On the CLI/TUI path this does not fix #6318 for its reported scenario, and it regresses the common one‑prompt‑before‑/compress case. The added unit tests and the ACP (Session.ts) changes look fine — the problem is specifically packages/cli/src/ui/utils/historyMapping.ts (computeApiTruncationIndex).

Why: UI keeps the pre‑compression turns, the API collapses them

After a live /compress, pre‑compression turns stay in the UI history (compress only appends a type:'compression' marker; collapseOnResume defaults to false), so computeApiTruncationIndex still counts them in uiUserTurnCount. The API history it indexes is (captured verbatim, one prompt before /compress, one after):

[0] user   "<system-reminder> …tools…"                          ← startup reminder (re-prepended by startChat after compress)
[1] user   "<state_snapshot>… Resume the prior task …"          ← summary
[2] model  "Got it. Thanks for the additional context!"         ← ack
[3] user   "<system-reminder>…date… | beta post-compress turn"  ← the post-compression prompt we rewind to
[4] model  "REPLY[…]"

getStartupContextLength on it: main = 1, this PR = 3 (skips the summary+ack). But the UI still counts the pre‑compression prompt, so the two sides now disagree by the number of pre‑/compress turns.

Finding 1 — regresses the common case: one prompt, /compress, then more prompts (P=1)

P = real user turns before /compress. Feeding the captured histories (extended to 3 post‑compression prompts by cloning the real captured turn shapes) to the real computeApiTruncationIndex — the number is "Content entries to keep"; a wrong number silently truncates to the wrong turn, -1 shows the error:

P = 1, three prompts after /compress:

rewind to main this PR
1st post‑compress prompt 3 ✅ correct 5 ❌ keeps a turn you asked to drop
2nd post‑compress prompt 5 ✅ correct 7 ❌ keeps a turn you asked to drop
3rd post‑compress prompt (last) 7 ✅ correct -1 ❌ "Cannot rewind"

Live confirmation, same P=1 scenario, Restore conversation only:

build rewind to the last post‑compress prompt (the #6318 action)
main ● Conversation rewound. Edit your prompt and press Enter to continue.
this PR ✕ Cannot rewind to a turn that was compressed. Try a more recent turn.

So for the very common "one prompt → /compress → a few more prompts" flow, main rewinds correctly to any later prompt; this PR truncates to the wrong turn for the earlier ones and errors on the last.

Finding 2 — #6318's own scenario (≥2 prompts before /compress) is still broken

P = 2, three prompts after /compress:

rewind to main this PR
1st post‑compress prompt 5 (off by one) 7 (off by two)
2nd post‑compress prompt 7 (off by one) -1
3rd post‑compress prompt (last) -1 -1

#6318's layout (some conversation/compress → prompt 1/2/3 → rewind to prompt 3) is P ≥ 2, and rewinding to the last prompt still returns -1 after this PR — I reproduced that error live at P=3 too. The reported symptom is unchanged.

Root cause

computeApiTruncationIndex compares a UI‑derived count (uiUserTurnCount, which includes the retained pre‑compression turns) against an API walk from startIndex. On main, startIndex skipped only the startup reminder and the summary was counted as one API user prompt — which offsets exactly one collapsed pre‑compression turn, so P=1 lined up perfectly. This PR makes startIndex also skip the summary, so it stops offsetting any pre‑compression UI turn; the walk then lands one turn late per pre‑compression turn (P=1 → off‑by‑one / -1, P≥2 → worse). It is only self‑consistent when P=0, or when the count is purely API‑derived — which is exactly the ACP Session.ts case (getRewindableUserTurnCount / #computeApiTruncationIndexForUserTurn both count from apiHistory only), or when the UI actually collapses pre‑compression turns (collapseOnResume, off by default).

What is fine

  • The added getStartupContextLength unit tests are correct and load‑bearing: with the fix they pass (13); reverting detectCompressedPrefixLength fails exactly the 5 compressed‑prefix cases.
  • P = 0 improves (rewinding to the first post‑compression prompt now keeps the summary instead of dropping it: main 1 → this PR 3).
  • The two ACP call sites in Session.ts look correct — that path counts turns only from the API history, so skipping the compressed prefix keeps its count and mapping consistent. (Not exercised end‑to‑end this session — assessment is from code + the same helper behavior.)

Suggestion

The real TUI fix needs both sides to agree: if the API collapses N pre‑compression turns into one summary, the UI turn count used for rewind must treat those N turns as non‑rewindable (collapse them) — otherwise computeApiTruncationIndex is always off by N. As written, the historyMapping.ts change moves the CLI the wrong way for the default live‑session flow. Consider splitting the ACP/helper change (good) from the CLI computeApiTruncationIndex change and reworking the latter, or gating post‑compression targets in the rewind selector so the user gets a coherent result instead of a wrong/erroring one.

Reproduce

Clean worktree, npm ci; launch node scripts/cli-entry.js with empty HOME and OPENAI_API_KEY/OPENAI_BASE_URL/OPENAI_MODEL pointed at any mock that (a) echoes normal turns and (b) returns a non‑empty <state_snapshot> for the /compress side‑query (identify it by the kick‑off message First, reason in your <analysis> block…). Then: one prompt → /compress → a few prompts → /rewind → pick a post‑compression prompt. main rewinds; this PR shows Cannot rewind to a turn that was compressed.

中文版(供合并参考)

验证报告 —— 真实 tmux 端到端 + 确定性回放

我用 tmux 驱动真实交互式 TUI(干净 HOMEOPENAI_* 指向 mock、真实 /compress side‑query、真实 /rewind 选择器)验证本 PR;并把从这次真实会话逐字抓取的 history 喂给真实编译产物里的 computeApiTruncationIndex 做确定性回放。全部跑在本 PR 的构建上(在 fix/6318-rewind-after-compress 干净 worktree 里 npm ci;fix 已在 packages/core/distpackages/cli/distdist/ bundle 中)。“改动前/后”只通过还原 detectCompressedPrefixLength 得到——这会让 getStartupContextLength(h,{includeCompressed:true}) 的行为与 main 完全一致。

结论:⚠️ 在 CLI/TUI 路径上,本 PR 没有修复 #6318 报告的场景,反而回退了“压缩前只有一条 prompt”的常见用例。 新增单测和 ACP(Session.ts)改动看起来没问题;问题集中在 packages/cli/src/ui/utils/historyMapping.tscomputeApiTruncationIndex)。

原因:UI 保留压缩前轮次,API 把它们折叠了

真实 /compress 之后,压缩前轮次仍留在 UI history 里(compress 只追加 type:'compression' 标记;collapseOnResume 默认 false),所以 computeApiTruncationIndexuiUserTurnCount 仍会数它们。它索引的 API history 如下(逐字抓取,/compress 前 1 条、后 1 条):

[0] user   "<system-reminder> …tools…"                          ← 压缩后 startChat 重新前置的 startup reminder
[1] user   "<state_snapshot>… Resume the prior task …"          ← summary
[2] model  "Got it. Thanks for the additional context!"         ← ack
[3] user   "<system-reminder>…date… | beta post-compress turn"  ← 要 rewind 到的压缩后 prompt
[4] model  "REPLY[…]"

getStartupContextLength 结果:main = 1本 PR = 3(跳过了 summary+ack)。但 UI 仍会数压缩前那条 prompt,于是两边相差“压缩前轮次数”。

发现 1 —— 回退常见用例:一条 prompt → /compress → 再几条 prompt(P=1)

P = /compress 前的真实用户轮次数。把抓取到的 history(按真实抓取的轮次结构克隆扩展到 3 条压缩后 prompt)喂给真实 computeApiTruncationIndex——返回值是“保留多少条 Content”;数值不对会静默截断到错误的轮次,-1 会报错:

P = 1,/compress 后 3 条 prompt:

rewind 到 main 本 PR
第 1 条压缩后 prompt 3 ✅ 正确 5 ❌ 保留了本该丢弃的轮次
第 2 条压缩后 prompt 5 ✅ 正确 7 ❌ 保留了本该丢弃的轮次
第 3 条压缩后 prompt(最后一条) 7 ✅ 正确 -1 ❌ “Cannot rewind”

真实 TUI 确认,相同 P=1 场景,Restore conversation only

构建 rewind 到最后一条压缩后 prompt(即 #6318 的操作)
main ● Conversation rewound. Edit your prompt and press Enter to continue.
本 PR ✕ Cannot rewind to a turn that was compressed. Try a more recent turn.

所以对“一条 prompt → /compress → 再几条 prompt”这个很常见的流程,main 能正确 rewind 到之后的任意一条;本 PR 对靠前的会截断到错误轮次,对最后一条直接报错。

发现 2 —— #6318 自己的场景(/compress 前 ≥2 条)仍然是坏的

P = 2,/compress 后 3 条 prompt:

rewind 到 main 本 PR
第 1 条压缩后 prompt 5(偏一条) 7(偏两条)
第 2 条压缩后 prompt 7(偏一条) -1
第 3 条压缩后 prompt(最后一条) -1 -1

#6318 的布局(some conversation/compress → prompt 1/2/3 → rewind 到 prompt 3)是 P ≥ 2,本 PR 之后 rewind 到最后一条仍返回 -1——我在 P=3 下也真实复现了该报错。报告的症状没有变化。

根因

computeApiTruncationIndex 拿一个基于 UI 的计数(uiUserTurnCount,含被保留的压缩前轮次)与一个从 startIndex 开始的 API 遍历对比。在 main 上,startIndex 只跳过 startup reminder,summary 被当成 1 条 API 用户 prompt 计数——恰好抵消一条被折叠的压缩前轮次,所以 P=1 完全对齐。本 PR 让 startIndex 也跳过 summary,于是它不再抵消任何压缩前 UI 轮次;遍历会按“每条压缩前轮次”偏晚一条(P=1 → 偏一条 / -1P≥2 → 更糟)。只有在 P=0、或计数完全来自 API 时才自洽——后者正是 ACP Session.ts 的情形(getRewindableUserTurnCount / #computeApiTruncationIndexForUserTurn 都只从 apiHistory 计数),或 UI 真的折叠了压缩前轮次(collapseOnResume,默认关闭)。

没问题的部分

  • 新增的 getStartupContextLength 单测正确且有效:带 fix 全过(13 个),还原 detectCompressedPrefixLength 后正好挂掉 5 个压缩前缀用例。
  • P = 0 变好了(rewind 到压缩后第一条现在会保留 summary:main 1 → 本 PR 3)。
  • Session.ts 里两个 ACP 调用点看起来是对的——该路径只从 API history 计数,跳过压缩前缀能让其计数与映射保持一致。(本次没端到端跑 ACP/serve 路径,此判断来自代码 + 同一 helper 行为。)

建议

真正的 TUI 修复需要两边一致:如果 API 把 N 条压缩前轮次折叠成一个 summary,UI 用于 rewind 的轮次计数也必须把这 N 条视为不可 rewind(折叠掉),否则 computeApiTruncationIndex 永远偏 N。当前写法让 CLI 在默认实时会话流程里走反了方向。建议把 ACP/helper 改动(好的部分)与 CLI 的 computeApiTruncationIndex 改动拆开并重做后者;或在 rewind 选择器里屏蔽压缩后的目标,让用户得到一致结果而不是错误/报错。

复现

干净 worktree + npm ci;用空 HOME 和指向任意 mock 的 OPENAI_API_KEY/OPENAI_BASE_URL/OPENAI_MODEL 启动 node scripts/cli-entry.js,mock 需要:(a) 回显普通轮次,(b) 对 /compress 的 side‑query(以 kick‑off 消息 First, reason in your <analysis> block… 识别)返回非空 <state_snapshot>。然后:一条 prompt → /compress → 再几条 prompt → /rewind → 选压缩后的某条。main 能 rewind,本 PR 报 Cannot rewind to a turn that was compressed

@yiliang114

Copy link
Copy Markdown
Collaborator Author

Addressed the TUI rewind regression from the verification report.

What changed:

  • computeApiTruncationIndex now uses the latest successful compression marker in UI history as the turn-count boundary.
  • Targets before that successful compression marker return -1 because the current API history has collapsed those turns.
  • NOOP compression markers do not affect mapping.

Local verification:

  • cd packages/cli && npx vitest run src/ui/utils/historyMapping.test.ts
  • cd packages/core && npx vitest run src/utils/environmentContext.test.ts
  • npm run typecheck
  • npx eslint packages/cli/src/ui/utils/historyMapping.ts packages/cli/src/ui/utils/historyMapping.test.ts --max-warnings 0

@yiliang114
yiliang114 requested a review from wenshao July 7, 2026 02:35
@github-actions

github-actions Bot commented Jul 7, 2026

Copy link
Copy Markdown
Contributor

Code Coverage Summary

Package Lines Statements Functions Branches
CLI 79.54% 79.54% 85.32% 80.88%
Core 85.32% 85.32% 86.6% 85.16%
CLI Package - Full Text Report
-------------------|---------|----------|---------|---------|-------------------
File               | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s 
-------------------|---------|----------|---------|---------|-------------------
All files          |   79.54 |    80.88 |   85.32 |   79.54 |                   
 src               |   80.24 |    77.71 |   86.48 |   80.24 |                   
  cli.ts           |   94.29 |    82.35 |     100 |   94.29 | ...66-467,477-478 
  gemini.tsx       |   70.78 |    74.13 |   84.21 |   70.78 | ...1019-1023,1138 
  ...ractiveCli.ts |   77.38 |     74.9 |   74.07 |   77.38 | ...2039-2041,2076 
  ...liCommands.ts |   88.94 |    84.54 |     100 |   88.94 | ...43,412,446,567 
  ...ActiveAuth.ts |     100 |     87.5 |     100 |     100 | 66-80             
 ...cp-integration |   59.64 |    65.09 |   84.69 |   59.64 |                   
  acpAgent.ts      |   59.53 |    65.13 |   84.89 |   59.53 | ...8331-8333,8349 
  authMethods.ts   |      92 |       60 |     100 |      92 | 33-34             
  errorCodes.ts    |       0 |        0 |       0 |       0 | 1-22              
  ...DirContext.ts |     100 |      100 |     100 |     100 |                   
 ...ration/service |   97.83 |    96.96 |   92.85 |   97.83 |                   
  filesystem.ts    |   97.83 |    96.96 |   92.85 |   97.83 | 46-47,215-216     
 ...ration/session |   86.78 |    79.87 |   90.44 |   86.78 |                   
  ...ryReplayer.ts |   75.17 |    84.37 |   83.33 |   75.17 | ...51-366,379-380 
  Session.ts       |   87.41 |    79.25 |   91.86 |   87.41 | ...5789,5816-5820 
  ...entTracker.ts |   91.39 |    89.47 |   88.88 |   91.39 | ...31,195,266-275 
  index.ts         |       0 |        0 |       0 |       0 | 1-40              
  ...ssionUtils.ts |   84.21 |    83.33 |     100 |   84.21 | ...37-153,209-211 
  tasksSnapshot.ts |   94.21 |     87.5 |     100 |   94.21 | 65-71             
  types.ts         |       0 |        0 |       0 |       0 | 1                 
 ...ssion/emitters |   96.27 |    94.35 |   96.96 |   96.27 |                   
  BaseEmitter.ts   |    92.3 |    81.81 |     100 |    92.3 | 23-24             
  ...ageEmitter.ts |   95.23 |    95.23 |     100 |   95.23 | 48-55             
  PlanEmitter.ts   |     100 |      100 |     100 |     100 |                   
  ...allEmitter.ts |   98.46 |    94.84 |     100 |   98.46 | 321-322,423,431   
  index.ts         |       0 |        0 |       0 |       0 | 1-10              
 ...ession/rewrite |    91.3 |    88.09 |   94.44 |    91.3 |                   
  LlmRewriter.ts   |      81 |       84 |     100 |      81 | ...,88-89,155-159 
  ...Middleware.ts |   96.74 |    86.84 |     100 |   96.74 | 135,143-145       
  TurnBuffer.ts    |     100 |      100 |     100 |     100 |                   
  config.ts        |     100 |      100 |     100 |     100 |                   
  index.ts         |     100 |      100 |     100 |     100 |                   
  types.ts         |       0 |        0 |       0 |       0 | 1                 
 src/commands      |   86.57 |    70.43 |   62.96 |   86.57 |                   
  auth.ts          |     100 |    83.33 |     100 |     100 | 11,14             
  channel.ts       |   56.25 |      100 |       0 |   56.25 | 16-20,28-36       
  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        |   96.29 |      100 |      50 |   96.29 | 38                
  serve.ts         |   85.61 |    67.67 |     100 |   85.61 | ...68-571,585-589 
  sessions.ts      |     100 |      100 |      50 |     100 |                   
 ...mmands/channel |   78.09 |    84.27 |   81.05 |   78.09 |                   
  ...l-registry.ts |    6.66 |      100 |       0 |    6.66 | 6-32,35-53        
  ...entry-path.ts |      75 |       50 |     100 |      75 | 8-9               
  config-utils.ts  |     100 |      100 |     100 |     100 |                   
  configure.ts     |    14.7 |      100 |       0 |    14.7 | 18-21,23-84       
  daemon-worker.ts |    95.3 |     86.6 |   96.29 |    95.3 | ...96-497,566-567 
  pairing.ts       |   26.31 |      100 |       0 |   26.31 | ...30,40-50,52-65 
  pidfile.ts       |   96.77 |    88.46 |     100 |   96.77 | ...77-178,242-243 
  proxy.ts         |     100 |      100 |     100 |     100 |                   
  runtime.ts       |   70.39 |    81.81 |     100 |   70.39 | ...43-147,211-214 
  start.ts         |   74.44 |    75.28 |   66.66 |   74.44 | ...23,529-532,544 
  status.ts        |   75.38 |       40 |     100 |   75.38 | 35-37,47-48,61-72 
  stop.ts          |   39.02 |    33.33 |     100 |   39.02 | 17-19,28-54       
 ...nds/extensions |   87.25 |     89.3 |   85.24 |   87.25 |                   
  consent.ts       |   72.53 |       90 |   42.85 |   72.53 | ...86-142,157-163 
  disable.ts       |     100 |      100 |     100 |     100 |                   
  enable.ts        |     100 |      100 |     100 |     100 |                   
  install.ts       |   85.05 |    83.33 |      75 |   85.05 | ...05-208,211-220 
  link.ts          |     100 |      100 |     100 |     100 |                   
  list.ts          |     100 |     87.5 |     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     |    37.5 |      100 |   33.33 |    37.5 | 23-45,57-64,67-70 
  update.ts        |   96.29 |      100 |     100 |   96.29 | 101-105           
  utils.ts         |      75 |    53.84 |     100 |      75 | ...27-131,133-137 
 ...les/mcp-server |       0 |        0 |       0 |       0 |                   
  example.ts       |       0 |        0 |       0 |       0 | 1-60              
 ...amples/starter |       0 |        0 |       0 |       0 |                   
  example.ts       |       0 |        0 |       0 |       0 | 1-64              
 src/commands/mcp  |   90.15 |    84.39 |   83.33 |   90.15 |                   
  add.ts           |    99.3 |    96.07 |     100 |    99.3 | 154-155           
  approve.ts       |   76.19 |     87.5 |   66.66 |   76.19 | ...,89-99,114-124 
  list.ts          |   92.59 |    83.87 |      80 |   92.59 | ...62-164,180-181 
  reconnect.ts     |   78.73 |    66.66 |   85.71 |   78.73 | 42-55,168-190     
  remove.ts        |     100 |       80 |     100 |     100 | 21-25             
 ...ommands/review |   21.47 |    89.65 |    9.67 |   21.47 |                   
  cleanup.ts       |   17.94 |      100 |       0 |   17.94 | ...01-106,108-109 
  fetch-pr.ts      |   11.36 |      100 |       0 |   11.36 | ...80-201,203-204 
  load-rules.ts    |   11.32 |      100 |       0 |   11.32 | ...41-153,155-156 
  ...uggestions.ts |   79.41 |    86.36 |      50 |   79.41 | ...76-198,200-201 
  pr-context.ts    |   10.67 |      100 |    12.5 |   10.67 | ...71-386,388-389 
  presubmit.ts     |    9.35 |      100 |       0 |    9.35 | ...62-287,289-290 
 ...nds/review/lib |      30 |      100 |       0 |      30 |                   
  gh.ts            |   22.58 |      100 |       0 |   22.58 | ...49,53-54,62-69 
  git.ts           |   22.72 |      100 |       0 |   22.72 | 15-18,29-39,43-44 
  paths.ts         |   52.94 |      100 |       0 |   52.94 | ...26,37-38,42-43 
 ...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        |   93.93 |    87.21 |   95.12 |   93.93 |                   
  auth.ts          |   89.35 |    83.56 |     100 |   89.35 | ...97-298,314-315 
  ...eMcpImport.ts |   87.91 |    81.52 |     100 |   87.91 | ...63-371,453-454 
  config.ts        |    86.6 |    85.49 |   84.37 |    86.6 | ...2277,2279-2287 
  ...heme-names.ts |     100 |      100 |     100 |     100 |                   
  environment.ts   |   91.66 |     84.8 |   92.85 |   91.66 | ...21-525,541-542 
  hot-reload.ts    |     100 |    89.74 |     100 |     100 | 47,160,220        
  keyBindings.ts   |    97.1 |       50 |     100 |    97.1 | 212-215           
  ...ngsAdapter.ts |     100 |    94.11 |     100 |     100 | 64                
  ...ig-watcher.ts |   95.17 |    83.05 |     100 |   95.17 | ...78,200,292-293 
  mcpApprovals.ts  |   96.55 |    95.65 |     100 |   96.55 | 223-224,229-231   
  mcpJson.ts       |     100 |      100 |     100 |     100 |                   
  mcpServers.ts    |   92.85 |     87.5 |     100 |   92.85 | 46-47             
  ...idersScope.ts |      92 |     90.9 |     100 |      92 | 11-12             
  ...abledTools.ts |     100 |      100 |     100 |     100 |                   
  ...comparison.ts |     100 |      100 |     100 |     100 |                   
  ...n-settings.ts |   99.15 |    93.75 |     100 |   99.15 | 63                
  sandboxConfig.ts |   61.64 |    71.87 |   66.66 |   61.64 | ...54-68,73,77-89 
  ...ings-cache.ts |   96.52 |    93.93 |     100 |   96.52 | 90-91,201-202     
  settings.ts      |   89.79 |     89.5 |   89.65 |   89.79 | ...61,963,965-966 
  ...ingsSchema.ts |     100 |      100 |     100 |     100 |                   
  ...ngsWatcher.ts |   95.54 |    88.34 |     100 |   95.54 | ...28,277-278,293 
  ...d-env-keys.ts |     100 |      100 |     100 |     100 |                   
  ...paths-lite.ts |   89.47 |       88 |     100 |   89.47 | 43-44,53-54,56-57 
  ...tedFolders.ts |   93.78 |    94.82 |     100 |   93.78 | ...43-344,380-391 
 ...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    |   69.39 |    66.66 |   63.15 |   69.39 |                   
  ...tputBridge.ts |   69.48 |     67.3 |    64.7 |   69.48 | ...82-383,391-394 
  ...utContext.tsx |     100 |      100 |     100 |     100 |                   
  index.ts         |       0 |        0 |       0 |       0 | 1-8               
 src/export        |       0 |        0 |       0 |       0 |                   
  index.ts         |       0 |        0 |       0 |       0 | 1-7               
 src/generated     |     100 |      100 |     100 |     100 |                   
  git-commit.ts    |     100 |      100 |     100 |     100 |                   
 src/i18n          |   83.22 |       80 |    86.2 |   83.22 |                   
  index.ts         |    65.4 |    76.92 |      80 |    65.4 | ...70-271,294-299 
  languages.ts     |   96.92 |    86.66 |     100 |   96.92 | 134-135,167,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 |   78.99 |    76.11 |   81.03 |   78.99 |                   
  session.ts       |   83.18 |       75 |   93.47 |   83.18 | ...63-964,973-983 
  types.ts         |    42.5 |      100 |   33.33 |    42.5 | ...00-601,604-605 
 ...active/control |   75.88 |    88.46 |      80 |   75.88 |                   
  ...rolContext.ts |    6.45 |        0 |       0 |    6.45 | 56-95             
  ...Dispatcher.ts |   91.69 |       92 |   88.88 |   91.69 | ...49-367,384,387 
  ...rolService.ts |     7.4 |        0 |       0 |     7.4 | 46-185            
 ...ol/controllers |   27.87 |    44.44 |    37.5 |   27.87 |                   
  ...Controller.ts |   39.49 |      100 |      80 |   39.49 | 88-92,127-210     
  ...Controller.ts |       0 |        0 |       0 |       0 | 1-56              
  ...Controller.ts |   31.32 |     38.7 |      40 |   31.32 | ...68-577,592-597 
  ...Controller.ts |   14.06 |      100 |       0 |   14.06 | ...82-117,130-133 
  ...Controller.ts |   24.52 |       40 |   33.33 |   24.52 | ...64-476,485-514 
 .../control/types |       0 |        0 |       0 |       0 |                   
  serviceAPIs.ts   |       0 |        0 |       0 |       0 | 1                 
 ...Interactive/io |   97.49 |    93.84 |   95.23 |   97.49 |                   
  ...putAdapter.ts |   97.13 |    92.89 |   98.07 |   97.13 | ...1314,1409-1410 
  ...putAdapter.ts |      96 |    91.66 |   85.71 |      96 | 51-52             
  ...nputReader.ts |     100 |    94.73 |     100 |     100 | 67                
  ...putAdapter.ts |   98.38 |      100 |   90.47 |   98.38 | 83-84,124-125     
  index.ts         |     100 |      100 |     100 |     100 |                   
 src/patches       |       0 |        0 |       0 |       0 |                   
  is-in-ci.ts      |       0 |        0 |       0 |       0 | 1-17              
 src/remoteInput   |   84.78 |    72.97 |   88.23 |   84.78 |                   
  ...utContext.tsx |     100 |      100 |     100 |     100 |                   
  ...putWatcher.ts |   85.39 |    73.61 |   93.33 |   85.39 | ...49-350,361-364 
  index.ts         |       0 |        0 |       0 |       0 | 1-8               
 src/serve         |   87.51 |    84.89 |   89.32 |   87.51 |                   
  ...ion-bridge.ts |     100 |      100 |     100 |     100 |                   
  auth.ts          |    93.4 |    93.05 |     100 |    93.4 | ...16-317,320-322 
  ...em-adapter.ts |     100 |      100 |     100 |     100 |                   
  capabilities.ts  |     100 |    96.29 |     100 |     100 | 424               
  ...-selection.ts |     100 |      100 |     100 |     100 |                   
  ...worker-env.ts |     100 |      100 |     100 |     100 |                   
  ...supervisor.ts |    97.6 |    89.81 |   95.91 |    97.6 | ...08,530,545,719 
  daemon-logger.ts |   98.24 |    86.95 |   96.29 |   98.24 | 119-120,196       
  ...trics-ring.ts |     100 |      100 |     100 |     100 |                   
  ...s-provider.ts |   67.01 |    51.42 |     100 |   67.01 | ...40-245,278-286 
  daemon-status.ts |   98.22 |    85.64 |     100 |   98.22 | ...07,809-810,861 
  debug-mode.ts    |     100 |      100 |     100 |     100 |                   
  demo.ts          |     100 |      100 |     100 |     100 |                   
  env-snapshot.ts  |   90.47 |    78.57 |     100 |   90.47 | ...20-123,189-196 
  ...-path-argv.ts |     100 |      100 |     100 |     100 |                   
  ...h-settings.ts |   94.88 |    89.02 |     100 |   94.88 | ...08,683,699,709 
  fast-path.ts     |   91.11 |    81.69 |   95.45 |   91.11 | ...42-451,517-518 
  index.ts         |       0 |        0 |       0 |       0 | 1-143             
  ...e-observer.ts |   89.89 |    83.24 |      96 |   89.89 | ...11-512,541-543 
  ...back-binds.ts |     100 |    88.88 |     100 |     100 | 32                
  ...sion-audit.ts |     100 |      100 |   93.33 |     100 |                   
  rate-limit.ts    |   92.43 |    88.17 |     100 |   92.43 | ...81-283,295-297 
  ...qwen-serve.ts |   80.03 |    83.25 |   69.17 |   80.03 | ...3320,3342-3345 
  ...tup-errors.ts |     100 |      100 |     100 |     100 |                   
  server.ts        |   95.68 |    96.29 |   79.16 |   95.68 | ...27-734,844-851 
  ...on-helpers.ts |      90 |      100 |     100 |      90 | 14                
  ...t-event-id.ts |     100 |    91.66 |     100 |     100 | 12                
  types.ts         |     100 |      100 |     100 |     100 |                   
  ...erver-name.ts |     100 |      100 |     100 |     100 |                   
  ...ion-limits.ts |     100 |      100 |     100 |     100 |                   
  ...l-resolver.ts |   90.32 |    66.66 |     100 |   90.32 | 16,45-46          
  ...ell-static.ts |   91.07 |     86.2 |     100 |   91.07 | ...79-182,216-219 
  ...ace-agents.ts |   62.47 |    70.34 |   90.47 |   62.47 | ...1332,1342-1352 
  ...-constants.ts |     100 |      100 |     100 |     100 |                   
  ...-summaries.ts |   86.66 |       50 |     100 |   86.66 | 11,19             
  ...ace-memory.ts |   87.17 |    78.46 |     100 |   87.17 | ...56-363,423-430 
  ...ers-status.ts |   97.29 |    80.86 |     100 |   97.29 | ...58,161,294-300 
  ...ber-errors.ts |     100 |      100 |     100 |     100 |                   
  ...e-remember.ts |   96.12 |    93.71 |     100 |   96.12 | ...33,267,679-684 
  ...ls-mapping.ts |     100 |      100 |     100 |     100 |                   
  ...lls-status.ts |     100 |    94.44 |     100 |     100 | 102               
 ...serve/acp-http |   73.09 |    75.37 |    93.5 |   73.09 |                   
  ...r-registry.ts |   93.15 |    83.33 |     100 |   93.15 | 206,220-225       
  client-mcp-ws.ts |   54.85 |    58.62 |   72.72 |   54.85 | ...99-300,304-305 
  ...n-registry.ts |   97.59 |    88.75 |   97.56 |   97.59 | 1015,1035-1049    
  dispatch.ts      |   67.43 |    71.62 |     100 |   67.43 | ...4324,4372-4378 
  index.ts         |   77.05 |     73.4 |   88.46 |   77.05 | ...1497,1526-1528 
  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.18 |   93.87 |   86.86 |                   
  device-flow.ts   |   96.35 |       80 |   97.61 |   96.35 | ...1358,1453,1519 
  ...w-provider.ts |   44.24 |    74.07 |   71.42 |   44.24 | ...23-284,297,301 
 ...rve/cdp-tunnel |   85.73 |    73.17 |    97.5 |   85.73 |                   
  ...r-emulator.ts |   88.57 |    63.63 |     100 |   88.57 | ...72-175,194-195 
  ...verse-link.ts |      88 |    76.19 |     100 |      88 | ...28-329,420-423 
  ...l-registry.ts |     100 |      100 |     100 |     100 |                   
  cdp-ws.ts        |   76.28 |    61.29 |    87.5 |   76.28 | ...13-217,223-228 
 ...nel/acceptance |       0 |        0 |       0 |       0 |                   
  ...mcp-smoke.mjs |       0 |        0 |       0 |       0 | 1-119             
  ...cceptance.mjs |       0 |        0 |       0 |       0 | 1-473             
  real-tab.mjs     |       0 |        0 |       0 |       0 | 1-218             
 src/serve/fs      |   85.68 |    79.96 |     100 |   85.68 |                   
  audit.ts         |     100 |    96.15 |     100 |     100 | 204               
  errors.ts        |     100 |      100 |     100 |     100 |                   
  index.ts         |     100 |      100 |     100 |     100 |                   
  ...x-registry.ts |     100 |      100 |     100 |     100 |                   
  paths.ts         |   77.64 |     73.6 |     100 |   77.64 | ...65,594-598,611 
  policy.ts        |   90.32 |    89.18 |     100 |   90.32 | 142-150           
  ...ile-system.ts |   85.19 |    78.44 |     100 |   85.19 | ...2094,2104-2105 
 src/serve/routes  |   81.86 |    76.91 |   90.15 |   81.86 |                   
  a2ui-action.ts   |     100 |     94.2 |     100 |     100 | 120,124,169,273   
  capabilities.ts  |     100 |      100 |     100 |     100 |                   
  daemon-status.ts |   84.31 |    83.33 |     100 |   84.31 | 88-95             
  health-demo.ts   |    92.3 |    83.33 |     100 |    92.3 | 55-59             
  permission.ts    |     100 |     91.3 |     100 |     100 | 39,78             
  ...uled-tasks.ts |   73.68 |    76.53 |     100 |   73.68 | ...80-388,406-407 
  session.ts       |   80.63 |    78.22 |   85.71 |   80.63 | ...1677,1686-1703 
  sse-events.ts    |   85.71 |    86.11 |   77.77 |   85.71 | ...69,375,392-395 
  ...space-auth.ts |    83.7 |       75 |     100 |    83.7 | ...23,328,340-344 
  ...extensions.ts |   84.42 |    72.72 |   86.36 |   84.42 | ...63-965,984-987 
  ...-file-read.ts |   94.41 |    76.92 |     100 |   94.41 | ...28-329,390-392 
  ...file-write.ts |    82.1 |    60.52 |     100 |    82.1 | ...42-244,247-249 
  ...-lifecycle.ts |     100 |    91.66 |     100 |     100 | 65                
  ...cp-control.ts |   71.42 |    83.72 |     100 |   71.42 | ...04-210,215-218 
  ...ermissions.ts |   87.38 |    76.19 |     100 |   87.38 | ...05-106,132-133 
  ...e-settings.ts |   43.26 |       55 |   66.66 |   43.26 | ...71-281,286-291 
  ...tup-github.ts |   77.52 |    70.27 |   84.21 |   77.52 | ...87,309,352-353 
  ...ace-status.ts |    73.1 |    57.69 |     100 |    73.1 | ...45-146,155-156 
  ...pace-tools.ts |   77.77 |       75 |     100 |   77.77 | 47-52,62-67,91-94 
  ...pace-trust.ts |   76.84 |    72.22 |      50 |   76.84 | ...,63-64,117-118 
  ...pace-voice.ts |   87.09 |     82.6 |    90.9 |   87.09 | ...96,322-323,452 
 src/serve/server  |   87.59 |     87.9 |   93.47 |   87.59 |                   
  access-log.ts    |   97.72 |    95.45 |     100 |   97.72 | 51                
  ...er-helpers.ts |   63.82 |    77.96 |   81.81 |   63.82 | ...16,330,332-347 
  ...w-registry.ts |   98.38 |    88.23 |     100 |   98.38 | 81                
  ...r-handlers.ts |   81.81 |       50 |     100 |   81.81 | 16,23,27-28       
  ...r-response.ts |   80.34 |    75.92 |     100 |   80.34 | ...67-491,550-559 
  fs-factory.ts    |     100 |    92.59 |     100 |     100 | 33,41,100,156     
  ...t-deadline.ts |     100 |      100 |     100 |     100 |                   
  ...iter-setup.ts |   66.66 |    66.66 |   33.33 |   66.66 | 28-33,36-41       
  ...st-helpers.ts |   93.97 |    93.47 |     100 |   93.97 | ...31-133,387-392 
  self-origin.ts   |   76.19 |       80 |     100 |   76.19 | 45-54             
  ...e-features.ts |   91.13 |    94.44 |     100 |   91.13 | 103-109           
  ...on-archive.ts |   94.32 |     90.1 |    87.5 |   94.32 | ...02-304,369-372 
  ...ion-export.ts |     100 |    84.61 |     100 |     100 | 60,84             
  session-list.ts  |   93.88 |    90.69 |     100 |   93.88 | 282-297,315-321   
  telemetry.ts     |   96.15 |    97.26 |     100 |   96.15 | ...51-153,234-236 
 src/serve/voice   |   70.58 |    95.74 |   72.72 |   70.58 |                   
  ...ice-config.ts |   13.33 |      100 |       0 |   13.33 | 35-63,71-87       
  voice-ws.ts      |   78.03 |    95.74 |   84.21 |   78.03 | ...84,399,437-439 
 ...kspace-service |   85.99 |    83.55 |      92 |   85.99 |                   
  index.ts         |   85.49 |    83.22 |    90.9 |   85.49 | ...31-736,796-861 
  types.ts         |     100 |      100 |     100 |     100 |                   
 src/services      |    91.9 |    88.42 |   98.24 |    91.9 |                   
  ...mandLoader.ts |     100 |    88.88 |     100 |     100 | 101-114           
  ...killLoader.ts |     100 |    93.33 |     100 |     100 | 48,67             
  ...andService.ts |   98.73 |      100 |     100 |   98.73 | 107               
  ...mandLoader.ts |   86.83 |    83.87 |     100 |   86.83 | ...30-335,340-345 
  ...omptLoader.ts |   75.84 |    80.64 |   83.33 |   75.84 | ...10-211,277-278 
  ...mandLoader.ts |     100 |    97.14 |     100 |     100 | 66                
  ...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 |                   
  ...low-loader.ts |     100 |    96.15 |     100 |     100 | 88                
  setup-github.ts  |    90.5 |    81.81 |     100 |    90.5 | ...35-436,443-444 
  types.ts         |     100 |      100 |     100 |     100 |                   
  ...e-keyterms.ts |   98.64 |    95.71 |     100 |   98.64 | 116,142-143       
  voice-model.ts   |     100 |      100 |     100 |     100 |                   
  voice-service.ts |   85.99 |    87.09 |     100 |   85.99 | ...68,275,329-343 
  ...e-settings.ts |     100 |    95.45 |     100 |     100 | 19                
  ...ranscriber.ts |   90.41 |       82 |   95.83 |   90.41 | ...29-631,634-636 
 ...ght/generators |    88.3 |    85.49 |   92.59 |    88.3 |                   
  DataProcessor.ts |   88.22 |    85.48 |      95 |   88.22 | ...1341,1345-1352 
  ...tGenerator.ts |   98.21 |    85.71 |     100 |   98.21 | 46                
  ...teRenderer.ts |   45.45 |      100 |       0 |   45.45 | 13-51             
 .../insight/types |       0 |       50 |      50 |       0 |                   
  ...sightTypes.ts |       0 |        0 |       0 |       0 |                   
  ...sightTypes.ts |       0 |        0 |       0 |       0 | 1                 
 ...mpt-processors |   97.27 |    94.04 |     100 |   97.27 |                   
  ...tProcessor.ts |     100 |      100 |     100 |     100 |                   
  ...eProcessor.ts |   94.52 |    84.21 |     100 |   94.52 | 46-47,93-94       
  ...tionParser.ts |     100 |      100 |     100 |     100 |                   
  ...lProcessor.ts |   97.41 |    95.65 |     100 |   97.41 | 95-98             
  types.ts         |     100 |      100 |     100 |     100 |                   
 src/services/tips |   97.35 |    84.84 |     100 |   97.35 |                   
  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       |   80.53 |     74.6 |     100 |   80.53 |                   
  ...reeStartup.ts |   80.53 |     74.6 |     100 |   80.53 | ...94,403,409-412 
 src/test-utils    |   94.01 |    83.33 |      80 |   94.01 |                   
  ...omMatchers.ts |   69.69 |       50 |      50 |   69.69 | 32-35,37-39,45-47 
  ...andContext.ts |     100 |      100 |     100 |     100 |                   
  render.tsx       |     100 |      100 |     100 |     100 |                   
 src/ui            |    69.4 |    70.51 |   62.66 |    69.4 |                   
  App.tsx          |   33.33 |       75 |   33.33 |   33.33 | 32-86             
  AppContainer.tsx |   70.59 |    66.05 |    62.5 |   70.59 | ...3712,4226-4230 
  ...tionNudge.tsx |    9.58 |      100 |       0 |    9.58 | 24-94             
  ...ackDialog.tsx |   29.23 |      100 |       0 |   29.23 | 25-75             
  ...tionNudge.tsx |    7.69 |      100 |       0 |    7.69 | 25-103            
  colors.ts        |      60 |      100 |   35.29 |      60 | ...52,54-55,60-61 
  constants.ts     |     100 |      100 |     100 |     100 |                   
  keyMatchers.ts   |   95.91 |    97.14 |     100 |   95.91 | 25-26             
  ...tic-colors.ts |     100 |      100 |     100 |     100 |                   
  ...ractiveUI.tsx |   56.25 |    33.33 |      40 |   56.25 | ...30-231,236-241 
  ...inePresets.ts |   96.27 |    83.87 |     100 |   96.27 | ...97,402,410-412 
  textConstants.ts |     100 |      100 |     100 |     100 |                   
  types.ts         |     100 |      100 |     100 |     100 |                   
 src/ui/auth       |   58.45 |    66.18 |   51.06 |   58.45 |                   
  AuthDialog.tsx   |   59.01 |     42.1 |   16.66 |   59.01 | ...25,332-354,358 
  ...nProgress.tsx |       0 |        0 |       0 |       0 | 1-64              
  ...etupSteps.tsx |   60.03 |    70.73 |   57.69 |   60.03 | ...87,791,800,803 
  useAuth.ts       |    94.6 |    73.52 |     100 |    94.6 | ...21-222,241-247 
  ...rSetupFlow.ts |   43.18 |    33.33 |      50 |   43.18 | ...78-399,416-459 
 src/ui/commands   |   79.69 |    82.38 |   88.17 |   79.69 |                   
  aboutCommand.ts  |     100 |      100 |     100 |     100 |                   
  agentsCommand.ts |   83.78 |      100 |      60 |   83.78 | 30-32,42-44       
  ...odeCommand.ts |   89.47 |    81.25 |     100 |   89.47 | 92-93,95-100      
  arenaCommand.ts  |   62.81 |    58.73 |   65.21 |   62.81 | ...90-595,680-688 
  authCommand.ts   |     100 |      100 |     100 |     100 |                   
  branchCommand.ts |     100 |      100 |     100 |     100 |                   
  btwCommand.ts    |   94.32 |    77.41 |     100 |   94.32 | 35-36,114-119     
  bugCommand.ts    |     100 |    77.77 |     100 |     100 | 27,61             
  cdCommand.ts     |    92.1 |     84.9 |     100 |    92.1 | ...4-69,94-99,178 
  clearCommand.ts  |   79.64 |       68 |     100 |   79.64 | ...24-125,133-142 
  ...essCommand.ts |   67.95 |    55.88 |      75 |   67.95 | ...86-187,201-204 
  ...astCommand.ts |   70.86 |    74.07 |      75 |   70.86 | ...,61-93,117-122 
  ...ig-command.ts |   93.06 |    88.33 |     100 |   93.06 | ...04-312,318-320 
  ...extCommand.ts |    65.8 |    68.25 |   84.61 |    65.8 | ...57-590,601-602 
  copyCommand.ts   |   98.49 |    95.78 |     100 |   98.49 | ...80,280,321,327 
  deleteCommand.ts |     100 |      100 |     100 |     100 |                   
  diffCommand.ts   |     100 |     87.5 |     100 |     100 | ...61,224-225,238 
  ...ryCommand.tsx |   81.43 |     88.4 |    90.9 |   81.43 | ...59-264,311-318 
  docsCommand.ts   |     100 |     90.9 |     100 |     100 | 25                
  doctorCommand.ts |   65.37 |    81.88 |   94.11 |   65.37 | ...85-535,538-672 
  dreamCommand.ts  |   85.45 |    88.88 |     100 |   85.45 | 58-65             
  editorCommand.ts |     100 |      100 |     100 |     100 |                   
  ...rt-command.ts |   82.97 |    78.57 |     100 |   82.97 | 47-52,67-70,91-96 
  exportCommand.ts |   98.25 |    91.02 |     100 |   98.25 | ...81,198-199,364 
  ...onsCommand.ts |    50.3 |    48.14 |   69.23 |    50.3 | ...08,262-314,375 
  forgetCommand.ts |     100 |       90 |     100 |     100 | 59                
  forkCommand.ts   |     100 |    94.11 |     100 |     100 | 96,147            
  goalCommand.ts   |   91.46 |    84.44 |      90 |   91.46 | ...87-190,202-205 
  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   |   84.33 |    72.72 |     100 |   84.33 | 68,82-87,89-94    
  ...ghtCommand.ts |   77.87 |    71.42 |     100 |   77.87 | ...44-245,250-272 
  ...ageCommand.ts |   92.17 |    82.69 |     100 |   92.17 | ...39,159,168-178 
  lspCommand.ts    |     100 |    86.95 |     100 |     100 | 31,101-102        
  mcpCommand.ts    |     100 |      100 |     100 |     100 |                   
  memoryCommand.ts |     100 |      100 |     100 |     100 |                   
  modelCommand.ts  |   82.39 |    88.32 |   85.71 |   82.39 | ...23-528,705-710 
  ...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             
  ...berCommand.ts |     100 |     87.5 |     100 |     100 | 46                
  renameCommand.ts |   85.71 |    86.04 |     100 |   85.71 | ...02-209,216-221 
  ...oreCommand.ts |    90.9 |    86.04 |     100 |    90.9 | ...41-146,176-177 
  resumeCommand.ts |     100 |      100 |     100 |     100 |                   
  rewindCommand.ts |   81.25 |      100 |      50 |   81.25 | 20-22             
  ...ngsCommand.ts |     100 |      100 |     100 |     100 |                   
  ...hubCommand.ts |   89.47 |       75 |      80 |   89.47 | 54-59             
  skillsCommand.ts |   78.82 |    81.81 |     100 |   78.82 | 37-52,78,97       
  statsCommand.ts  |    90.6 |    77.95 |     100 |    90.6 | ...91-694,785-792 
  ...ineCommand.ts |     100 |      100 |     100 |     100 |                   
  ...aryCommand.ts |    6.43 |      100 |      50 |    6.43 | 31-330            
  tasksCommand.ts  |   77.22 |    72.13 |     100 |   77.22 | ...46-150,172-177 
  ...tupCommand.ts |     100 |      100 |     100 |     100 |                   
  themeCommand.ts  |     100 |      100 |     100 |     100 |                   
  toolsCommand.ts  |     100 |      100 |     100 |     100 |                   
  trustCommand.ts  |     100 |      100 |     100 |     100 |                   
  types.ts         |     100 |      100 |     100 |     100 |                   
  vimCommand.ts    |   54.54 |      100 |      50 |   54.54 | 19-29             
  voice-command.ts |   93.57 |       88 |     100 |   93.57 | 35,97-102         
  ...owsCommand.ts |   91.82 |    78.87 |   66.66 |   91.82 | ...59-160,169-174 
 src/ui/components |   66.51 |     78.3 |   71.76 |   66.51 |                   
  AboutBox.tsx     |     100 |      100 |     100 |     100 |                   
  ...ateScreen.tsx |   77.41 |    66.66 |      50 |   77.41 | 34-40             
  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 |   16.27 |      100 |       0 |   16.27 | 19-58             
  ...TextInput.tsx |   86.72 |    86.66 |     100 |   86.72 | ...00-302,355-359 
  Composer.tsx     |   94.39 |    66.66 |     100 |   94.39 | ...-71,83,138,151 
  ...entPrompt.tsx |     100 |      100 |     100 |     100 |                   
  ...ryDisplay.tsx |   75.89 |    62.06 |     100 |   75.89 | ...,88,93-108,113 
  ...geDisplay.tsx |   68.42 |    57.14 |     100 |   68.42 | 16-17,31-32,42-50 
  CronPill.tsx     |     100 |    93.75 |     100 |     100 | 18                
  ...ification.tsx |       0 |        0 |       0 |       0 | 1-36              
  ...gProfiler.tsx |       0 |        0 |       0 |       0 | 1-36              
  ...ogManager.tsx |       0 |        0 |       0 |       0 | 1-594             
  DiffDialog.tsx   |   31.17 |    19.51 |   30.76 |   31.17 | ...07-712,722-735 
  ...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       |   75.54 |       54 |     100 |   75.54 | ...09-214,232-236 
  ...ngSpinner.tsx |   68.42 |       80 |      50 |   68.42 | 35-52,73,80-81    
  GoalPill.tsx     |   83.33 |    76.92 |     100 |   83.33 | 24-30             
  Header.tsx       |   98.65 |    94.73 |     100 |   98.65 | 173,175           
  Help.tsx         |   98.32 |       90 |     100 |   98.32 | ...24,381,447-448 
  ...emDisplay.tsx |   73.66 |    64.19 |     100 |   73.66 | ...46,449,452-458 
  ...ngeDialog.tsx |     100 |      100 |     100 |     100 |                   
  InputPrompt.tsx  |   81.76 |    80.27 |   77.77 |   81.76 | ...2074,2100,2160 
  ...Shortcuts.tsx |   20.87 |      100 |       0 |   20.87 | ...6,49-51,67-125 
  ...Indicator.tsx |   98.14 |    97.82 |     100 |   98.14 | 157-158           
  ...firmation.tsx |   91.42 |      100 |      50 |   91.42 | 26-31             
  MainContent.tsx  |   98.43 |    94.82 |   66.66 |   98.43 | 89,166-170        
  MemoryDialog.tsx |   64.84 |     77.9 |    62.5 |   64.84 | ...02,421,470-472 
  ...geDisplay.tsx |       0 |        0 |       0 |       0 | 1-41              
  ModelDialog.tsx  |   84.61 |    76.76 |     100 |   84.61 | ...80-796,853-857 
  ...tsDisplay.tsx |     100 |    97.22 |     100 |     100 | 270               
  ...fications.tsx |       0 |        0 |       0 |       0 | 1-58              
  ...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 |    84.21 |     100 |   93.58 | ...,70-71,195-197 
  ...ryDisplay.tsx |     100 |      100 |     100 |     100 |                   
  ...putPrompt.tsx |   72.56 |       80 |      40 |   72.56 | ...06-109,114-117 
  ...tedDialog.tsx |     100 |      100 |     100 |     100 |                   
  ...ngsDialog.tsx |   71.49 |    74.08 |   69.23 |   71.49 | ...1252,1258-1259 
  ...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 |   92.78 |    82.35 |      75 |   92.78 | ...5,77-79,93,124 
  ...tsDisplay.tsx |   95.86 |       75 |     100 |   95.86 | 67-71             
  ...ionPicker.tsx |       0 |        0 |       0 |       0 | 1-172             
  ...tivityTab.tsx |    3.94 |      100 |       0 |    3.94 | 27-275            
  StatsDialog.tsx  |    8.64 |      100 |       0 |    8.64 | ...76-111,130-322 
  StatsDisplay.tsx |     100 |      100 |     100 |     100 |                   
  ...ciencyTab.tsx |    78.9 |    56.52 |     100 |    78.9 | ...26,213,262-288 
  ...atmapView.tsx |    8.98 |      100 |       0 |    8.98 | 20-107            
  ...essionTab.tsx |    5.46 |      100 |       0 |    5.46 | 24-215            
  ...ineDialog.tsx |    93.5 |    85.18 |     100 |    93.5 | ...05,267,287-289 
  ...yTodoList.tsx |   96.33 |    88.23 |     100 |   96.33 | 137-140           
  ...nsDisplay.tsx |    92.9 |       85 |     100 |    92.9 | ...04,207,234-236 
  ThemeDialog.tsx  |   89.95 |    46.15 |      75 |   89.95 | ...71-173,243-245 
  ...ingViewer.tsx |   74.01 |    55.55 |     100 |   74.01 | ...02,111-118,130 
  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 |    81.81 |     100 |     100 | 71-86             
  ...ification.tsx |       0 |        0 |       0 |       0 | 1-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 |   91.42 |    64.28 |     100 |   91.42 | 15,21,24          
  ...s-helpers.tsx |   66.25 |    81.25 |      50 |   66.25 | 25-32,46-53,62-72 
 ...nts/agent-view |   53.71 |    70.87 |   42.85 |   53.71 |                   
  ...atContent.tsx |    9.09 |      100 |       0 |    9.09 | 54-275,281-283    
  ...tChatView.tsx |   21.05 |      100 |       0 |   21.05 | 21-39             
  ...tComposer.tsx |   64.78 |    29.41 |   33.33 |   64.78 | ...51,269,277-279 
  AgentFooter.tsx  |   17.07 |      100 |       0 |   17.07 | 28-66             
  AgentHeader.tsx  |   15.38 |      100 |       0 |   15.38 | 27-64             
  AgentTabBar.tsx  |    87.9 |    63.88 |     100 |    87.9 | ...88,110-118,136 
  ...oryAdapter.ts |     100 |    91.83 |     100 |     100 | 103,109-110,138   
  index.ts         |       0 |        0 |       0 |       0 | 1-12              
 ...mponents/arena |   42.38 |    68.69 |   73.68 |   42.38 |                   
  ArenaCards.tsx   |   73.06 |    71.79 |   85.71 |   73.06 | ...83-185,321-326 
  ...ectDialog.tsx |   83.48 |    69.86 |   88.88 |   83.48 | ...88-392,409-410 
  ...artDialog.tsx |       0 |        0 |       0 |       0 | 1-164             
  ...tusDialog.tsx |       0 |        0 |       0 |       0 | 1-288             
  ...topDialog.tsx |       0 |        0 |       0 |       0 | 1-213             
 ...ackground-view |   81.04 |    80.44 |   90.56 |   81.04 |                   
  ...sksDialog.tsx |   75.72 |    75.15 |      80 |   75.72 | ...1687,1709-1715 
  ...TasksPill.tsx |   67.03 |     86.2 |     100 |   67.03 | ...02-122,130-138 
  ...gentPanel.tsx |   97.14 |    86.45 |     100 |   97.14 | 132,455-459,527   
  agent-forest.ts  |    99.2 |    93.93 |     100 |    99.2 | 256               
  ...Visibility.ts |     100 |      100 |     100 |     100 |                   
  ...e-overlay.tsx |    88.2 |    76.47 |     100 |    88.2 | ...36-138,140-142 
 ...nts/extensions |   84.58 |    78.18 |   83.33 |   84.58 |                   
  ...gerDialog.tsx |   82.46 |    77.77 |     100 |   82.46 | ...89,191-198,258 
  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.15 |    84.74 |   58.82 |   46.15 |                   
  ...ctionStep.tsx |   95.12 |    92.85 |   85.71 |   95.12 | 84-86,89          
  ...etailStep.tsx |       0 |        0 |       0 |       0 | 1-145             
  ...nListStep.tsx |   75.13 |    88.09 |   66.66 |   75.13 | ...52,173,202-208 
  ...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 |   66.18 |    67.65 |   66.66 |   66.18 |                   
  DiscoverTab.tsx  |   57.21 |     63.2 |   55.55 |   57.21 | ...98,661-665,669 
  InstalledTab.tsx |   71.62 |    68.65 |   83.33 |   71.62 | ...68,773-774,811 
  SourcesTab.tsx   |   69.25 |     70.4 |   66.66 |   69.25 | ...16,535,607-619 
 ...tensions/views |   23.73 |    44.82 |       5 |   23.73 |                   
  ...tionsView.tsx |    6.02 |      100 |       0 |    6.02 | 52-65,68-368      
  ...tionsView.tsx |   43.45 |    44.82 |    6.66 |   43.45 | ...98-405,408-420 
  ...etailView.tsx |    9.56 |      100 |       0 |    9.56 | 40-67,70-158      
 ...mponents/hooks |   86.85 |    81.37 |   91.89 |   86.85 |                   
  ...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.96 |    61.53 |   70.58 |   40.96 |                   
  ...ealthPill.tsx |   68.42 |    85.71 |     100 |   68.42 | 40-46             
  ...entDialog.tsx |      33 |    26.19 |      40 |      33 | ...81,883,896-902 
  ...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 |   54.25 |    74.31 |   57.14 |   54.25 |                   
  ...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 |    64.8 |    62.26 |   33.33 |    64.8 | ...75-284,295-317 
  ...rListStep.tsx |   88.46 |    81.25 |     100 |   88.46 | ...63,169,174-179 
  ...etailStep.tsx |    10.3 |      100 |       0 |    10.3 | ...1,67-79,82-140 
  ToolListStep.tsx |   69.29 |       50 |     100 |   69.29 | ...23,126,135-144 
 ...nents/messages |    87.2 |    83.67 |   80.45 |    87.2 |                   
  ...ionDialog.tsx |   86.88 |    81.25 |      80 |   86.88 | ...21,539,557-559 
  BtwMessage.tsx   |     100 |      100 |     100 |     100 |                   
  ...upDisplay.tsx |     100 |    91.83 |     100 |     100 | 27,31,33,35       
  ...onMessage.tsx |   91.93 |    82.35 |     100 |   91.93 | 57-59,61,63       
  ...nMessages.tsx |   89.92 |    86.66 |    90.9 |   89.92 | ...13-319,376-382 
  DiffRenderer.tsx |   93.19 |    86.17 |     100 |   93.19 | ...09,237-238,304 
  ...tsDisplay.tsx |   97.82 |    77.27 |     100 |   97.82 | 87,89             
  ...usMessage.tsx |   76.31 |     42.1 |   66.66 |   76.31 | ...99,101,124,155 
  ...tsDisplay.tsx |    95.6 |    88.46 |     100 |    95.6 | ...48,150,183-188 
  ...ssMessage.tsx |    12.5 |      100 |       0 |    12.5 | 18-59             
  ...edMessage.tsx |   16.66 |      100 |       0 |   16.66 | 22-38             
  ...sMessages.tsx |   58.65 |       50 |    37.5 |   58.65 | ...20-125,146-158 
  ...ryMessage.tsx |   14.28 |      100 |       0 |   14.28 | 23-62             
  ...onMessage.tsx |   82.31 |    74.02 |   33.33 |   82.31 | ...69-471,478-480 
  ...upMessage.tsx |   98.23 |       95 |     100 |   98.23 | 173-176,390       
  ToolMessage.tsx  |   90.79 |    81.87 |    92.3 |   90.79 | ...88-793,820-822 
 ...ponents/shared |    85.5 |    81.53 |   94.62 |    85.5 |                   
  ...ctionList.tsx |     100 |      100 |      75 |     100 |                   
  ...tonSelect.tsx |     100 |      100 |     100 |     100 |                   
  EnumSelector.tsx |     100 |    96.42 |     100 |     100 | 58                
  MaxSizedBox.tsx  |   83.01 |    86.25 |   88.88 |   83.01 | ...12-513,618-619 
  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 |    82.7 |    84.84 |     100 |    82.7 | 46-64,71-74       
  StaticRender.tsx |   72.72 |      100 |     100 |   72.72 | 31-33             
  TextInput.tsx    |    80.8 |    67.24 |      80 |    80.8 | ...36-240,252-258 
  ...ontroller.tsx |     100 |    81.81 |     100 |     100 | 59-62             
  ...apsedTime.tsx |     100 |      100 |     100 |     100 |                   
  ...Indicator.tsx |     100 |      100 |     100 |     100 |                   
  ...lizedList.tsx |   88.54 |    83.64 |      90 |   88.54 | ...15,745-773,869 
  text-buffer.ts   |   85.94 |    81.73 |   97.91 |   85.94 | ...2651,2749-2750 
  ...er-actions.ts |   73.93 |    67.22 |     100 |   73.93 | ...32-733,934-936 
 ...ponents/skills |       0 |        0 |       0 |       0 |                   
  ...gerDialog.tsx |       0 |        0 |       0 |       0 | 1-678             
 ...ents/subagents |       0 |        0 |       0 |       0 |                   
  constants.ts     |       0 |        0 |       0 |       0 | 1-71              
  index.ts         |       0 |        0 |       0 |       0 | 1-11              
  reducers.tsx     |       0 |        0 |       0 |       0 | 1-190             
  types.ts         |       0 |        0 |       0 |       0 | 1-125             
  utils.ts         |       0 |        0 |       0 |       0 | 1-102             
 ...bagents/create |       0 |        0 |       0 |       0 |                   
  ...ionWizard.tsx |       0 |        0 |       0 |       0 | 1-299             
  ...rSelector.tsx |       0 |        0 |       0 |       0 | 1-85              
  ...onSummary.tsx |       0 |        0 |       0 |       0 | 1-331             
  ...tionInput.tsx |       0 |        0 |       0 |       0 | 1-177             
  ...dSelector.tsx |       0 |        0 |       0 |       0 | 1-63              
  ...nSelector.tsx |       0 |        0 |       0 |       0 | 1-58              
  ...EntryStep.tsx |       0 |        0 |       0 |       0 | 1-78              
  ToolSelector.tsx |       0 |        0 |       0 |       0 | 1-253             
 ...bagents/manage |   14.04 |    53.19 |    37.5 |   14.04 |                   
  ...ctionStep.tsx |       0 |        0 |       0 |       0 | 1-103             
  ...eleteStep.tsx |       0 |        0 |       0 |       0 | 1-62              
  ...tEditStep.tsx |       0 |        0 |       0 |       0 | 1-124             
  ...ctionStep.tsx |   35.42 |    59.52 |     100 |   35.42 | ...20-432,437-439 
  ...iewerStep.tsx |       0 |        0 |       0 |       0 | 1-73              
  ...gerDialog.tsx |       0 |        0 |       0 |       0 | 1-341             
 ...mponents/views |   69.77 |    72.38 |   61.11 |   69.77 |                   
  ContextUsage.tsx |   70.88 |    63.88 |      80 |   70.88 | ...20-426,463-557 
  DoctorReport.tsx |     9.8 |      100 |       0 |     9.8 | 25-54,57-131      
  ...sionsList.tsx |   87.87 |    73.68 |     100 |   87.87 | 69-76             
  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   |   81.99 |    79.01 |   83.33 |   81.99 |                   
  ...ewContext.tsx |   64.83 |    88.88 |      50 |   64.83 | ...16-219,225-235 
  AppContext.tsx   |      80 |       50 |     100 |      80 | 19-20             
  ...ewContext.tsx |   92.45 |    62.79 |      50 |   92.45 | ...69-270,272-276 
  ...deContext.tsx |   88.88 |      100 |       0 |   88.88 | 21                
  ...igContext.tsx |   81.81 |       50 |     100 |   81.81 | 15-16             
  ...ssContext.tsx |   82.72 |    82.81 |     100 |   82.72 | ...1284,1292-1294 
  ...owContext.tsx |   91.07 |    81.81 |     100 |   91.07 | 47-48,60-62       
  ...deContext.tsx |     100 |      100 |      50 |     100 |                   
  ...onContext.tsx |   78.68 |    73.77 |   91.66 |   78.68 | ...86-389,398-401 
  ...gsContext.tsx |     100 |      100 |     100 |     100 |                   
  ...usContext.tsx |     100 |      100 |     100 |     100 |                   
  ...ngContext.tsx |   71.42 |       50 |     100 |   71.42 | 17-20             
  ...utContext.tsx |   85.71 |      100 |   66.66 |   85.71 | 13-14             
  ...erContext.tsx |     100 |      100 |      50 |     100 |                   
  ...edContext.tsx |     100 |      100 |     100 |     100 |                   
  ...nsContext.tsx |   88.88 |       50 |     100 |   88.88 | 147-148           
  ...teContext.tsx |   86.66 |       50 |     100 |   86.66 | 226-227           
  ...deContext.tsx |      80 |     87.5 |      75 |      80 | ...11-112,118-120 
 src/ui/daemon     |   88.27 |    73.27 |   95.45 |   88.27 |                   
  ...ui-adapter.ts |   88.27 |    73.27 |   95.45 |   88.27 | ...66,784-785,871 
 src/ui/editors    |       0 |        0 |       0 |       0 |                   
  ...ngsManager.ts |       0 |        0 |       0 |       0 | 1-67              
 src/ui/hooks      |   83.59 |    81.57 |   88.56 |   83.59 |                   
  ...dProcessor.ts |   81.49 |    80.95 |     100 |   81.49 | ...33-734,740-745 
  ...ention-ref.ts |   97.67 |       84 |     100 |   97.67 | 63                
  keyToAnsi.ts     |    3.92 |      100 |       0 |    3.92 | 19-77             
  ...esourceRef.ts |     100 |      100 |     100 |     100 |                   
  ...dProcessor.ts |   94.62 |    73.58 |     100 |   94.62 | ...86-287,292-293 
  ...dProcessor.ts |   84.49 |    63.98 |   84.21 |   84.49 | ...1114,1135-1139 
  ...rt-command.ts |     100 |      100 |     100 |     100 |                   
  ...sced-flush.ts |     100 |      100 |     100 |     100 |                   
  ...oice-input.ts |   92.36 |    81.95 |   66.66 |   92.36 | ...00,502-503,658 
  ...amingState.ts |   12.22 |      100 |       0 |   12.22 | 54-157            
  ...agerDialog.ts |   88.23 |      100 |     100 |   88.23 | 20,24             
  ...dScrollbar.ts |     100 |      100 |     100 |     100 |                   
  ...ationFrame.ts |      52 |    63.63 |     100 |      52 | ...59,67-70,76-87 
  ...odeCommand.ts |   58.82 |      100 |     100 |   58.82 | 28,33-48          
  ...enaCommand.ts |      85 |      100 |     100 |      85 | 23-24,29          
  ...aInProcess.ts |   27.92 |       80 |      25 |   27.92 | ...69-170,173-175 
  ...Completion.ts |   89.83 |    88.97 |     100 |   89.83 | ...49-456,496-505 
  ...ifications.ts |   86.91 |    96.29 |     100 |   86.91 | 116-130           
  ...tIndicator.ts |   83.49 |    70.96 |     100 |   83.49 | ...58,166,168-176 
  ...waySummary.ts |   96.22 |    69.69 |     100 |   96.22 | 125-127,169       
  ...ndTaskView.ts |   94.73 |    76.59 |     100 |   94.73 | 162-166,255,261   
  ...chedScroll.ts |     100 |      100 |     100 |     100 |                   
  ...ketedPaste.ts |    23.8 |      100 |       0 |    23.8 | 19-37             
  ...nchCommand.ts |   93.37 |     73.8 |     100 |   93.37 | ...37,186,259-262 
  ...ompletion.tsx |   96.75 |    81.81 |     100 |   96.75 | ...78-279,289-290 
  ...dMigration.ts |    92.1 |    88.88 |     100 |    92.1 | 42-44             
  useCompletion.ts |   94.11 |    89.65 |     100 |   94.11 | ...32-133,137-138 
  ...nitMessage.ts |     100 |      100 |     100 |     100 |                   
  ...extualTips.ts |   78.26 |       50 |     100 |   78.26 | ...2,75-79,96-104 
  ...eteCommand.ts |   78.53 |    88.57 |     100 |   78.53 | ...96-104,112-113 
  ...ialogClose.ts |   36.11 |       10 |     100 |   36.11 | ...89-195,202-207 
  useDiffData.ts   |       0 |        0 |       0 |       0 | 1-87              
  ...oublePress.ts |   53.12 |       75 |     100 |   53.12 | 33-35,41-54       
  ...orSettings.ts |     100 |      100 |     100 |     100 |                   
  ...Completion.ts |   99.12 |     97.7 |     100 |   99.12 | 182-183           
  ...ionUpdates.ts |    93.5 |     92.3 |     100 |    93.5 | ...87-291,304-310 
  ...agerDialog.ts |   88.88 |      100 |     100 |   88.88 | 21,25             
  ...backDialog.ts |    63.9 |    76.47 |   66.66 |    63.9 | ...66-168,190-191 
  useFocus.ts      |     100 |      100 |     100 |     100 |                   
  ...olderTrust.ts |     100 |      100 |     100 |     100 |                   
  ...ggestions.tsx |   96.47 |    78.94 |     100 |   96.47 | 121,155-156       
  ...miniStream.ts |    83.3 |    80.09 |   95.65 |    83.3 | ...3566,3651-3659 
  ...BranchName.ts |     100 |    91.66 |     100 |     100 | 30                
  ...oryManager.ts |   97.94 |    98.24 |     100 |   97.94 | 139-142           
  ...ooksDialog.ts |    87.5 |      100 |     100 |    87.5 | 19,23             
  ...stListener.ts |     100 |      100 |     100 |     100 |                   
  ...nAuthError.ts |   76.19 |       50 |     100 |   76.19 | 39-40,43-45       
  ...putHistory.ts |   92.59 |    85.71 |     100 |   92.59 | 63-64,72,94-96    
  ...storyStore.ts |     100 |    94.11 |     100 |     100 | 69                
  useKeypress.ts   |     100 |      100 |     100 |     100 |                   
  ...rdProtocol.ts |   36.36 |      100 |       0 |   36.36 | 24-31             
  ...unchEditor.ts |       0 |        0 |       0 |       0 | 1-90              
  ...gIndicator.ts |     100 |    96.66 |     100 |     100 | 109               
  useLogger.ts     |      16 |      100 |       0 |      16 | 15-45             
  useMCPHealth.ts  |   63.15 |       80 |      50 |   63.15 | 42-52,64-67       
  ...cpApproval.ts |   93.12 |    86.11 |     100 |   93.12 | ...24-127,139-140 
  useMcpDialog.ts  |    87.5 |      100 |     100 |    87.5 | 19,23             
  ...moryDialog.ts |    87.5 |      100 |     100 |    87.5 | 19,23             
  ...oryMonitor.ts |   83.14 |    78.57 |     100 |   83.14 | 54-63,74-79       
  ...ssageQueue.ts |     100 |      100 |     100 |     100 |                   
  ...delCommand.ts |     100 |     92.3 |     100 |     100 | 40                
  ...ouseEvents.ts |   94.25 |    97.22 |   83.33 |   94.25 | 76-80             
  ...raseCycler.ts |   84.74 |    76.47 |     100 |   84.74 | ...49,52-53,69-71 
  ...rredEditor.ts |   58.33 |    22.22 |     100 |   58.33 | 23-27,29-33       
  ...derUpdates.ts |   86.95 |    77.41 |   91.66 |   86.95 | ...70,311-323,371 
  useQwenAuth.ts   |     100 |      100 |     100 |     100 |                   
  ...lScheduler.ts |   88.54 |    91.83 |     100 |   88.54 | ...73-278,381-391 
  ...oryCommand.ts |       0 |        0 |       0 |       0 | 1-7               
  ...tleRepaint.ts |     100 |      100 |     100 |     100 |                   
  ...umeCommand.ts |   93.66 |    72.41 |     100 |   93.66 | ...17,155,196-201 
  ...ompletion.tsx |   90.67 |    83.33 |     100 |   90.67 | ...02,105,138-141 
  ...ectionList.ts |   97.12 |    96.22 |     100 |   97.12 | ...92-193,247-250 
  ...sionPicker.ts |   92.87 |    90.35 |     100 |   92.87 | ...99-501,503-505 
  ...earchInput.ts |     100 |    97.29 |     100 |     100 | 82                
  ...ngsCommand.ts |   18.75 |      100 |       0 |   18.75 | 10-25             
  ...ellHistory.ts |   93.28 |    80.95 |     100 |   93.28 | ...96,153-154,164 
  ...oryCommand.ts |       0 |        0 |       0 |       0 | 1-73              
  ...agerDialog.ts |   88.23 |      100 |     100 |   88.23 | 20,24             
  ...Completion.ts |   82.85 |    85.13 |   94.73 |   82.85 | ...78-680,688-724 
  ...tateAndRef.ts |     100 |      100 |     100 |     100 |                   
  ...tatsDialog.ts |     100 |      100 |     100 |     100 |                   
  useStatusLine.ts |   97.14 |    92.56 |     100 |   97.14 | ...78-382,483-490 
  ...eateDialog.ts |   88.23 |      100 |     100 |   88.23 | 14,18             
  ...mInProcess.ts |   27.35 |       80 |      25 |   27.35 | ...82-183,186-188 
  ...tification.ts |     100 |     87.5 |     100 |     100 | 50                
  ...alProgress.ts |   53.06 |       50 |   66.66 |   53.06 | ...53,61-68,79-85 
  ...rminalSize.ts |   76.19 |      100 |      50 |   76.19 | 21-25             
  ...emeCommand.ts |   67.01 |    29.41 |     100 |   67.01 | ...10-111,115-116 
  useTimer.ts      |   97.59 |    94.73 |     100 |   97.59 | 17-18             
  ...lMigration.ts |       0 |        0 |       0 |       0 |                   
  ...rustModify.ts |     100 |      100 |     100 |     100 |                   
  useTurnDiffs.ts  |   95.12 |    78.57 |     100 |   95.12 | 133-134,156-157   
  ...elcomeBack.ts |   87.36 |     90.9 |     100 |   87.36 | ...,94-96,114-115 
  ...reeSession.ts |   93.75 |       70 |     100 |   93.75 | 47-48,72          
  vim.ts           |      74 |    67.56 |   69.23 |      74 | ...1854-1861,1869 
 src/ui/layouts    |    90.9 |    90.62 |     100 |    90.9 |                   
  ...AppLayout.tsx |   90.72 |       90 |     100 |   90.72 | 57-59,101-106     
  ...AppLayout.tsx |   91.17 |    91.66 |     100 |   91.17 | 70-75             
 src/ui/models     |   80.24 |    79.16 |   71.42 |   80.24 |                   
  ...ableModels.ts |   80.24 |    79.16 |   71.42 |   80.24 | ...,61-71,123-125 
 ...noninteractive |     100 |      100 |    6.66 |     100 |                   
  ...eractiveUi.ts |     100 |      100 |    6.66 |     100 |                   
 src/ui/state      |   94.91 |    81.81 |     100 |   94.91 |                   
  extensions.ts    |   94.91 |    81.81 |     100 |   94.91 | 68-69,88          
 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      |   84.79 |     84.1 |   93.69 |   84.79 |                   
  ...Colorizer.tsx |   80.42 |    85.41 |     100 |   80.42 | ...00-201,298-324 
  ...nRenderer.tsx |   68.83 |    70.14 |      50 |   68.83 | ...52-254,274-293 
  ...wnDisplay.tsx |   92.39 |    92.85 |     100 |   92.39 | ...90,730,777-795 
  ...idDiagram.tsx |   87.79 |    95.34 |     100 |   87.79 | 156-179           
  ...eRenderer.tsx |   92.56 |    81.56 |   95.23 |   92.56 | ...96-699,743-748 
  ...odeDisplay.ts |   96.55 |     90.9 |     100 |   96.55 | 34                
  asciiCharts.ts   |   96.77 |    87.62 |     100 |   96.77 | 173-180,281       
  ...dWorkUtils.ts |     100 |      100 |     100 |     100 |                   
  ...boardUtils.ts |   51.92 |    72.72 |   91.66 |   51.92 | ...21,624-633,636 
  commandUtils.ts  |    96.1 |    88.77 |     100 |    96.1 | ...73,175-176,320 
  computeStats.ts  |     100 |      100 |     100 |     100 |                   
  customBanner.ts  |   90.68 |    91.22 |     100 |   90.68 | ...13,324-327,334 
  displayUtils.ts  |   90.38 |    73.91 |     100 |   90.38 | 23,25,29,31,33    
  formatters.ts    |    95.4 |    98.43 |     100 |    95.4 | 123-126           
  gradientUtils.ts |     100 |      100 |     100 |     100 |                   
  highlight.ts     |     100 |      100 |     100 |     100 |                   
  ...oryMapping.ts |     100 |       95 |     100 |     100 | 44,103            
  historyUtils.ts  |    95.6 |    95.16 |     100 |    95.6 | 96-99             
  input-mouse.ts   |     100 |    85.71 |     100 |     100 | 48,93             
  isNarrowWidth.ts |     100 |      100 |     100 |     100 |                   
  ...olDetector.ts |    8.23 |      100 |       0 |    8.23 | ...31-132,135-136 
  latexRenderer.ts |   94.95 |     73.8 |     100 |   94.95 | ...76-178,184-187 
  layoutUtils.ts   |     100 |      100 |     100 |     100 |                   
  list-mouse.ts    |     100 |      100 |     100 |     100 |                   
  ...ightLoader.ts |     100 |       95 |     100 |     100 | 81                
  ...nUtilities.ts |   95.72 |    94.23 |     100 |   95.72 | 90-92,137-138     
  ...t-position.ts |     100 |     87.5 |     100 |     100 | 85                
  ...ToolGroups.ts |   98.65 |    96.72 |     100 |   98.65 | 48-49             
  ...geRenderer.ts |   86.23 |    69.06 |   95.12 |   86.23 | ...1284,1324-1330 
  ...alRenderer.ts |   86.69 |     71.9 |     100 |   86.69 | ...1476,1513-1519 
  ...lsBySource.ts |     100 |    95.23 |     100 |     100 | 84                
  mouse.ts         |   92.85 |    73.77 |     100 |   92.85 | ...38,145,149-152 
  osc8.ts          |   94.84 |    88.74 |     100 |   94.84 | ...57,442,446-447 
  ...red-height.ts |   96.07 |    96.36 |     100 |   96.07 | 64-66,191-193     
  ...mConstants.ts |     100 |      100 |     100 |     100 |                   
  restoreGoal.ts   |   99.02 |    97.56 |     100 |   99.02 | 106               
  ...storyUtils.ts |   68.54 |    78.07 |   93.33 |   68.54 | ...41-463,589-590 
  ...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 
  ...izedOutput.ts |   94.94 |      100 |   88.88 |   94.94 | 112-117           
  ...wOptimizer.ts |     100 |    96.77 |     100 |     100 | 69                
  terminalSetup.ts |    4.37 |      100 |       0 |    4.37 | 44-393            
  textUtils.ts     |   93.99 |    90.56 |   93.33 |   93.99 | ...89-290,425-426 
  ...background.ts |     100 |      100 |     100 |     100 |                   
  todoSnapshot.ts  |   89.33 |    93.47 |     100 |   89.33 | ...,66-78,180-181 
  updateCheck.ts   |     100 |    80.95 |     100 |     100 | 30-42             
  ...ow-keyword.ts |     100 |      100 |     100 |     100 |                   
 ...i/utils/export |   74.23 |    56.04 |   94.59 |   74.23 |                   
  collect.ts       |   71.21 |    63.06 |      96 |   71.21 | ...88-631,653-654 
  index.ts         |     100 |      100 |     100 |     100 |                   
  normalize.ts     |   78.57 |    44.92 |     100 |   78.57 | ...40-345,357-359 
  types.ts         |       0 |        0 |       0 |       0 | 1                 
  utils.ts         |     100 |      100 |     100 |     100 |                   
 ...ort/formatters |   52.92 |    42.42 |   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 |    28.57 |     100 |   82.45 | ...48,50-51,65-66 
  markdown.ts      |   36.32 |       40 |      50 |   36.32 | ...16-219,233-295 
 src/ui/voice      |   81.12 |    73.04 |    79.1 |   81.12 |                   
  ...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.14 |     64.7 |   92.85 |   91.14 | ...76,282,292-295 
  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 |     100 |    88.88 |     100 |     100 | 18                
  ...am-session.ts |   87.45 |    63.33 |   81.81 |   87.45 | ...03,320-322,339 
  ...ranscriber.ts |     100 |      100 |     100 |     100 |                   
 src/utils         |   75.57 |    88.33 |   89.33 |   75.57 |                   
  acpModelUtils.ts |   95.49 |    94.23 |     100 |   95.49 | 44,68-69,73-74    
  apiPreconnect.ts |   96.72 |    97.14 |     100 |   96.72 | 165-168           
  ...ol-call-id.ts |    92.3 |    83.33 |     100 |    92.3 | 26-27             
  checks.ts        |   33.33 |      100 |       0 |   33.33 | 23-28             
  cleanup.ts       |   82.53 |    93.33 |      80 |   82.53 | 74,105-115        
  commands.ts      |     100 |      100 |     100 |     100 |                   
  commentJson.ts   |   90.51 |     92.1 |     100 |   90.51 | 67-76,116         
  ...Calculator.ts |     100 |      100 |     100 |     100 |                   
  cpuProfiler.ts   |   70.73 |    73.23 |   88.88 |   70.73 | ...27,430-431,438 
  deepMerge.ts     |     100 |       90 |     100 |     100 | 41-43,49          
  ...ScopeUtils.ts |   97.56 |    88.88 |     100 |   97.56 | 67                
  doctorChecks.ts  |   70.31 |    74.57 |     100 |   70.31 | ...95-301,325-341 
  ...putCapture.ts |   90.65 |    86.17 |     100 |   90.65 | ...72,370,372-373 
  ...arResolver.ts |   97.14 |    96.55 |     100 |   97.14 | 125-126           
  errors.ts        |   90.85 |    96.36 |    92.3 |   90.85 | 69-70,298-310     
  events.ts        |     100 |      100 |     100 |     100 |                   
  ...on-mention.ts |   88.48 |     82.6 |     100 |   88.48 | ...56-160,164-168 
  gitUtils.ts      |    92.7 |    84.09 |     100 |    92.7 | ...07-110,158-161 
  ...AutoUpdate.ts |    92.2 |    95.23 |   88.88 |    92.2 | 130-141           
  ...tyWarnings.ts |     100 |      100 |     100 |     100 |                   
  ...lationInfo.ts |   97.71 |    94.18 |     100 |   97.71 | ...57,274-275,320 
  languageUtils.ts |   98.47 |    97.72 |     100 |   98.47 | 153-154           
  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.15 |    90.97 |     100 |   94.15 | ...26,432,435-439 
  ...iveHelpers.ts |   95.33 |    92.08 |     100 |   95.33 | ...51-452,550,563 
  osc.ts           |    97.5 |      100 |   88.88 |    97.5 | 195-196           
  package.ts       |   88.88 |    85.71 |     100 |   88.88 | 31-32             
  processUtils.ts  |     100 |      100 |     100 |     100 |                   
  readStdin.ts     |   93.67 |    94.11 |   85.71 |   93.67 | 79-83             
  relaunch.ts      |   93.22 |    81.25 |     100 |   93.22 | 65-67,80          
  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       |   11.46 |    23.52 |   16.66 |   11.46 | ...5-763,770-1047 
  ...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.03 |    88.88 |      90 |   82.03 | ...11-729,736-744 
  spawnWrapper.ts  |     100 |      100 |     100 |     100 |                   
  ...ate-verify.ts |     100 |      100 |     100 |     100 |                   
  ...one-update.ts |   27.55 |    76.11 |   45.83 |   27.55 | ...44-845,848-867 
  ...upProfiler.ts |   98.47 |    94.66 |     100 |   98.47 | 132-133,308       
  ...upWarnings.ts |     100 |      100 |     100 |     100 |                   
  stdioHelpers.ts  |     100 |       60 |     100 |     100 | 23,32             
  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 |   94.11 |    83.33 |     100 |   94.11 | 13                
  ...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   |   95.45 |    93.33 |     100 |   95.45 | 54-55             
  ...WithBackup.ts |   65.04 |    77.77 |     100 |   65.04 | 97,112,133-172    
 ...s/housekeeping |   91.63 |    91.02 |      95 |   91.63 |                   
  cleanup.ts       |   95.77 |    95.83 |     100 |   95.77 | 70-72             
  ...eractionAt.ts |     100 |      100 |     100 |     100 |                   
  scheduler.ts     |   91.91 |    90.47 |    87.5 |   91.91 | 58-62,73,131-135  
  throttledOnce.ts |   86.66 |     86.2 |     100 |   86.66 | ...99,105,137-138 
-------------------|---------|----------|---------|---------|-------------------
Core Package - Full Text Report
-------------------|---------|----------|---------|---------|-------------------
File               | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s 
-------------------|---------|----------|---------|---------|-------------------
All files          |   85.32 |    85.16 |    86.6 |   85.32 |                   
 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.2 |    82.62 |   94.96 |    90.2 |                   
  ...transcript.ts |    92.6 |     87.5 |     100 |    92.6 | ...46,365-366,497 
  ...ent-resume.ts |    83.7 |    72.72 |   79.41 |    83.7 | ...1290-1294,1297 
  ...ound-tasks.ts |   96.84 |    89.22 |     100 |   96.84 | ...1197,1217-1220 
  index.ts         |     100 |      100 |     100 |     100 |                   
  ...ent-result.ts |    96.8 |    92.68 |     100 |    96.8 | 106,129-131       
  ...n-registry.ts |   95.65 |    89.28 |     100 |   95.65 | ...12-413,485-489 
  ...w-snapshot.ts |   91.86 |       75 |     100 |   91.86 | ...54,178,185-187 
 src/agents/arena  |   76.25 |     67.5 |   78.94 |   76.25 |                   
  ...gentClient.ts |   79.47 |    88.88 |   81.81 |   79.47 | ...68-183,189-204 
  ArenaManager.ts  |   75.01 |    64.22 |   78.57 |   75.01 | ...1874,1880-1881 
  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 |   77.89 |    84.85 |   76.28 |   77.89 |                   
  ITermBackend.ts  |   97.97 |    93.93 |     100 |   97.97 | ...78-180,255,307 
  ...essBackend.ts |   90.17 |    84.12 |   93.33 |   90.17 | ...71,673,675-676 
  TmuxBackend.ts   |    90.7 |    76.55 |   97.36 |    90.7 | ...87,697,743-747 
  detect.ts        |   31.25 |      100 |       0 |   31.25 | 34-88             
  index.ts         |     100 |      100 |     100 |     100 |                   
  iterm-it2.ts     |     100 |     92.1 |     100 |     100 | 37-38,106         
  tmux-commands.ts |    6.64 |      100 |    3.03 |    6.64 | ...93-363,386-503 
  types.ts         |     100 |      100 |     100 |     100 |                   
 ...agents/runtime |   88.63 |    86.05 |   83.47 |   88.63 |                   
  agent-context.ts |     100 |      100 |     100 |     100 |                   
  agent-core.ts    |   79.83 |     76.4 |   67.34 |   79.83 | ...1933,1960-2007 
  agent-events.ts  |     100 |      100 |     100 |     100 |                   
  ...t-headless.ts |   87.93 |    79.06 |   63.63 |   87.93 | ...00-401,404-405 
  ...nteractive.ts |   81.01 |    82.35 |   76.66 |   81.01 | ...33,535-538,541 
  ...statistics.ts |   98.19 |    82.35 |     100 |   98.19 | 127,151,192,225   
  agent-types.ts   |     100 |      100 |     100 |     100 |                   
  index.ts         |     100 |      100 |     100 |     100 |                   
  ...ool-policy.ts |   98.34 |      100 |    92.3 |   98.34 | 81-82             
  ...low-budget.ts |     100 |      100 |     100 |     100 |                   
  ...ow-journal.ts |   91.76 |    75.86 |     100 |   91.76 | ...38-139,179-181 
  ...chestrator.ts |   91.79 |    87.79 |   82.35 |   91.79 | ...1774,1823-1826 
  ...ow-prompts.ts |     100 |      100 |     100 |     100 |                   
  ...ow-sandbox.ts |   96.87 |    94.51 |     100 |   96.87 | ...24-325,330-331 
  ...flow-saved.ts |   96.51 |    94.36 |     100 |   96.51 | 134-135,234-237   
  ...flow-stall.ts |    97.9 |    83.33 |     100 |    97.9 | 138-139,236       
 src/agents/tasks  |     100 |      100 |     100 |     100 |                   
  types.ts         |     100 |      100 |     100 |     100 |                   
 src/agents/team   |   81.86 |    84.09 |    87.4 |   81.86 |                   
  TeamManager.ts   |    72.1 |     79.6 |   78.84 |    72.1 | ...1628,1651-1652 
  identity.ts      |     100 |      100 |     100 |     100 |                   
  index.ts         |     100 |      100 |     100 |     100 |                   
  ...sionBridge.ts |     100 |      100 |     100 |     100 |                   
  mailbox.ts       |   94.76 |    86.36 |   92.85 |   94.76 | 86-87,348-354     
  ...ptAddendum.ts |     100 |      100 |     100 |     100 |                   
  tasks.ts         |   88.85 |    82.56 |   96.29 |   88.85 | ...-990,1034-1035 
  team-events.ts   |   60.52 |      100 |      50 |   60.52 | ...37-141,148-152 
  teamHelpers.ts   |   92.02 |    94.91 |   95.23 |   92.02 | ...31-332,368-378 
  types.ts         |     100 |      100 |     100 |     100 |                   
 ...eam/test-utils |   94.39 |    94.26 |   98.21 |   94.39 |                   
  ...on-harness.ts |   96.49 |    84.21 |     100 |   96.49 | 128-129,141-142   
  fake-agent.ts    |   98.49 |    95.08 |     100 |   98.49 | 201-203           
  fake-backend.ts  |   86.46 |    97.61 |   95.83 |   86.46 | 124-146           
 src/config        |   82.01 |    85.73 |   69.49 |   82.01 |                   
  approval-mode.ts |     100 |      100 |     100 |     100 |                   
  ...xtDefaults.ts |     100 |      100 |     100 |     100 |                   
  config.ts        |   80.86 |    85.21 |   66.56 |   80.86 | ...6302,6307-6308 
  constants.ts     |     100 |      100 |     100 |     100 |                   
  models.ts        |     100 |      100 |     100 |     100 |                   
  storage.ts       |   94.63 |    91.86 |   89.58 |   94.63 | ...15-416,419-420 
 ...nfirmation-bus |   98.29 |    97.14 |     100 |   98.29 |                   
  message-bus.ts   |   98.14 |    97.05 |     100 |   98.14 | 42-43             
  types.ts         |     100 |      100 |     100 |     100 |                   
 src/core          |   90.07 |    85.13 |   92.43 |   90.07 |                   
  baseLlmClient.ts |   87.19 |    79.68 |      80 |   87.19 | ...18,631,685-687 
  client.ts        |   89.27 |    82.34 |   90.62 |   89.27 | ...2877,2945-2946 
  ...tGenerator.ts |   88.07 |       75 |     100 |   88.07 | ...84-388,396-400 
  ...lScheduler.ts |   89.52 |    83.65 |   95.45 |   89.52 | ...4611,4639-4650 
  geminiChat.ts    |   90.03 |    86.53 |   95.12 |   90.03 | ...3638,3705-3706 
  geminiRequest.ts |     100 |      100 |     100 |     100 |                   
  ...MediaLimit.ts |     100 |    95.83 |     100 |     100 | 96                
  ...htProtocol.ts |    9.09 |      100 |       0 |    9.09 | ...9,62-66,69-110 
  logger.ts        |   87.41 |    87.02 |     100 |   87.41 | ...64-568,614-628 
  ...tyDefaults.ts |     100 |      100 |     100 |     100 |                   
  ...olExecutor.ts |   92.59 |       75 |      50 |   92.59 | 41-42             
  ...on-helpers.ts |   86.72 |    73.68 |     100 |   86.72 | ...00-201,215-224 
  ...issionFlow.ts |   98.79 |       96 |     100 |   98.79 | 97                
  prompts.ts       |   88.93 |    89.55 |   72.72 |   88.93 | ...-910,1113-1114 
  ...ing-effort.ts |     100 |      100 |     100 |     100 |                   
  ...port-retry.ts |     100 |      100 |     100 |     100 |                   
  tokenLimits.ts   |     100 |    90.62 |     100 |     100 | 25,60-61          
  ...allIdUtils.ts |   98.23 |     92.1 |     100 |   98.23 | 36,45             
  ...okTriggers.ts |   99.45 |     92.5 |     100 |   99.45 | 182,193           
  ...terruption.ts |     100 |       92 |     100 |     100 | 86,104            
  turn.ts          |   98.49 |    91.17 |     100 |   98.49 | ...93,621-622,668 
 ...ntentGenerator |   95.36 |    83.29 |   94.54 |   95.36 |                   
  ...tGenerator.ts |   96.93 |    85.13 |   93.93 |   96.93 | ...1167,1195-1197 
  converter.ts     |   94.51 |    80.72 |     100 |   94.51 | ...06-607,617,823 
  index.ts         |       0 |        0 |       0 |       0 | 1-21              
  usage.ts         |     100 |      100 |     100 |     100 |                   
 ...ntentGenerator |   89.93 |    71.83 |   93.33 |   89.93 |                   
  ...tGenerator.ts |    88.3 |    71.21 |   92.85 |    88.3 | ...19-325,343-344 
  index.ts         |     100 |       80 |     100 |     100 | 50                
 ...ntentGenerator |   94.61 |    84.69 |    92.1 |   94.61 |                   
  index.ts         |     100 |      100 |     100 |     100 |                   
  ...tGenerator.ts |   94.51 |    83.39 |   91.66 |   94.51 | ...1113-1114,1142 
  ...tDetection.ts |     100 |      100 |     100 |     100 |                   
 ...ntentGenerator |   89.19 |    85.99 |   94.25 |   89.19 |                   
  constants.ts     |     100 |      100 |     100 |     100 |                   
  converter.ts     |   88.23 |    83.25 |   96.29 |   88.23 | ...1575,1744-1759 
  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.6 |    88.75 |     100 |    95.6 | ...36-737,745,813 
  ...ureContext.ts |     100 |      100 |     100 |     100 |                   
  ...ingOptions.ts |       0 |        0 |       0 |       0 | 1                 
  ...CallParser.ts |    90.2 |     87.5 |     100 |    90.2 | ...39-343,373-374 
  ...kingParser.ts |     100 |    96.87 |     100 |     100 | 42                
  types.ts         |       0 |        0 |       0 |       0 | 1                 
 ...rator/provider |   96.47 |    89.51 |   96.49 |   96.47 |                   
  dashscope.ts     |   97.43 |    91.72 |   94.73 |   97.43 | ...70-371,513-514 
  deepseek.ts      |   94.91 |    89.36 |     100 |   94.91 | ...31-132,145-146 
  default.ts       |    97.5 |    96.55 |   88.88 |    97.5 | 122-123,193       
  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     |   78.05 |    80.16 |   84.68 |   78.05 |                   
  ...-converter.ts |   78.29 |    70.87 |     100 |   78.29 | ...1108,1153-1154 
  corruptFile.ts   |     100 |       50 |     100 |     100 | 40-45             
  ...-converter.ts |    73.8 |       75 |     100 |    73.8 | 44-54             
  ...me-refresh.ts |     100 |      100 |     100 |     100 |                   
  ...ionManager.ts |   60.82 |    71.42 |   55.17 |   60.82 | ...1571,1599-1600 
  ...references.ts |     100 |    89.58 |     100 |     100 | ...05,129,197,200 
  ...onSettings.ts |   92.65 |    91.89 |     100 |   92.65 | ...28-232,312-313 
  ...-converter.ts |    75.9 |    83.33 |   85.71 |    75.9 | ...98,202,214-248 
  github.ts        |   84.71 |     85.4 |     100 |   84.71 | ...61-662,670-671 
  http-client.ts   |   84.61 |       80 |     100 |   84.61 | 20-21             
  i18n.ts          |   78.26 |    95.83 |      50 |   78.26 | 104-110,116-123   
  index.ts         |     100 |      100 |     100 |     100 |                   
  marketplace.ts   |   87.11 |    84.28 |     100 |   87.11 | ...44,348-354,429 
  npm.ts           |   74.67 |    71.64 |     100 |   74.67 | ...19-421,428-432 
  override.ts      |   94.11 |    88.88 |     100 |   94.11 | 63-64,81-82       
  redaction.ts     |     100 |      100 |     100 |     100 |                   
  settings.ts      |   66.26 |      100 |      50 |   66.26 | 81-107,141-146    
  ...ceRegistry.ts |   93.96 |    83.14 |     100 |   93.96 | ...35-341,362-363 
  storage.ts       |     100 |      100 |     100 |     100 |                   
  ...ableSchema.ts |     100 |      100 |     100 |     100 |                   
  variables.ts     |   88.75 |    83.33 |     100 |   88.75 | ...28-231,234-237 
 src/followup      |   77.83 |    78.48 |    90.9 |   77.83 |                   
  followupState.ts |   98.44 |    95.74 |     100 |   98.44 | 236-237           
  index.ts         |     100 |      100 |     100 |     100 |                   
  overlayFs.ts     |   96.29 |    88.88 |     100 |   96.29 | 78,108,122        
  speculation.ts   |   65.48 |    55.69 |   71.42 |   65.48 | ...75-576,583-584 
  ...onToolGate.ts |     100 |    96.55 |     100 |     100 | 96                
  ...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         |   89.57 |    83.57 |   94.44 |   89.57 |                   
  ...eGoalStore.ts |    85.1 |    95.45 |   84.61 |    85.1 | ...63-166,174-182 
  goalHook.ts      |   97.26 |    91.66 |     100 |   97.26 | 100-105           
  goalJudge.ts     |   84.33 |    74.28 |     100 |   84.33 | ...57-358,366-368 
  index.ts         |     100 |      100 |     100 |     100 |                   
 src/hooks         |   87.18 |    86.16 |   88.27 |   87.18 |                   
  ...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.34 |    85.05 |   94.11 |   95.34 | ...74,931-932,942 
  hookPlanner.ts   |   86.29 |    83.33 |   85.71 |   86.29 | ...15-219,226-237 
  hookRegistry.ts  |   91.48 |    84.61 |     100 |   91.48 | ...97,416,420,424 
  hookRunner.ts    |   62.42 |    72.04 |   66.66 |   62.42 | ...64-765,774-775 
  hookSystem.ts    |   87.05 |      100 |   68.88 |   87.05 | ...21-722,728-729 
  ...HookRunner.ts |   75.51 |     61.9 |      80 |   75.51 | ...05-406,424-425 
  index.ts         |     100 |      100 |     100 |     100 |                   
  ...edCallback.ts |     100 |      100 |     100 |     100 |                   
  ...HookRunner.ts |   96.37 |     90.9 |      90 |   96.37 | 342-350,424-425   
  ...SkillHooks.ts |   78.75 |       75 |   66.66 |   78.75 | 62-66,137-152     
  ...oksManager.ts |   96.66 |    91.66 |     100 |   96.66 | ...90,209-210,223 
  ssrfGuard.ts     |   77.22 |    86.74 |     100 |   77.22 | ...57,261-267,273 
  stopHookCap.ts   |     100 |      100 |     100 |     100 |                   
  trustedHooks.ts  |      90 |    52.63 |     100 |      90 | ...53,66-67,97-98 
  types.ts         |    93.7 |    95.34 |   88.88 |    93.7 | ...39-540,625-629 
  urlValidator.ts  |     100 |      100 |     100 |     100 |                   
 src/ide           |   76.87 |    84.98 |   79.03 |   76.87 |                   
  constants.ts     |     100 |      100 |     100 |     100 |                   
  detect-ide.ts    |     100 |      100 |     100 |     100 |                   
  ide-client.ts    |   68.92 |    84.57 |   68.29 |   68.92 | ...1057,1086-1094 
  ide-installer.ts |   89.06 |    79.31 |     100 |   89.06 | ...36,143-147,160 
  ideContext.ts    |     100 |      100 |     100 |     100 |                   
  process-utils.ts |   84.84 |    71.79 |     100 |   84.84 | ...37,151,193-194 
  types.ts         |     100 |      100 |     100 |     100 |                   
 src/lsp           |   58.96 |    70.57 |   66.14 |   58.96 |                   
  ...nfigLoader.ts |   80.55 |       72 |   95.45 |   80.55 | ...02-504,508-514 
  ...ionFactory.ts |   42.81 |    73.07 |      50 |   42.81 | ...76-427,433-450 
  ...Normalizer.ts |   23.09 |    13.72 |   30.43 |   23.09 | ...04-905,909-924 
  ...verManager.ts |   75.73 |     80.1 |   79.66 |   75.73 | ...1346,1352-1382 
  ...eLspClient.ts |   32.78 |       80 |   16.66 |   32.78 | ...89-293,299-300 
  ...LspService.ts |      60 |    73.36 |   78.26 |      60 | ...1575,1635-1645 
  configHash.ts    |     100 |      100 |     100 |     100 |                   
  constants.ts     |     100 |      100 |     100 |     100 |                   
  types.ts         |     100 |      100 |     100 |     100 |                   
 src/mcp           |   82.39 |    77.73 |   78.33 |   82.39 |                   
  configHash.ts    |     100 |      100 |     100 |     100 |                   
  constants.ts     |     100 |      100 |     100 |     100 |                   
  ...h-provider.ts |   86.95 |      100 |   33.33 |   86.95 | ...,93,97,101-102 
  ...h-provider.ts |   79.52 |    58.06 |     100 |   79.52 | ...33-940,947-949 
  ...en-storage.ts |   98.78 |    97.95 |     100 |   98.78 | 106-107           
  oauth-utils.ts   |   73.61 |    85.24 |    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.27 |   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        |   83.61 |    79.61 |   86.34 |   83.61 |                   
  ...nel-memory.ts |    88.7 |    80.95 |      90 |    88.7 | ...00-204,209-212 
  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 |       80 |     100 |     100 | 126,136           
  entries.ts       |   70.07 |    82.14 |   66.66 |   70.07 | ...72-180,183-189 
  extract.ts       |   91.36 |    72.41 |     100 |   91.36 | ...99,118-121,189 
  ...entPlanner.ts |   91.47 |       75 |     100 |   91.47 | ...03,112-115,289 
  ...ionPlanner.ts |       0 |        0 |       0 |       0 | 1                 
  forget.ts        |   74.02 |    59.57 |      70 |   74.02 | ...00,417,421-445 
  indexer.ts       |   94.14 |    83.67 |     100 |   94.14 | ...32-233,334,337 
  manager.ts       |   78.44 |    82.29 |   77.77 |   78.44 | ...1482,1495-1497 
  ...ent-config.ts |   80.75 |    76.11 |   82.35 |   80.75 | ...15,234,241-247 
  memoryAge.ts     |   90.47 |       80 |     100 |   90.47 | 50-51             
  paths.ts         |   80.48 |    92.53 |     100 |   80.48 | ...45-346,354-355 
  ...ing-skills.ts |     100 |       72 |     100 |     100 | 31-35,73-78,97    
  prompt.ts        |   96.96 |     86.2 |     100 |   96.96 | ...22,225,560-561 
  recall.ts        |   82.06 |       75 |    90.9 |   82.06 | ...59-364,395-406 
  ...ceSelector.ts |    93.1 |    81.81 |     100 |    93.1 | ...25,127-128,136 
  remember.ts      |   97.77 |    85.41 |     100 |   97.77 | 50,70,213,228     
  scan.ts          |   93.12 |    74.19 |     100 |   93.12 | ...08-109,154,157 
  ...et-scanner.ts |     100 |      100 |     100 |     100 |                   
  ...entPlanner.ts |   58.33 |    67.34 |   56.25 |   58.33 | ...61-282,358-403 
  status.ts        |   10.52 |      100 |       0 |   10.52 | 41-98             
  store.ts         |   93.33 |    81.25 |     100 |   93.33 | ...,94-95,119-120 
  ...git-status.ts |     100 |     87.5 |     100 |     100 | 30                
  ...cret-guard.ts |     100 |      100 |     100 |     100 |                   
  ...emory-sync.ts |   94.24 |    82.85 |     100 |   94.24 | ...34-236,246-247 
  types.ts         |     100 |      100 |     100 |     100 |                   
  ...ontextFile.ts |   79.38 |    78.33 |   81.81 |   79.38 | ...58-272,286-291 
 src/mocks         |       0 |        0 |       0 |       0 |                   
  msw.ts           |       0 |        0 |       0 |       0 | 1-9               
 src/models        |    91.2 |    88.27 |   89.74 |    91.2 |                   
  constants.ts     |     100 |      100 |     100 |     100 |                   
  ...tor-config.ts |   90.55 |    91.42 |     100 |   90.55 | 146,152,155-164   
  index.ts         |     100 |      100 |     100 |     100 |                   
  ...nfigErrors.ts |   74.22 |       44 |   84.61 |   74.22 | ...,67-74,106-117 
  ...igResolver.ts |   98.66 |    93.05 |     100 |   98.66 | 165,327,333       
  modelRegistry.ts |     100 |    98.91 |     100 |     100 | 177               
  modelsConfig.ts  |   88.07 |    86.78 |   85.36 |   88.07 | ...1358,1387-1388 
  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   |   82.94 |    91.32 |   69.69 |   82.94 |                   
  autoMode.ts      |   97.78 |    94.08 |     100 |   97.78 | ...42,570-577,686 
  ...transcript.ts |      98 |       84 |     100 |      98 | 200-201           
  classifier.ts    |      94 |    94.44 |     100 |      94 | 158-165,385-389   
  ...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 |   84.91 |     89.1 |      80 |   84.91 | ...1026,1132-1136 
  rule-parser.ts   |   97.42 |    93.82 |     100 |   97.42 | ...-890,1039-1041 
  ...-semantics.ts |   70.36 |    91.07 |   46.66 |   70.36 | ...2237,2300-2303 
  types.ts         |     100 |      100 |     100 |     100 |                   
 ...sifier-prompts |   99.04 |    95.23 |     100 |   99.04 |                   
  system-prompt.ts |   99.04 |    95.23 |     100 |   99.04 | 220               
 src/plan-gate     |   76.16 |    91.42 |      80 |   76.16 |                   
  ...viewAgents.ts |   52.28 |    88.46 |   66.66 |   52.28 | ...24-220,242-243 
  ...provalGate.ts |   92.47 |    92.85 |   85.71 |   92.47 | ...86-187,268-274 
  state.ts         |     100 |      100 |     100 |     100 |                   
  types.ts         |     100 |      100 |     100 |     100 |                   
 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     |   79.38 |       75 |   68.75 |   79.38 |                   
  all-providers.ts |   69.23 |      100 |       0 |   69.23 | 71-72,76-82,86-92 
  index.ts         |     100 |      100 |     100 |     100 |                   
  install.ts       |   93.11 |     84.5 |     100 |   93.11 | ...56-257,330-331 
  ...der-config.ts |    72.6 |    69.49 |   73.91 |    72.6 | ...94-495,502-511 
  types.ts         |       0 |        0 |       0 |       0 | 1                 
 ...viders/presets |   97.56 |    89.28 |   55.55 |   97.56 |                   
  ...oding-plan.ts |   87.34 |      100 |       0 |   87.34 | 82-84,87-89,91-94 
  ...a-standard.ts |     100 |      100 |     100 |     100 |                   
  ...token-plan.ts |     100 |      100 |     100 |     100 |                   
  ...m-provider.ts |   97.05 |    81.25 |      75 |   97.05 | 118-119           
  deepseek.ts      |     100 |      100 |     100 |     100 |                   
  idealab.ts       |     100 |      100 |     100 |     100 |                   
  minimax.ts       |     100 |      100 |     100 |     100 |                   
  modelscope.ts    |     100 |      100 |     100 |     100 |                   
  openrouter.ts    |     100 |      100 |     100 |     100 |                   
  requesty.ts      |     100 |      100 |     100 |     100 |                   
  zai.ts           |     100 |      100 |     100 |     100 |                   
 src/qwen          |    85.3 |     78.8 |   95.89 |    85.3 |                   
  ...tGenerator.ts |   98.64 |    98.18 |     100 |   98.64 | 105-106           
  qwenOAuth2.ts    |   82.55 |    73.71 |   90.62 |   82.55 | ...1183-1199,1229 
  ...kenManager.ts |   85.36 |    76.61 |     100 |   85.36 | ...52-757,778-783 
 src/resources     |     100 |      100 |     100 |     100 |                   
  ...e-registry.ts |     100 |      100 |     100 |     100 |                   
 src/services      |   88.88 |    85.58 |   95.28 |   88.88 |                   
  ...ionTrailer.ts |     100 |      100 |     100 |     100 |                   
  ...llRegistry.ts |   97.35 |    85.34 |     100 |   97.35 | ...94,117,417-418 
  ...ionService.ts |   96.65 |    95.57 |     100 |   96.65 | ...76,692,821-829 
  ...ingService.ts |   87.18 |    83.14 |   83.72 |   87.18 | ...1456,1471-1472 
  ...ttribution.ts |   91.73 |    87.71 |      90 |   91.73 | ...80-685,826-827 
  ...utSlimming.ts |   99.52 |    96.42 |     100 |   99.52 | 98                
  cronScheduler.ts |    95.5 |    91.55 |     100 |    95.5 | ...1089,1400-1401 
  cronTasksFile.ts |   94.25 |     88.7 |     100 |   94.25 | ...01-202,211-212 
  cronTasksLock.ts |   94.44 |    89.47 |     100 |   94.44 | ...02-103,132-133 
  ...eryService.ts |   96.22 |    93.75 |      90 |   96.22 | 121,155-156,161   
  ...oryService.ts |   88.17 |    79.02 |    92.3 |   88.17 | ...1303,1344-1347 
  fileReadCache.ts |     100 |      100 |     100 |     100 |                   
  ...temService.ts |   91.27 |    82.69 |    90.9 |   91.27 | ...94,196,294-301 
  ...ratedFiles.ts |      96 |    88.23 |     100 |      96 | 119-120,146-147   
  gitInit.ts       |     100 |      100 |     100 |     100 |                   
  ...reeService.ts |   69.86 |    69.35 |   93.33 |   69.86 | ...2066,2094-2095 
  ...references.ts |   98.85 |    88.13 |     100 |   98.85 | 124-125           
  ...ionService.ts |   98.09 |     97.1 |     100 |   98.09 | ...00-601,648-649 
  ...ticsDumper.ts |   98.37 |    95.23 |     100 |   98.37 | 185-186           
  ...ureMonitor.ts |   96.06 |    91.48 |   96.96 |   96.06 | ...49,850,864-866 
  ...orRegistry.ts |   97.27 |    91.22 |     100 |   97.27 | ...50-451,606-607 
  ...ttachments.ts |   97.24 |    90.34 |     100 |   97.24 | ...08,646,661-662 
  ...on-service.ts |    94.3 |    92.54 |   97.05 |    94.3 | ...79-581,633-641 
  sessionRecap.ts  |     9.7 |      100 |       0 |     9.7 | 42-172            
  ...ionService.ts |   87.39 |    80.54 |   96.42 |   87.39 | ...1958,2028-2048 
  sessionTitle.ts  |   93.87 |    71.15 |     100 |   93.87 | ...32-235,266-267 
  ...ionService.ts |   83.94 |    77.69 |   96.96 |   83.94 | ...2398,2404-2409 
  ...pInhibitor.ts |   97.42 |    92.77 |     100 |   97.42 | ...30,169,369-370 
  ...Estimation.ts |     100 |    86.66 |     100 |     100 | 96-97             
  ...ageService.ts |   97.76 |    91.59 |   93.75 |   97.76 | ...61-262,366,567 
  ...UseSummary.ts |   94.63 |    88.46 |     100 |   94.63 | ...62-164,214-215 
  ...oryService.ts |   89.03 |    65.38 |     100 |   89.03 | ...23-325,330-331 
  ...reeCleanup.ts |   14.56 |      100 |   33.33 |   14.56 | 58-185            
  ...ionService.ts |   87.98 |    86.84 |     100 |   87.98 | ...38-439,455-456 
 ...icrocompaction |   99.35 |    95.69 |     100 |   99.35 |                   
  microcompact.ts  |   99.35 |    95.69 |     100 |   99.35 | 224-225,618       
 ...s/visionBridge |   97.13 |    94.73 |   94.11 |   97.13 |                   
  ...capability.ts |     100 |      100 |     100 |     100 |                   
  ...part-utils.ts |     100 |      100 |     100 |     100 |                   
  ...-constants.ts |     100 |      100 |     100 |     100 |                   
  ...ge-service.ts |   96.08 |     91.8 |      90 |   96.08 | ...14,221,309,406 
 src/skills        |    88.2 |    87.01 |   90.16 |    88.2 |                   
  index.ts         |     100 |      100 |     100 |     100 |                   
  ...activation.ts |     100 |     93.1 |     100 |     100 | 93,112            
  skill-load.ts    |   94.84 |     87.5 |     100 |   94.84 | ...03,223,235-237 
  skill-manager.ts |   83.44 |    82.16 |   82.35 |   83.44 | ...1202,1209-1213 
  skill-paths.ts   |   89.65 |    86.95 |     100 |   89.65 | ...11-112,117-118 
  symlinkScope.ts  |     100 |      100 |     100 |     100 |                   
  types.ts         |   97.91 |       98 |     100 |   97.91 | 277-278           
 ...ataviz/scripts |   80.06 |    95.23 |   88.23 |   80.06 |                   
  ...te_palette.js |   80.06 |    95.23 |   88.23 |   80.06 | 261-296,306-328   
 ...s/bundled/loop |   97.48 |    95.77 |     100 |   97.48 |                   
  ...omous-loop.ts |     100 |      100 |     100 |     100 |                   
  ...-task-file.ts |   94.85 |     92.4 |     100 |   94.85 | ...56,367,375-376 
  ...k-resolver.ts |     100 |      100 |     100 |     100 |                   
 src/subagents     |      86 |     85.9 |   94.33 |      86 |                   
  ...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 |   81.51 |    80.66 |   91.17 |   81.51 | ...1450,1527-1528 
  types.ts         |     100 |      100 |     100 |     100 |                   
  validation.ts    |   92.46 |    95.18 |     100 |   92.46 | 47-52,63-68,71-76 
 src/telemetry     |    79.4 |    87.96 |   81.39 |    79.4 |                   
  config.ts        |     100 |      100 |     100 |     100 |                   
  constants.ts     |     100 |      100 |     100 |     100 |                   
  ...on-metrics.ts |   99.06 |    80.48 |     100 |   99.06 | 183,197           
  ...on-tracing.ts |   74.55 |    73.21 |   70.58 |   74.55 | ...95,350-352,368 
  ...attributes.ts |   97.47 |    93.15 |     100 |   97.47 | 39-44             
  ...ag-metrics.ts |     100 |    77.77 |     100 |     100 | 21,40             
  ...t-loop-lag.ts |     100 |    90.47 |     100 |     100 | 49,76             
  ...-exporters.ts |   65.78 |    83.33 |   55.55 |   65.78 | ...04-105,108-109 
  index.ts         |     100 |      100 |     100 |     100 |                   
  ...t.circular.ts |       0 |        0 |       0 |       0 | 1-111             
  ...-processor.ts |   99.09 |    95.61 |      95 |   99.09 | 141,365-366       
  ...t.circular.ts |       0 |        0 |       0 |       0 | 1-128             
  loggers.ts       |   52.84 |    68.88 |      60 |   52.84 | ...1318,1335-1355 
  metrics.ts       |   76.07 |    78.57 |   78.94 |   76.07 | ...1021,1024-1035 
  ...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       
  sdk.ts           |   86.75 |     88.4 |   66.66 |   86.75 | ...17-621,659-681 
  ...on-context.ts |     100 |      100 |     100 |     100 |                   
  ...on-tracing.ts |   90.06 |    88.25 |   96.55 |   90.06 | ...1541,1572-1575 
  ...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         |   78.83 |    94.01 |   83.54 |   78.83 | ...1301,1305-1312 
  uiTelemetry.ts   |   93.07 |    92.85 |   83.33 |   93.07 | ...62,290,410-411 
 ...ry/qwen-logger |    69.9 |    82.69 |   65.51 |    69.9 |                   
  event-types.ts   |       0 |        0 |       0 |       0 |                   
  qwen-logger.ts   |    69.9 |    82.52 |   64.91 |    69.9 | ...1079,1117-1118 
 src/test-utils    |   93.85 |    98.14 |   77.77 |   93.85 |                   
  config.ts        |     100 |      100 |     100 |     100 |                   
  ...st-helpers.ts |   94.11 |       90 |     100 |   94.11 | 69-70             
  index.ts         |     100 |      100 |     100 |     100 |                   
  mock-tool.ts     |    92.3 |      100 |   74.19 |    92.3 | ...54,218-219,232 
  ...aceContext.ts |     100 |      100 |     100 |     100 |                   
 src/tools         |   83.94 |    83.38 |   87.61 |   83.94 |                   
  ...erQuestion.ts |   90.74 |    82.43 |    92.3 |   90.74 | ...23-424,431-432 
  ...-registrar.ts |    77.7 |    66.66 |   66.66 |    77.7 | ...72-277,292-294 
  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.23 |    87.5 |   98.23 | 56-57             
  diffOptions.ts   |     100 |      100 |     100 |     100 |                   
  edit.ts          |    82.7 |    86.77 |   81.25 |    82.7 | ...43-744,863-913 
  ...r-worktree.ts |   83.14 |    67.56 |    87.5 |   83.14 | ...84-187,278-279 
  enterPlanMode.ts |   82.35 |    73.68 |   85.71 |   82.35 | ...,86-91,124-138 
  exit-worktree.ts |   83.29 |    83.65 |   94.44 |   83.29 | ...14-515,537-538 
  exitPlanMode.ts  |    81.7 |    73.41 |     100 |    81.7 | ...28-531,561-564 
  glob.ts          |   94.61 |     87.5 |   92.85 |   94.61 | ...83,216,347,350 
  grep.ts          |   83.09 |    86.66 |   80.95 |   83.09 | ...60-661,711-712 
  ...adTracking.ts |     100 |      100 |     100 |     100 |                   
  loop-wakeup.ts   |   99.24 |    92.85 |     100 |   99.24 | 44                
  ls.ts            |   96.74 |    90.27 |     100 |   96.74 | 176-181,212,216   
  lsp.ts           |   72.77 |    60.09 |   90.32 |   72.77 | ...1211,1213-1214 
  ...nt-manager.ts |   81.32 |    79.44 |    85.1 |   81.32 | ...3160,3162-3163 
  mcp-client.ts    |   75.61 |     83.6 |   86.04 |   75.61 | ...1926,1930-1933 
  ...ry-timeout.ts |     100 |      100 |     100 |     100 |                   
  mcp-errors.ts    |     100 |      100 |     100 |     100 |                   
  ...pool-entry.ts |   77.56 |    84.11 |   77.14 |   77.56 | ...1291,1299-1300 
  ...ool-events.ts |       8 |      100 |       0 |       8 | 132-158           
  mcp-pool-key.ts  |   97.46 |    93.93 |     100 |   97.46 | 175-176           
  ...ce-content.ts |   96.55 |    91.17 |     100 |   96.55 | 80-82             
  mcp-retry.ts     |   97.67 |    95.65 |     100 |   97.67 | 131-132           
  mcp-status.ts    |     100 |      100 |     100 |     100 |                   
  mcp-tool.ts      |   91.66 |    89.74 |   96.77 |   91.66 | ...20-721,771-772 
  ...sport-pool.ts |   83.49 |    80.15 |   84.61 |   83.49 | ...1409,1416-1420 
  ...ace-budget.ts |   87.27 |     82.6 |     100 |   87.27 | ...00-305,340-345 
  memory-config.ts |     100 |      100 |     100 |     100 |                   
  ...iable-tool.ts |     100 |    84.61 |     100 |     100 | 101,108           
  monitor.ts       |   91.65 |    84.05 |   88.46 |   91.65 | ...87,600,796-801 
  notebook-edit.ts |   85.55 |    77.39 |   81.25 |   85.55 | ...86-902,948-949 
  ...escendants.ts |   36.17 |    64.51 |   55.55 |   36.17 | ...46-310,385-390 
  ...nforcement.ts |   82.57 |    89.74 |     100 |   82.57 | 174-185,234-247   
  read-file.ts     |   94.71 |    90.21 |   81.81 |   94.71 | ...04,307,390-391 
  ...p-resource.ts |   96.85 |      100 |   91.66 |   96.85 | 92-96             
  ...d-artifact.ts |   90.28 |    85.71 |    87.5 |   90.28 | ...09-410,424-436 
  ripGrep.ts       |   95.87 |     88.4 |   94.73 |   95.87 | ...56-657,663-664 
  ...-transport.ts |   71.42 |    55.55 |   71.42 |   71.42 | ...36-137,143-144 
  send-message.ts  |    82.3 |    89.65 |    62.5 |    82.3 | ...37-243,326-334 
  ...n-mcp-view.ts |   93.57 |     92.3 |      90 |   93.57 | 122-130           
  shell.ts         |   77.37 |    81.87 |   91.48 |   77.37 | ...4813,4876-4877 
  skill-utils.ts   |     100 |      100 |     100 |     100 |                   
  skill.ts         |   90.22 |     93.1 |   88.88 |   90.22 | ...69,473,502-524 
  ...eticOutput.ts |   95.12 |      100 |      80 |   95.12 | 87-88             
  task-create.ts   |    94.4 |    93.33 |   81.81 |    94.4 | 45-49,63-64,95    
  task-list.ts     |   73.38 |    77.77 |   83.33 |   73.38 | ...02,105,109-116 
  task-stop.ts     |   93.14 |    96.15 |   85.71 |   93.14 | 39-40,54-64       
  task-update.ts   |   82.89 |    83.92 |    92.3 |   82.89 | ...14-422,454-465 
  team-create.ts   |   97.22 |    85.71 |   83.33 |   97.22 | 48-49,129-130     
  team-delete.ts   |   86.74 |    83.33 |   83.33 |   86.74 | 37-38,42-48,72-73 
  ...n-approval.ts |   92.14 |    96.77 |   77.77 |   92.14 | 38-39,42-43,93-99 
  todoWrite.ts     |   89.27 |    82.05 |   92.85 |   89.27 | ...50-555,577-578 
  tool-error.ts    |     100 |      100 |     100 |     100 |                   
  tool-names.ts    |     100 |      100 |     100 |     100 |                   
  tool-registry.ts |   76.21 |    74.13 |   81.81 |   76.21 | ...72-873,881-882 
  tool-search.ts   |    94.1 |    89.47 |   93.33 |    94.1 | ...69,384-393,447 
  tools.ts         |   93.97 |     90.9 |   95.23 |   93.97 | ...36-537,553-559 
  web-fetch.ts     |   90.12 |    85.71 |   92.85 |   90.12 | ...11-312,326-327 
  write-file.ts    |   84.28 |    82.79 |   84.61 |   84.28 | ...87-690,727-762 
 src/tools/agent   |   83.51 |       84 |   81.52 |   83.51 |                   
  agent.ts         |   83.55 |    84.12 |   81.17 |   83.55 | ...3424,3446-3456 
  fork-subagent.ts |   82.35 |    77.77 |   85.71 |   82.35 | 83-101,133-134    
 ...tools/artifact |   95.67 |    91.01 |   88.37 |   95.67 |                   
  artifact-tool.ts |   90.78 |    81.39 |   69.23 |   90.78 | ...94-295,303-306 
  ...-publisher.ts |     100 |    85.71 |     100 |     100 | 32                
  ...-publisher.ts |   96.74 |    97.72 |    87.5 |   96.74 | 29-30,156-157     
  html.ts          |     100 |    96.77 |     100 |     100 | 122               
  ...-publisher.ts |     100 |       80 |     100 |     100 | 30                
  oss-publisher.ts |    98.1 |    91.48 |     100 |    98.1 | 43-45             
  publisher.ts     |     100 |      100 |     100 |     100 |                   
 ...s/computer-use |   90.21 |    82.17 |   78.08 |   90.21 |                   
  bootstrap.ts     |   59.42 |    80.95 |   41.66 |   59.42 | ...35-339,341-345 
  client.ts        |   80.11 |       90 |   77.77 |   80.11 | ...97,242-243,274 
  constants.ts     |     100 |    94.73 |     100 |     100 | 129,256           
  downloader.ts    |   65.29 |    52.77 |   58.33 |   65.29 | ...99-300,316-355 
  index.ts         |     100 |      100 |     100 |     100 |                   
  install-state.ts |   94.44 |    72.72 |     100 |   94.44 | 44-45             
  ...n-detector.ts |     100 |     87.5 |     100 |     100 | 50                
  schemas.ts       |     100 |      100 |     100 |     100 |                   
  tool.ts          |    96.3 |    85.71 |     100 |    96.3 | 75-76,184,252-258 
 ...tools/workflow |   87.46 |    79.41 |   85.71 |   87.46 |                   
  workflow.ts      |   87.46 |    79.41 |   85.71 |   87.46 | ...51-652,664-667 
 src/utils         |   90.83 |    89.05 |   95.23 |   90.83 |                   
  LruCache.ts      |       0 |        0 |       0 |       0 | 1-41              
  ...Controller.ts |     100 |      100 |     100 |     100 |                   
  ...ssageQueue.ts |     100 |      100 |     100 |     100 |                   
  ...cFileWrite.ts |   94.76 |    93.26 |     100 |   94.76 | ...30-531,634-638 
  bareMode.ts      |   81.81 |      100 |      50 |   81.81 | 18-19             
  browser.ts       |   86.84 |    78.94 |     100 |   86.84 | 34,36-37,65-66    
  btwUtils.ts      |   13.95 |      100 |       0 |   13.95 | 17-31,34-55       
  bundlePaths.ts   |     100 |      100 |     100 |     100 |                   
  ...on-context.ts |     100 |      100 |     100 |     100 |                   
  ...ncyLimiter.ts |   94.64 |    95.23 |     100 |   94.64 | 64-66             
  ...igResolver.ts |     100 |      100 |     100 |     100 |                   
  ...engthError.ts |   91.11 |    89.47 |     100 |   91.11 | ...46-147,154-155 
  cronDisplay.ts   |     100 |    91.66 |     100 |     100 | 15,43,57          
  cronParser.ts    |   95.34 |     93.1 |     100 |   95.34 | 41-42,47-48,70-71 
  debugLogger.ts   |   96.55 |    94.54 |   88.23 |   96.55 | 190-194           
  editHelper.ts    |   93.63 |    83.52 |     100 |   93.63 | ...28-429,463-464 
  editor.ts        |   97.65 |    95.45 |     100 |   97.65 | ...35-336,338-339 
  env.ts           |     100 |      100 |     100 |     100 |                   
  ...arResolver.ts |   94.28 |    88.88 |     100 |   94.28 | 28-29,125-126     
  ...entContext.ts |   96.48 |    87.41 |   96.66 |   96.48 | ...74,476-477,544 
  errorParsing.ts  |    97.7 |    97.05 |     100 |    97.7 | 72-73             
  ...rReporting.ts |   95.65 |    93.33 |     100 |   95.65 | 37-38             
  errors.ts        |   81.73 |    90.55 |   57.89 |   81.73 | ...08-324,328-334 
  fetch.ts         |   72.45 |    81.81 |   71.42 |   72.45 | ...31,142-143,162 
  fileUtils.ts     |    92.7 |    86.93 |   95.45 |    92.7 | ...1220,1252-1258 
  forkedAgent.ts   |   92.45 |    82.35 |   93.75 |   92.45 | ...34,642,647-654 
  formatters.ts    |   81.81 |       75 |     100 |   81.81 | 15-16             
  ...eUtilities.ts |   89.21 |    86.66 |     100 |   89.21 | 16-17,49-55,65-66 
  ...rStructure.ts |   94.36 |    94.28 |     100 |   94.36 | ...17-120,330-335 
  getPty.ts        |   31.57 |       50 |     100 |   31.57 | 26-38             
  gitDiff.ts       |   92.36 |    80.09 |     100 |   92.36 | ...55-856,928-929 
  gitDirect.ts     |   98.46 |    90.17 |     100 |   98.46 | 148,268,352       
  ...noreParser.ts |   94.59 |    92.59 |     100 |   94.59 | ...05-106,140-141 
  gitUtils.ts      |   72.91 |    90.32 |   83.33 |   72.91 | ...,77-78,102-153 
  iconvHelper.ts   |     100 |      100 |     100 |     100 |                   
  ...rePatterns.ts |     100 |      100 |     100 |     100 |                   
  ...ionManager.ts |     100 |     90.9 |     100 |     100 | 27                
  ...lPromptIds.ts |     100 |      100 |     100 |     100 |                   
  jsonl-utils.ts   |   93.13 |     92.3 |     100 |   93.13 | ...16-317,356-359 
  ...-detection.ts |     100 |      100 |     100 |     100 |                   
  ...iagnostics.ts |    96.4 |     94.2 |     100 |    96.4 | ...66,293-294,376 
  ...yDiscovery.ts |    92.4 |    89.01 |     100 |    92.4 | ...28,331,522-525 
  ...tProcessor.ts |   93.77 |    89.02 |     100 |   93.77 | ...13-319,406-407 
  ...Inspectors.ts |     100 |      100 |     100 |     100 |                   
  modelId.ts       |   98.96 |    98.14 |     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  |   90.85 |    87.87 |     100 |   90.85 | ...97-199,222-227 
  partUtils.ts     |     100 |    98.63 |     100 |     100 | 206               
  pathReader.ts    |     100 |      100 |     100 |     100 |                   
  paths.ts         |   93.72 |    92.59 |     100 |   93.72 | ...47-448,450-452 
  pdf.ts           |   93.68 |    87.05 |     100 |   93.68 | ...96-297,321-325 
  projectPath.ts   |     100 |      100 |     100 |     100 |                   
  projectRoot.ts   |   71.73 |    78.57 |     100 |   71.73 | 54-66             
  ...ectSummary.ts |   89.62 |    72.41 |     100 |   89.62 | ...40-145,196-199 
  ...tIdContext.ts |     100 |      100 |     100 |     100 |                   
  proxyUtils.ts    |     100 |      100 |     100 |     100 |                   
  ...rDetection.ts |   59.15 |    76.92 |     100 |   59.15 | ...5,89-90,96-101 
  ...noreParser.ts |   92.63 |    91.37 |     100 |   92.63 | ...72-173,192-193 
  rateLimit.ts     |   93.75 |    89.32 |     100 |   93.75 | ...13,218-219,262 
  readManyFiles.ts |   98.15 |    94.44 |     100 |   98.15 | 209,261-262       
  retry.ts         |   95.93 |    91.83 |     100 |   95.93 | ...33,524-525,543 
  retryContext.ts  |     100 |      100 |     100 |     100 |                   
  ...sification.ts |   97.65 |    96.96 |     100 |   97.65 | ...00,250-251,277 
  retryPolicy.ts   |   97.72 |    90.56 |     100 |   97.72 | 130-131           
  ripgrepUtils.ts  |   50.94 |    85.71 |      70 |   50.94 | ...54-255,268-346 
  ...sDiscovery.ts |   97.42 |    92.85 |     100 |   97.42 | ...04,182-183,202 
  ...iagnostics.ts |   83.08 |     67.5 |   92.59 |   83.08 | ...23,543-544,550 
  ...tchOptions.ts |      83 |    86.77 |   95.45 |      83 | ...68,593,622-631 
  ...odelPrefix.ts |     100 |      100 |     100 |     100 |                   
  runtimeStatus.ts |    97.5 |       90 |     100 |    97.5 | 162-163           
  safe-mode.ts     |     100 |      100 |     100 |     100 |                   
  safeJsonParse.ts |   74.07 |    83.33 |     100 |   74.07 | 40-46             
  ...nStringify.ts |     100 |      100 |     100 |     100 |                   
  ...aConverter.ts |   91.13 |    89.47 |     100 |   91.13 | ...41-42,96,98-99 
  ...aValidator.ts |   92.09 |    83.65 |   90.47 |   92.09 | ...60,882-883,896 
  ...r-launcher.ts |   96.35 |    93.97 |   85.71 |   96.35 | ...35-336,347-348 
  sedEditParser.ts |   91.72 |    92.12 |     100 |   91.72 | ...36-539,615-616 
  ...nIdContext.ts |     100 |      100 |     100 |     100 |                   
  ...orageUtils.ts |   95.98 |     83.8 |     100 |   95.98 | ...70,386,466,485 
  shell-utils.ts   |   86.24 |    89.61 |     100 |   86.24 | ...2003,2010-2014 
  ...lAstParser.ts |   95.57 |    85.88 |     100 |   95.57 | ...1066-1068,1078 
  ...ContextEnv.ts |     100 |      100 |     100 |     100 |                   
  ...nlyChecker.ts |   95.08 |    91.66 |     100 |   95.08 | ...15-316,324-325 
  sideQuery.ts     |   86.82 |     86.2 |     100 |   86.82 | ...81-187,189-195 
  ...pEventSink.ts |     100 |       80 |     100 |     100 | 61                
  ...tGenerator.ts |     100 |      100 |     100 |     100 |                   
  ...ameContext.ts |     100 |      100 |     100 |     100 |                   
  symlink.ts       |   77.77 |       50 |     100 |   77.77 | 44,54-59          
  ...emEncoding.ts |   96.36 |    91.17 |     100 |   96.36 | 59-60,124-125     
  terminalSafe.ts  |     100 |      100 |     100 |     100 |                   
  ...Serializer.ts |   98.72 |       90 |     100 |   98.72 | 42-43,134,201-203 
  testUtils.ts     |   53.33 |      100 |   33.33 |   53.33 | ...53,59-64,70-72 
  textUtils.ts     |      65 |      100 |      75 |      65 | 56-75             
  thoughtUtils.ts  |     100 |    95.45 |     100 |     100 | 99                
  ...-converter.ts |   95.23 |    85.71 |     100 |   95.23 | 36-37             
  tool-utils.ts    |    93.6 |     91.3 |     100 |    93.6 | ...58-159,162-163 
  ...ultCleanup.ts |   15.74 |    33.33 |      25 |   15.74 | 33-134            
  ...Compaction.ts |   95.68 |    95.32 |     100 |   95.68 | ...29-334,533-534 
  truncation.ts    |   75.55 |    85.71 |   71.42 |   75.55 | ...44-449,453-477 
  windowsPath.ts   |   89.47 |    79.31 |     100 |   89.47 | ...57-58,62,90-91 
  ...aceContext.ts |   95.81 |    89.39 |     100 |   95.81 | ...74-275,299-301 
  xml.ts           |    97.8 |    87.69 |     100 |    97.8 | 98-99             
  yaml-parser.ts   |   83.87 |    77.27 |     100 |   83.87 | ...31-234,239-240 
 ...ils/filesearch |   83.68 |    80.38 |   94.69 |   83.68 |                   
  crawlCache.ts    |     100 |      100 |     100 |     100 |                   
  crawler.ts       |   82.47 |    76.22 |      95 |   82.47 | ...1525,1559-1560 
  fileSearch.ts    |   93.78 |    87.67 |     100 |   93.78 | ...71-272,274-275 
  fzfWorker.ts     |       0 |        0 |       0 |       0 | 1-109             
  ...rkerHandle.ts |   84.05 |    75.43 |   89.47 |   84.05 | ...30-334,340-341 
  ignore.ts        |     100 |    97.36 |     100 |     100 | 187               
  result-cache.ts  |     100 |    93.75 |     100 |     100 | 49                
 ...uest-tokenizer |   68.81 |    73.82 |   83.87 |   68.81 |                   
  ...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.

@yiliang114

yiliang114 commented Jul 7, 2026

Copy link
Copy Markdown
Collaborator Author

Follow-up verification report — real tmux TUI after fix

Follow-up for @wenshao's tmux verification report, after commit 09f144e042c8bf3d9a609da0c4227cce4d8900a4.

Environment

  • Built and ran the bundled real interactive TUI: dist/cli.js
  • Driver: tmux session, 110x36 pane
  • Model backend: local deterministic OpenAI-compatible fake server
  • Auth/config isolation: fresh QWEN_HOME, fresh workspace, OPENAI_* pointed at the fake server
  • Noise disabled for determinism: managed auto-memory and follow-up suggestions
  • Scenario commands were typed into the TUI, not unit-test-level calls

Scenario

  1. Send two pre-compression turns:
    • first precompress marker AAA
    • second precompress marker BBB
  2. Run /compress.
  3. Send two post-compression turns:
    • third postcompress marker CCC
    • fourth postcompress marker DDD
  4. Run /rewind, select the first pre-compression turn, and confirm conversation restore.
  5. Run /rewind, select the latest post-compression turn, and confirm conversation restore.
  6. Press Enter to resend the pre-filled prompt.

Observed TUI evidence

Compression succeeded, then post-compression turns continued normally:

> first precompress marker AAA

◆ MODEL_REPLY_0: acknowledged first precompress marker AAA

> second precompress marker BBB

◆ MODEL_REPLY_1: acknowledged second precompress marker BBB

> /compress
◆ Chat history compressed from 80 to 0 tokens.

> third postcompress marker CCC

◆ MODEL_REPLY_3: acknowledged third postcompress marker CCC

> fourth postcompress marker DDD

◆ MODEL_REPLY_4: acknowledged fourth postcompress marker DDD

Trying to rewind to a pre-compression turn is now blocked explicitly:

> /rewind
✕ Cannot rewind to a turn that was compressed. Try a more recent turn.

Rewinding to the latest post-compression turn succeeds and pre-fills the prompt:

> third postcompress marker CCC

◆ MODEL_REPLY_3: acknowledged third postcompress marker CCC
● Conversation rewound. Edit your prompt and press Enter to continue.

* fourth postcompress marker DDD

Pressing Enter resends the pre-filled prompt and gets a normal model response:

> fourth postcompress marker DDD

◆ MODEL_REPLY_5: acknowledged fourth postcompress marker DDD

Screenshots

After compress and post-compression turns

Pre-compression rewind is blocked

Post-compression rewind succeeds and pre-fills prompt

Resend after rewind succeeds

Request-log check

The final post-rewind model request contained the compressed-context prefix plus the surviving post-compression turn, then the re-sent fourth postcompress marker DDD prompt. It did not restore the pre-compression turns as normal API-history entries.

Last request summary:

assistant: Got it. Thanks for the additional context!
assistant: MODEL_REPLY_3: acknowledged third postcompress marker CCC
user: fourth postcompress marker DDD
response: MODEL_REPLY_5: acknowledged fourth postcompress marker DDD

Result: the original regression from the report is fixed in the real TUI path. Pre-compression targets are rejected, while post-compression targets rewind correctly and can be continued from the pre-filled prompt.

@qwen-code-ci-bot qwen-code-ci-bot left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

No new high-confidence issues found on independent review. The includeCompressed opt-in cleanly separates rewind-specific detection from startup refresh/restore paths, and the compression-boundary guard in computeApiTruncationIndex correctly blocks pre-compression rewind targets. Downgraded from Approve to Comment: CI still running.

— qwen3.7-max via Qwen Code /review

@wenshao

wenshao commented Jul 7, 2026

Copy link
Copy Markdown
Collaborator

@qwen-code /triage

@wenshao

wenshao commented Jul 7, 2026

Copy link
Copy Markdown
Collaborator

✅ Verification report (current head 09f144e04) — fixes #6318, no regression

Verdict: at the current head this correctly fixes #6318 and does not regress the one‑prompt‑before‑/compress case. LGTM to merge.

Re: the earlier ⚠️ report on this PR — that review was posted 2026‑07‑06 15:17Z, when the head was 8e8e7a87e. At that commit only the API‑side skip existed (getStartupContextLength({includeCompressed})) while computeApiTruncationIndex still counted the retained pre‑compression UI turns, so the two sides disagreed — its finding was correct for that commit. Commit 09f144e04 "align rewind mapping after compression" (pushed ~11 h later, 2026‑07‑07 02:34Z) added exactly the missing computeApiTruncationIndex change it recommended. I re‑verified all three states on real builds, so the earlier report is now addressed / stale, not contradicted.

Method: real CLI compiled at each commit, driven through the real interactive TUI under tmux against a deterministic mock OpenAI provider (real /compress side‑query, real /rewind selector). I instrumented the actual computeApiTruncationIndex call site to dump getHistoryShallow() + the returned index, so every number below is the real value from a live session, not a re‑implementation. P = number of real user turns before /compress.

Authoritative real‑build A/B — rewind to the newest post‑compress prompt (the #6318 action)

base 5c8af1a1f (main) pre‑fix 8e8e7a87e (earlier report's head) current 09f144e04
P = 1 7 → rewound ✅ -1 → blocked ❌ 7 → rewound ✅
P ≥ 2 (the #6318 layout) -1blocked (#6318) -1 → blocked ❌ 7 → rewound ✅

The post‑/compress API history is P‑independent (the pre‑compression turns genuinely collapse into a single summary+ack), which is why the current head is correct regardless of P. On that same captured history the current head also maps the earlier post‑compress prompts correctly (POST‑1 → 3, POST‑2 → 5) and still correctly blocks rewinding into the compressed region (-1).

Real‑TUI screenshots — current head, same driven session, P = 3

/rewind opens this identical selector (newest turn pre‑selected):

Rewind Conversation (6 turns)
   #1 First pre-compress question alpha    ┐
   #2 Second pre-compress question bravo   │ collapsed into the summary by /compress
   #3 Third pre-compress question charlie  ┘
   #4 Post-compress prompt delta
   #5 Post-compress prompt echo
 › #6 Post-compress prompt foxtrot GAMMA-LATEST   ← newest, pre-selected

Choosing it → "Restore conversation only":

base 5c8af1a1f

 > /rewind
 ✕ Cannot rewind to a turn that was compressed. Try a more recent turn.

PR 09f144e04

 ● Conversation rewound. Edit your prompt and press Enter to continue.
 * Post-compress prompt foxtrot GAMMA-LATEST        ← prompt pre-filled, ready to edit

Tests (on PR head)

suite result
core/src/utils/environmentContext.test.ts 59 / 59 pass
cli/src/ui/utils/historyMapping.test.ts 26 / 26 pass

The new tests have teeth — against base source they don't even compile (TS2554: Expected 1 arguments, but got 2).

Minor, non‑blocking note

Prefix detection is coupled to two hard‑coded English sentinels — firstText.includes('Resume the prior task') and the exact ack 'Got it. Thanks for the additional context!'. Correct for today's composePostCompactHistory output, but if either string is ever reworded/localized the mapping silently regresses to #6318; a structural marker would be sturdier.

Real CLI built from 5c8af1a1f, 8e8e7a87e, 09f144e04 · interactive TUI via tmux · deterministic mock OpenAI provider · computeApiTruncationIndex call site instrumented to dump real inputs/output · isolated git workspace, file‑checkpointing on (default).

🀄 中文版(供 merge 参考)

✅ 验证报告(当前 head 09f144e04)—— 修复 #6318,且无回退

结论:在当前 head 上,本 PR 正确修复了 #6318,且没有回退“压缩前只有一条 prompt”的情况。建议合并。

关于本 PR 上更早那条 ⚠️ 报告 —— 那条 review 发布于 2026‑07‑06 15:17Z,当时 head 是 8e8e7a87e。在那个 commit 上只有API 侧的跳过(getStartupContextLength({includeCompressed})),而 computeApiTruncationIndex 仍然会数被保留的压缩前 UI 轮次,两侧因此不一致——它的结论对那个 commit 是正确的。之后的 commit 09f144e04 “align rewind mapping after compression”(约 11 小时后推送,2026‑07‑07 02:34Z)正好补上了它建议的 computeApiTruncationIndex 改动。我在真实构建上重新验证了这三个状态,所以更早那条报告现在是已被解决 / 过期,而非被推翻。

方法:分别用每个 commit 真实编译出 CLI,通过 tmux 驱动真实交互式 TUI,对接确定性 mock OpenAI provider(真实 /compress side‑query、真实 /rewind 选择器)。我在真实的 computeApiTruncationIndex 调用点插桩,dump 出 getHistoryShallow() 和返回的 index,因此下表每个数值都是真实会话里的真实值,不是重写复现。P = /compress 之前的真实用户轮次数。

权威真实构建 A/B —— rewind 到最新的压缩后 prompt(即 #6318 的操作)

base 5c8af1a1f(main) 修复前 8e8e7a87e (更早报告的 head) 当前 09f144e04
P = 1 7 → 成功 ✅ -1 → 拦截 ❌ 7 → 成功 ✅
P ≥ 2 #6318 的布局) -1拦截(#6318 -1 → 拦截 ❌ 7 → 成功 ✅

/compress 之后的 API history 是与 P 无关的(压缩前轮次确实被折叠成单条 summary+ack),这正是当前 head 无论 P 多少都正确的原因。在同一份抓取到的 history 上,当前 head 对更靠前的压缩后 prompt 也映射正确(POST‑1 → 3POST‑2 → 5),并且仍然正确拦截“rewind 进入已压缩区域”(-1)。

真实 TUI 截图 —— 当前 head,同一驱动会话,P = 3

/rewind 打开的选择器(最新 turn 默认选中):

Rewind Conversation (6 turns)
   #1 First pre-compress question alpha    ┐
   #2 Second pre-compress question bravo   │ 被 /compress 折叠进 summary
   #3 Third pre-compress question charlie  ┘
   #4 Post-compress prompt delta
   #5 Post-compress prompt echo
 › #6 Post-compress prompt foxtrot GAMMA-LATEST   ← 最新,默认选中

选中它 → “Restore conversation only”:

base 5c8af1a1f

 > /rewind
 ✕ Cannot rewind to a turn that was compressed. Try a more recent turn.

PR 09f144e04

 ● Conversation rewound. Edit your prompt and press Enter to continue.
 * Post-compress prompt foxtrot GAMMA-LATEST        ← prompt 已回填,可直接编辑

测试(PR head 上)

套件 结果
core/src/utils/environmentContext.test.ts 59 / 59 通过
cli/src/ui/utils/historyMapping.test.ts 26 / 26 通过

新测试是有效的:在 base 源码上它们甚至无法编译(TS2554: Expected 1 arguments, but got 2)。

一点小建议(不阻塞合并)

前缀检测依赖两个硬编码英文 sentinel —— firstText.includes('Resume the prior task') 和精确的 ack 'Got it. Thanks for the additional context!'。对当前 composePostCompactHistory 的输出是正确的;但一旦这两个字符串被改写 / 本地化,映射会静默退回 #6318,换成结构化标记会更稳。

真实 CLI 分别构建自 5c8af1a1f8e8e7a87e09f144e04 · tmux 驱动交互式 TUI · 确定性 mock OpenAI provider · 对 computeApiTruncationIndex 调用点插桩 dump 真实输入/输出 · 隔离 git 工作区,file‑checkpointing 默认开启。

@wenshao

wenshao commented Jul 7, 2026

Copy link
Copy Markdown
Collaborator

@qwen-code /triage

@qwen-code-ci-bot qwen-code-ci-bot left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

LGTM, looks ready to ship. ✅

@yiliang114
yiliang114 added this pull request to the merge queue Jul 7, 2026
Merged via the queue into main with commit ce00e93 Jul 7, 2026
42 checks passed
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.

Unable to /rewind after /compress even when just rewinding to non-compressed position.

3 participants