Skip to content

feat(core): add opt-in built-in web_search backed by the DashScope Responses API - #7215

Merged
tanzhenxin merged 12 commits into
mainfrom
feat/web-search-responses-api
Jul 21, 2026
Merged

feat(core): add opt-in built-in web_search backed by the DashScope Responses API#7215
tanzhenxin merged 12 commits into
mainfrom
feat/web-search-responses-api

Conversation

@tanzhenxin

@tanzhenxin tanzhenxin commented Jul 19, 2026

Copy link
Copy Markdown
Collaborator

What this PR does

  • Brings back a built-in web_search tool, backed by DashScope's server-side search via the Responses API. It works with the standard Bailian API key users already configure for their model — no MCP server hunting, no extra provider, no extra key.
  • Opt-in, off by default. Enabling requires two explicit settings: tools.webSearch.enabled: true and a search model (tools.webSearch.model, resolved against modelProviders the same way fastModel is — "modelId" or "authType:modelId"). The main model can be any provider; only the search side request needs a DashScope-compatible entry. It never activates implicitly.
  • If enabled but misconfigured, the tool stays off and a one-time startup notice says exactly which condition failed — in the interactive UI, plain headless runs, stream-json sessions, and the ACP bridge.
  • Fully env-configurable for environments that cannot write settings.json: ENABLE_WEB_SEARCH, WEB_SEARCH_MODEL, WEB_SEARCH_BASE_URL, and WEB_SEARCH_API_KEY (falling back to DASHSCOPE_API_KEY).
  • The search agent runs server-side searches and by default also opens result pages for better-grounded answers (tools.webSearch.webExtractor, billed by DashScope). Results distinguish pages actually read from unopened candidates, and the model is required to end its answer with a Sources section of markdown links.
  • Guardrails: per-call confirmation showing the query (with the standard "always allow" persistence option, consistent with other tools), untrusted-content framing on both the search side request and every returned result, and result-size limits.
  • Docs: the web-search page now presents the built-in tool first; the Bailian WebSearch MCP is no longer "Recommended" and points users with a DashScope key to the built-in tool instead.

Why it's needed

  • Web search is a must-have capability for a large share of real coding sessions: current events, fast-moving library and API documentation, troubleshooting against releases newer than the model's knowledge cutoff. A coding agent without a reliable search path either answers from stale knowledge or sends the user out of the terminal.
  • The built-in web search was removed in feat(web-search): remove built-in web_search tool, replace with MCP-based approach #3502, and revival requests (feat(tools): add WebSearch support (start by passing through DashScope enable_search) #3841, Add a dedicated web_search tool #4801) were closed with "use MCP" guidance. Since then, testing showed the officially recommended Bailian WebSearch MCP has a real quality problem on hard queries. Concrete example: on a ground-truthed query (find the CMS FQHC CY 2025 payment-rate transmittal, a US Medicare document), the MCP returned 0/5 relevant results across replays — not one cms.gov URL, none of the three target facts.
  • The DashScope Responses API search path used by this PR answered the same query correctly in both test runs: it located the exact cms.gov transmittal PDF and reported all three ground-truth facts ($202.65 base rate, 3.4% update, transmittal R12951CP) — using the same Bailian key users already configure for their model.
  • Bundling a high-quality web search capability with the Qwen model stack, instead of pointing users at an underperforming external MCP, is the suitable decision for qwen-code — this deliberately revisits the earlier discussions on this topic and supersedes the MCP-only guidance as a maintainer decision. The original closure grounds are acknowledged, not disputed: the tool is opt-in, bills the user's own DashScope key, and never turns on by itself.

Reviewer Test Plan

How to verify

  1. Add to settings.json (any existing DashScope entry works; envKey names the variable holding your Bailian key):
{
  "modelProviders": {
    "openai": [
      { "id": "qwen3.6-plus", "envKey": "DASHSCOPE_API_KEY", "baseUrl": "https://dashscope.aliyuncs.com/compatible-mode/v1" }
    ]
  },
  "tools": { "webSearch": { "enabled": true, "model": "qwen3.6-plus" } }
}
  1. Interactive: ask something time-sensitive, e.g. What did CMS change about FQHC payment rates this year? Search the web. — expect a confirmation dialog showing the query with the standard options (allow once, always allow, no), then an answer ending in a Sources: section with markdown links. Progress shows Searching: …Did N searches in Xs.
  2. Headless: same prompt via qwen -p "..." --approval-mode yolo — expect the same cited answer; web_search appears in the init tools list.
  3. Misconfiguration: remove model (or unset the key variable) and start — expect a startup notice naming the failed condition, and no web_search in the tool list. With everything unset (the default), expect no notice and no tool: nothing changes for existing users.
  4. Env-only mode (no settings.json): export ENABLE_WEB_SEARCH=true WEB_SEARCH_MODEL=qwen3.6-plus WEB_SEARCH_BASE_URL=https://dashscope.aliyuncs.com/compatible-mode/v1 with DASHSCOPE_API_KEY set — expect the tool to register and search.

Evidence (Before & After)

Before: no built-in web search — the docs pointed to the Bailian WebSearch MCP, which returned irrelevant results on hard queries. After: E2E sweep summary (full sweeps 2026-07-18 plus a targeted 17/17 re-verification on 2026-07-19 against the final build, covering the enablement matrix, a new stream-json notice check, errors, permissions, and core search; macOS, real DashScope searches; full report posted as a PR comment):

Group Coverage Result
A — enablement matrix (9) flag off / no model / unknown selector / OAuth entry / non-DashScope endpoint / missing key / US-region endpoint 9/9 PASS — registered or absent with the exact notice
B — core search (4) basic search + Sources section, hard-query anchor (CMS FQHC: 3/3 facts, cms.gov transmittal cited), progress chrome, result structure 4/4 PASS
C — deferred discovery (1) hidden from initial declarations, discovered via tool search PASS
D — permissions (2) dialog shows query with the standard allow options; decline cancels cleanly 2/2 PASS (D1 re-verified 2026-07-19 after the always-allow change)
E — errors (2) unsupported model surfaces server message; invalid key → HTTP 401, no crash 2/2 PASS
G — env-only backend (2) zero-settings enablement works; without WEB_SEARCH_BASE_URL there is no silent default endpoint 2/2 PASS

Tested on

OS Status
🍏 macOS
🪟 Windows ⚠️
🐧 Linux ⚠️

Environment (optional)

Bundled build (npm run build && npm run bundle, node dist/cli.js) against live DashScope with a standard Bailian key; interactive groups via tmux.

Risk & Scope

  • Main risk or tradeoff: a new outbound side channel to DashScope billed to the user's own key — mitigated by explicit opt-in and per-call confirmation (persistable via the standard permission rules). In auto-approve modes spend is bounded only by the model's behavior and DashScope's own account limits. Search quality and failure modes depend on a server-side backend we don't control; unknown response shapes are handled defensively and misconfigured models fail loudly on first use.
  • Not validated / out of scope: Windows/Linux only via CI; DashScope's account-level throttling behavior is not officially documented (an observed silent search-skip is covered by a retry and an explicit error). Domain allow/block filters are deliberately not offered — the backend silently ignores them.
  • Breaking changes / migration notes: none — the feature is off by default and nothing changes for existing users. The historical removal of the old multi-provider web search (feat(web-search): remove built-in web_search tool, replace with MCP-based approach #3502) stands; this is a new, DashScope-only implementation with different configuration. One behavior note: the US regional DashScope endpoint (dashscope-us) is now recognized as DashScope-compatible by main provider detection as well.

Linked Issues

References #3502 (original removal), #3841 and #4801 (revival requests closed with MCP guidance — this PR supersedes that guidance per maintainer decision; see the policy comment on those threads).

中文说明

本 PR 的内容

  • 重新引入内置 web_search 工具,基于 DashScope Responses API 的服务端搜索。使用用户已配置的标准百炼 API key 即可 — 无需寻找 MCP 服务、无需额外供应商或额外 key。
  • 默认关闭,需显式开启。 启用需要两项设置:tools.webSearch.enabled: true 和搜索模型(tools.webSearch.model,与 fastModel 相同的方式在 modelProviders 中解析 — "modelId""authType:modelId")。主模型可以是任意供应商;只有搜索侧请求需要一个 DashScope 兼容的条目。绝不会隐式激活。
  • 若已启用但配置不完整,工具保持关闭,并通过一次性启动提示准确说明哪个条件未满足 — 覆盖交互式 UI、普通 headless 运行、stream-json 会话和 ACP 桥接。
  • 对无法写入 settings.json 的环境,可完全通过环境变量配置:ENABLE_WEB_SEARCHWEB_SEARCH_MODELWEB_SEARCH_BASE_URLWEB_SEARCH_API_KEY(回退到 DASHSCOPE_API_KEY)。
  • 搜索代理执行服务端搜索,默认还会打开结果页面以获得更有依据的回答(tools.webSearch.webExtractor,由 DashScope 计费)。结果区分实际读取过的页面与未打开的候选链接,并要求模型在回答末尾附上 Sources 引用小节。
  • 防护措施:每次调用都需确认(显示查询内容,并提供与其他工具一致的"始终允许"持久化选项)、对搜索侧请求和每条返回结果的不可信内容防护框架、结果大小限制。
  • 文档:web-search 页面现在优先介绍内置工具;百炼 WebSearch MCP 不再标注"推荐",并引导持有 DashScope key 的用户改用内置工具。

为什么需要

  • 对相当多的实际使用场景来说,联网搜索是必备能力:时事、快速演进的库与 API 文档、针对晚于模型知识截止日期的版本进行排障。没有可靠搜索路径的编码代理要么基于过时知识作答,要么迫使用户离开终端。
  • 内置搜索在 feat(web-search): remove built-in web_search tool, replace with MCP-based approach #3502 中被移除,恢复请求(feat(tools): add WebSearch support (start by passing through DashScope enable_search) #3841Add a dedicated web_search tool #4801)以"请使用 MCP"的口径关闭。此后的测试表明,官方推荐的百炼 WebSearch MCP 在困难查询上存在切实的质量问题。具体例子:在一个有标准答案的查询上(查找 CMS FQHC CY 2025 支付费率的 transmittal 文件,一份美国 Medicare 文档),该 MCP 在多次重放中返回 0/5 相关结果 — 没有一个 cms.gov 链接,三个目标事实一个都没有。
  • 本 PR 使用的 DashScope Responses API 搜索路径在两次测试中都正确回答了同一查询:定位到确切的 cms.gov transmittal PDF,并给出全部三个标准答案事实($202.65 基础费率、3.4% 调整幅度、文件号 R12951CP)— 使用的正是用户已为模型配置的百炼 key。
  • 将高质量的联网搜索能力与 Qwen 模型体系捆绑提供,而不是把用户引向表现不佳的外部 MCP,是适合 qwen-code 的决定 — 这是对此前相关历史讨论的有意重审,并作为维护者决定取代"仅 MCP"的口径。原关闭理由依然成立且不被否认:该工具为显式开启、使用用户自己的 DashScope key 计费、绝不自动启用。

审阅者测试方案

如何验证

  1. settings.json 中添加上文所示配置(任何现有 DashScope 条目均可;envKey 指定存放百炼 key 的环境变量名)。
  2. 交互式:询问时效性问题,例如 What did CMS change about FQHC payment rates this year? Search the web. — 应出现显示查询内容的确认对话框(标准选项:允许一次、始终允许、拒绝),随后回答以 Sources: 小节结尾。进度显示 Searching: …Did N searches in Xs
  3. Headless:qwen -p "..." --approval-mode yolo 同样得到带引用的回答;init 工具列表中包含 web_search
  4. 配置错误:删除 model(或不设 key 变量)后启动 — 应出现说明具体失败条件的启动提示,且工具列表中无 web_search。完全不配置(默认状态)— 无提示、无工具:现有用户无任何变化。
  5. 纯环境变量模式(无 settings.json):export ENABLE_WEB_SEARCH=true WEB_SEARCH_MODEL=qwen3.6-plus WEB_SEARCH_BASE_URL=https://dashscope.aliyuncs.com/compatible-mode/v1,并已设置 DASHSCOPE_API_KEY — 工具应注册并可搜索。

证据(前后对比)

之前:无内置搜索 — 文档指向百炼 WebSearch MCP,其在困难查询上返回无关结果。之后:E2E 测试摘要(全量测试 2026-07-18,另于 2026-07-19 针对最终构建做了 17/17 的定向复验;macOS,真实 DashScope 搜索;完整报告将作为 PR 评论发布),详见上方英文表格 — 6 组共 20 项测试全部通过。

测试平台

macOS ✅;Windows / Linux 依赖 CI ⚠️

环境

打包构建(npm run build && npm run bundlenode dist/cli.js),使用标准百炼 key 访问线上 DashScope;交互式分组通过 tmux 执行。

风险与范围

  • 主要风险/权衡:新增一条使用用户自身 key 计费的 DashScope 出站侧信道 — 通过显式开启与每次调用确认(可按标准权限规则持久化)缓解。在自动批准模式下,花费仅受模型行为与 DashScope 账户自身限制约束。搜索质量与失败模式依赖我们不可控的服务端后端;未知响应形态做了防御性处理,配置错误的模型在首次使用时会明确报错。
  • 未验证/超出范围:Windows/Linux 仅由 CI 覆盖;DashScope 账户级限流行为无官方文档(观察到的静默跳过搜索由一次重试和显式错误覆盖)。刻意不提供域名允许/屏蔽过滤 — 后端会静默忽略这些参数。
  • 破坏性变更/迁移说明:无 — 功能默认关闭,现有用户无任何变化。旧版多供应商搜索的移除(feat(web-search): remove built-in web_search tool, replace with MCP-based approach #3502)维持不变;本实现为全新的、仅支持 DashScope 的实现,配置方式不同。一点行为说明:美国区 DashScope 端点(dashscope-us)现在也会被主供应商检测识别为 DashScope 兼容端点。

关联 Issue

参考 #3502(原始移除)、#3841#4801(以 MCP 口径关闭的恢复请求 — 本 PR 依维护者决定取代该口径;见相关线程中的政策评论)。

@tanzhenxin

Copy link
Copy Markdown
Collaborator Author

E2E test report

Run against live DashScope with a standard Bailian key on macOS (bundled build, node dist/cli.js; interactive tests via tmux). Two full sweeps on 2026-07-18, plus a targeted 17/17 re-verification sweep on 2026-07-19 against the final build after review fixes. Headless groups assert on the JSON transcript + captured stderr; model-visible content verified via API request logging.

Test What a user sees Result
Enablement matrix (A1–A9) tool registers only when fully configured; every misconfiguration prints a startup notice naming the failed condition; tools.exclude still suppresses it; US-region endpoint accepted PASS
stream-json notice routing (A10) with --input-format stream-json, the misconfiguration notice lands on stderr; stdout JSON frames stay clean PASS
Basic search (B1) "find the current latest LTS version of Node.js" → concrete answer + Sources: section with markdown links PASS
Hard-query anchor (B2) CMS FQHC CY 2025 transmittal query → 3/3 ground-truth facts, cms.gov PDF in opened evidence PASS
Progress chrome (B3) user side shows Did 1 search in 21.8s — never the raw result body PASS
Result structure (B4) model side receives: header → answer → opened pages → candidates → executed queries → citation policy → safety footer, in order PASS
Deferred discovery (C1) tool hidden from the initial declaration list; reached via tool discovery PASS
Confirmation dialog (D1) dialog shows the query with allow once / always allow (project & user) / no PASS
Decline path (D2) Esc cancels cleanly, no retry loop, session stays usable PASS
Unsupported model (E1) first search fails loudly with the server's Unsupported model message PASS
Invalid API key (E2) HTTP 401 surfaced on first search, no crash, no startup preflight PASS
Env-only mode (G1–G2) full env-var setup works with zero settings.json; without the endpoint variable there is no silent default PASS

@qwen-code-ci-bot

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

Copy link
Copy Markdown
Collaborator

Thanks for the PR!

Template looks good ✓

Problem: This is a feature addition, not a bug fix — but the motivation is grounded in observed evidence, not theory. The PR documents a concrete quality failure with the currently recommended Bailian WebSearch MCP (0/5 relevant results on a ground-truthed query across replays), and the DashScope Responses API path answered the same query correctly in both test runs. The revival requests (#3841, #4801) were closed with "use MCP" guidance that testing showed was inadequate. This is a real, demonstrated gap.

Direction: Web search is a must-have for a coding agent — Claude Code ships it as a built-in (CHANGELOG confirms: session-wide search limits, sub-agent search fixes, Vertex web search support, date-aware queries). Bundling a high-quality search path with the Qwen model stack instead of pointing users at an underperforming external MCP is well-aligned with the product's direction. The author is a maintainer and explicitly frames this as a maintainer decision superseding the earlier MCP-only guidance. The opt-in design (two explicit settings, off by default, bills the user's own key) addresses the original removal concerns from #3502.

Size: Core paths are heavily touched. Production logic: ~1199 lines (additions + deletions, excluding 976 test lines, 20 schema lines, 91 docs lines). The bulk is the new web-search.ts tool (978 lines) and its test file (870 lines). Since this is a feat PR by a maintainer, size is not a blocker — but flagging for awareness per the 500+ production-line policy. The 1000+ advisory also applies: the PR is large, though the scope is coherent (one new tool + its integration points + docs).

Approach: The scope feels right for what it delivers. Each piece serves the stated goal: the gate/registration logic (opt-in with diagnostic notices), the tool itself (streaming, retry, truncation, safety framing), permission integration, env-only configuration for locked-down environments, and the docs update. The .gitignore addition for test artifacts and the vitest.config.ts formatting change are minor drive-bys but harmless. One observation: the DASHSCOPE_REGIONAL_HOSTS refactor in dashscope.ts is a clean extraction that reduces duplication between the provider detection and the search gate — good.

Moving on to code review. 🔍

中文说明

感谢贡献!

模板完整 ✓

问题: 这是一个功能新增,而非 bug 修复——但动机基于实际观测证据,而非理论推测。PR 记录了当前推荐的百炼 WebSearch MCP 的具体质量问题(在一个有标准答案的查询上,多次重放均返回 0/5 相关结果),而 DashScope Responses API 路径在两次测试中都正确回答了同一查询。恢复请求(#3841#4801)以"请使用 MCP"口径关闭,但测试表明该口径不够充分。这是一个真实的、已验证的差距。

方向: 联网搜索对编码代理来说是必备能力——Claude Code 已将其作为内置功能(CHANGELOG 确认:会话级搜索限制、子代理搜索修复、Vertex 搜索支持、日期感知查询)。将高质量搜索路径与 Qwen 模型体系捆绑提供,而非引导用户使用表现不佳的外部 MCP,与产品方向高度一致。作者是维护者,并明确将此定位为取代此前"仅 MCP"口径的维护者决定。显式开启设计(两项显式设置、默认关闭、使用用户自己的 key 计费)回应了 #3502 中原始移除的顾虑。

规模: 核心路径被大量触及。生产逻辑约 1199 行(增删合计,不含 976 行测试、20 行 schema、91 行文档)。主体是新的 web-search.ts 工具(978 行)及其测试文件(870 行)。由于这是维护者提交的 feat PR,规模不构成阻断——但按 500+ 生产行策略提请关注。1000+ 大 PR 建议同样适用:PR 较大,但范围内聚(一个新工具 + 其集成点 + 文档)。

方案: 范围与交付内容匹配。每个部分都服务于既定目标:门控/注册逻辑(显式开启 + 诊断提示)、工具本体(流式、重试、截断、安全框架)、权限集成、面向受限环境的纯环境变量配置,以及文档更新。.gitignore 中对测试产物的忽略和 vitest.config.ts 的格式调整是轻微的顺手改动,但无害。一点观察:dashscope.tsDASHSCOPE_REGIONAL_HOSTS 的提取是一个干净的重构,减少了供应商检测与搜索门控之间的重复——好。

进入代码审查 🔍

Qwen Code · qwen3.7-max

Reviewed at 18a9bfbca718b1b43a3e6e650e3835d06fc5f329 · re-run with @qwen-code /triage

@qwen-code-ci-bot

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

Copy link
Copy Markdown
Collaborator

Code Review

Independent proposal vs. actual approach: I'd have done this the same way — a new BaseDeclarativeTool in packages/core/src/tools/web-search.ts, a registration gate in config.ts, settings schema + env resolution in CLI config, tool name/permission entries, and tests. The PR matches this structure exactly.

Findings — no critical blockers.

The implementation is well-structured and follows project conventions:

  • Reuses existing utilities properly: delay from retry.ts, buildRuntimeFetchOptions, resolveRequestTimeout, resolveModelId/buildModelIdContext, createDebugLogger, isTruthy. No parallel utilities or unnecessary abstractions.
  • The DASHSCOPE_REGIONAL_HOSTS extraction from dashscope.ts is a clean DRY improvement shared between the provider detection and the search gate.
  • The shouldDefer: true, alwaysLoad: false pattern matches web-fetch.ts. The deferred discovery via tool_search with keyword matching is consistent with the existing tool search mechanism.
  • Security posture is solid: HTTPS-only endpoint gate, untrusted-content framing on both the side request instructions and every result, per-call confirmation with standard permission persistence, result-size limits with surrogate-safe truncation, and a stream-size cap to abort runaway responses.
  • The no-search retry with backoff+jitter handles the observed DashScope throttling behavior (silent search-skip) defensively. The "no unaudited narration" invariant (partial results require at least one executed search) is a good safety property.
  • The evaluateWebSearchGate function is called both at registration time and per-invocation, catching runtime config drift (e.g., key env var unset after startup).
  • Test coverage is thorough: 46 tests covering the gate matrix, confirmation, validation, streaming, error mapping, retry, truncation, partial salvage, and progress updates.

One minor observation (non-blocking): the vitest.config.ts formatting change in packages/vscode-ide-companion is unrelated churn, but it's a single-line reformat and harmless.

Real-Scenario Testing

No DashScope API key available in this environment, so live search could not be tested. The enablement matrix was tested end-to-end via tmux with the bundled build (npm run build && npm run bundle, node dist/cli.js):

Test 1: Default config (no web search settings)

$ node dist/cli.js -p 'say hello' --approval-mode yolo --output-format stream-json 2>/dev/null | python3 -c "import sys,json; d=json.loads(sys.stdin.readline()); print('web_search' in d.get('tools',[]))"
False

✅ No web_search in tool list, no notice. Nothing changes for existing users.

Test 2: Enabled but no model

$ ENABLE_WEB_SEARCH=true node dist/cli.js -p 'say hi' --approval-mode yolo --output-format stream-json 2>&1 | grep -i 'websearch\|search model'
WebSearch is enabled but no search model is configured. Set tools.webSearch.model (or WEB_SEARCH_MODEL) to a model declared under modelProviders.

✅ Correct diagnostic notice, tool stays off.

Test 3: Enabled + model + base URL but no API key

$ ENABLE_WEB_SEARCH=true WEB_SEARCH_MODEL=qwen3.6-plus WEB_SEARCH_BASE_URL=https://dashscope.aliyuncs.com/compatible-mode/v1 node dist/cli.js -p 'say hi' --approval-mode yolo --output-format stream-json 2>&1 | grep -i 'websearch\|API key'
WebSearch is enabled with WEB_SEARCH_BASE_URL but the API key variable DASHSCOPE_API_KEY is not set. Set WEB_SEARCH_API_KEY (or DASHSCOPE_API_KEY).

✅ Correct notice naming the exact failed condition.

Test 4: Valid env-only config (dummy key)

$ ENABLE_WEB_SEARCH=true WEB_SEARCH_MODEL=qwen3.6-plus WEB_SEARCH_BASE_URL=https://dashscope.aliyuncs.com/compatible-mode/v1 DASHSCOPE_API_KEY=sk-fake node dist/cli.js -p 'say hi' --approval-mode yolo --output-format stream-json 2>/dev/null | python3 -c "import sys,json; d=json.loads(sys.stdin.readline()); print('web_search' in d.get('tools',[]))"
True

✅ Tool registers with valid config. (Search would fail at invocation with 401, which the error handling covers per unit tests.)

Test 5: Non-DashScope endpoint

$ ENABLE_WEB_SEARCH=true WEB_SEARCH_MODEL=gpt-4 WEB_SEARCH_BASE_URL=https://api.openai.com/v1 DASHSCOPE_API_KEY=sk-fake node dist/cli.js -p 'say hi' --approval-mode yolo --output-format stream-json 2>&1 | grep -i 'websearch\|DashScope'
WebSearch is enabled but WEB_SEARCH_BASE_URL (https://api.openai.com/v1) is not a DashScope-compatible endpoint.

✅ Non-DashScope endpoint correctly rejected with a clear notice.

Unit tests

$ cd packages/core && npx vitest run src/tools/web-search.test.ts
 ✓ src/tools/web-search.test.ts (46 tests) 85ms
 Test Files  1 passed (1)
      Tests  46 passed (46)

$ npx vitest run src/config/config.test.ts
 ✓ src/config/config.test.ts (404 tests) 948ms
 Test Files  1 passed (1)
      Tests  404 passed (404)

(subagent-manager.test.ts: 3 pre-existing failures on main, unrelated to this PR. The PR's 2 new tests pass.)

中文说明

代码审查

独立方案 vs. 实际方案: 我会用同样的方式实现——在 packages/core/src/tools/web-search.ts 中新建一个 BaseDeclarativeTool,在 config.ts 中添加注册门控,在 CLI 配置中添加 settings schema 和环境变量解析,添加工具名/权限条目,以及测试。PR 的结构与此完全一致。

发现——无关键阻断项。

实现结构良好,遵循项目规范:

  • 正确复用现有工具函数:retry.tsdelaybuildRuntimeFetchOptionsresolveRequestTimeoutresolveModelId/buildModelIdContextcreateDebugLoggerisTruthy。无平行工具函数或不必要的抽象。
  • dashscope.ts 提取的 DASHSCOPE_REGIONAL_HOSTS 是一个干净的 DRY 改进,在供应商检测和搜索门控之间共享。
  • shouldDefer: true, alwaysLoad: false 模式与 web-fetch.ts 一致。通过 tool_search 的延迟发现和关键词匹配与现有工具搜索机制一致。
  • 安全姿态扎实:仅 HTTPS 端点门控、对侧请求指令和每条结果的不可信内容框架、带标准权限持久化的每次调用确认、带代理对安全截断的结果大小限制、以及中止失控响应的流大小上限。
  • 无搜索重试(带退避+抖动)防御性地处理了观察到的 DashScope 限流行为(静默跳过搜索)。"无未审计叙述"不变量(部分结果需要至少一次已执行的搜索)是一个好的安全属性。
  • evaluateWebSearchGate 函数在注册时和每次调用时都被调用,捕获运行时配置漂移(如启动后 key 环境变量被取消设置)。
  • 测试覆盖全面:46 个测试覆盖门控矩阵、确认、验证、流式、错误映射、重试、截断、部分抢救和进度更新。

一个次要观察(非阻断):packages/vscode-ide-companionvitest.config.ts 的格式更改是无关的顺手改动,但只是单行重排,无害。

真实场景测试

本环境无 DashScope API key,无法测试实际搜索。启用矩阵通过 tmux 使用打包构建进行了端到端测试:

  • 测试 1:默认配置 → 工具列表中无 web_search,无提示 ✅
  • 测试 2:已启用但无模型 → 正确的诊断提示 ✅
  • 测试 3:已启用 + 模型 + 端点但无 API key → 正确的提示,指明具体失败条件 ✅
  • 测试 4:有效的纯环境变量配置 → 工具注册成功 ✅
  • 测试 5:非 DashScope 端点 → 正确拒绝并给出清晰提示 ✅
  • 单元测试:46/46 通过(web-search),404/404 通过(config)✅

Qwen Code · qwen3.7-max

Reviewed at 18a9bfbca718b1b43a3e6e650e3835d06fc5f329 · re-run with @qwen-code /triage

@qwen-code-ci-bot

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

Copy link
Copy Markdown
Collaborator

Confidence: 4/5 — solid, well-tested feature with a clean enablement matrix; only non-blocking nits (minor unrelated churn in .gitignore and vitest.config.ts; live search untestable here without a DashScope key, but 46 unit tests + 5 E2E enablement checks cover the surface well).

This is a well-executed feature addition. The motivation is grounded in observed evidence — the recommended MCP returned 0/5 relevant results on a ground-truthed query, while the DashScope Responses API path answered it correctly. The opt-in design (two explicit settings, off by default, bills the user's own key) directly addresses the concerns that led to the original removal in #3502.

The implementation follows project conventions cleanly: it reuses existing utilities (delay, buildRuntimeFetchOptions, resolveModelId, isTruthy), matches the BaseDeclarativeTool pattern from web-fetch.ts, and the DASHSCOPE_REGIONAL_HOSTS extraction is a nice DRY win. The security posture is thorough — HTTPS-only gate, untrusted-content framing at both the side-request and result layers, per-call confirmation, surrogate-safe truncation, and a stream-size cap.

The enablement matrix works exactly as promised in testing: default → silent, misconfigured → diagnostic notice naming the exact failed condition, valid config → tool registers. The "no unaudited narration" invariant (partial results require at least one executed search) is a thoughtful safety property.

If I had to maintain this in six months, I'd thank the author — the comments explain the why (retry rationale, truncation strategy, security invariants), the tests are comprehensive, and the code doesn't over-abstract.

中文说明

置信度:4/5 — 扎实、测试充分的功能,启用矩阵干净;仅有非阻断的小问题(.gitignorevitest.config.ts 中的轻微无关改动;本环境无 DashScope key 无法测试实际搜索,但 46 个单元测试 + 5 个 E2E 启用检查覆盖了大部分表面)。

这是一个执行良好的功能新增。动机基于实际观测证据——推荐的 MCP 在一个有标准答案的查询上返回 0/5 相关结果,而 DashScope Responses API 路径正确回答了该查询。显式开启设计(两项显式设置、默认关闭、使用用户自己的 key 计费)直接回应了导致 #3502 原始移除的顾虑。

实现干净地遵循项目规范:复用现有工具函数、匹配 web-fetch.tsBaseDeclarativeTool 模式、DASHSCOPE_REGIONAL_HOSTS 提取是一个不错的 DRY 改进。安全姿态全面——仅 HTTPS 门控、侧请求和结果层的不可信内容框架、每次调用确认、代理对安全截断、流大小上限。

启用矩阵在测试中完全按预期工作:默认 → 静默,配置错误 → 指明具体失败条件的诊断提示,有效配置 → 工具注册。"无未审计叙述"不变量(部分结果需要至少一次已执行的搜索)是一个深思熟虑的安全属性。

Qwen Code · qwen3.7-max

Reviewed at 18a9bfbca718b1b43a3e6e650e3835d06fc5f329 · re-run with @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. ✅

Resolves the ACP bootstrap conflict (keep #7145 profiling wrapper + warning
emission), drops the session.ts warnings block superseded by #7174, and
guards the ACP getWarnings call against stubbed configs.

Claude-Session: https://claude.ai/code/session_01KwsYFzWZ6VLCxVN8MbeFXb
…nresolved agent allow-lists

Review follow-ups on #7215: the endpoint gate now rejects plaintext
endpoints (the side request carries a bearer key), and an agent allow-list
whose names resolve to no registered tool keeps its dead entries instead of
widening to the inherited toolset — an agent restricted to the unavailable
WebSearch now runs tool-less rather than gaining shell/write.

Claude-Session: https://claude.ai/code/session_01KwsYFzWZ6VLCxVN8MbeFXb
…dirs

The CLI unit-test suites write debug logs relative to the package dir
(custom/, first/, from-env/, workspace/); a merge-commit git add swept
them in. Remove them and ignore the directories until the tests are
pointed at temp dirs.

Claude-Session: https://claude.ai/code/session_01KwsYFzWZ6VLCxVN8MbeFXb
@github-actions

github-actions Bot commented Jul 19, 2026

Copy link
Copy Markdown
Contributor

Code Coverage Summary

Package Lines Statements Functions Branches
CLI 82.1% 82.1% 88.05% 82.21%
Core 86.87% 86.87% 88.14% 85.96%
CLI Package - Full Text Report
-------------------|---------|----------|---------|---------|-------------------
File               | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s 
-------------------|---------|----------|---------|---------|-------------------
All files          |    82.1 |    82.21 |   88.05 |    82.1 |                   
 src               |   81.37 |    79.29 |    86.9 |   81.37 |                   
  cli.ts           |   94.41 |    83.78 |     100 |   94.41 | ...75-476,486-487 
  gemini.tsx       |   73.58 |    77.14 |    82.6 |   73.58 | ...1159-1163,1284 
  ...ractiveCli.ts |   78.94 |    76.87 |   81.25 |   78.94 | ...2238-2240,2277 
  ...liCommands.ts |   88.34 |    83.87 |      90 |   88.34 | ...63,480,514,635 
  ...ActiveAuth.ts |     100 |     87.5 |     100 |     100 | 66-80             
 ...cp-integration |   65.72 |    68.92 |   86.93 |   65.72 |                   
  acpAgent.ts      |   65.25 |    68.66 |   86.85 |   65.25 | ...9753,9758-9760 
  authMethods.ts   |      92 |       60 |     100 |      92 | 33-34             
  errorCodes.ts    |       0 |        0 |       0 |       0 | 1-22              
  ...ion-skills.ts |     100 |    88.23 |     100 |     100 | 17,32             
  generation.ts    |    97.1 |    81.25 |     100 |    97.1 | 109,112           
  ...DirContext.ts |     100 |      100 |     100 |     100 |                   
 ...ration/service |   97.04 |    95.71 |   93.33 |   97.04 |                   
  filesystem.ts    |   97.04 |    95.71 |   93.33 |   97.04 | ...21-122,238-239 
 ...ration/session |   91.32 |    85.36 |   95.18 |   91.32 |                   
  Session.ts       |   90.81 |    84.07 |   94.11 |   90.81 | ...7614,7641-7645 
  ...entTracker.ts |   91.53 |    89.47 |   88.88 |   91.53 | ...32,196,270-279 
  ...stop-guard.ts |     100 |    97.05 |     100 |     100 | 37,127,247        
  ...eplay-page.ts |   91.81 |    84.14 |     100 |   91.81 | ...08-118,121,217 
  ...y-replayer.ts |    98.5 |    95.38 |     100 |    98.5 | 229-231           
  index.ts         |       0 |        0 |       0 |       0 | 1-40              
  ...ssionUtils.ts |      89 |    87.87 |     100 |      89 | ...49-165,221-223 
  tasksSnapshot.ts |   94.21 |     87.5 |     100 |   94.21 | 65-71             
  ...on-tracker.ts |     100 |      100 |     100 |     100 |                   
  types.ts         |     100 |      100 |     100 |     100 |                   
 ...ssion/emitters |   95.68 |     93.7 |   96.66 |   95.68 |                   
  ...ageEmitter.ts |   95.34 |    94.11 |     100 |   95.34 | 52-59             
  PlanEmitter.ts   |     100 |    83.33 |     100 |     100 | 59                
  base-emitter.ts  |   78.26 |       75 |     100 |   78.26 | 23-24,26-28       
  index.ts         |       0 |        0 |       0 |       0 | 1-10              
  ...ll-emitter.ts |   99.17 |    97.43 |     100 |   99.17 | 352-353           
 ...ession/rewrite |    91.8 |    89.13 |   94.44 |    91.8 |                   
  LlmRewriter.ts   |    82.4 |     86.2 |     100 |    82.4 | ...,88-89,166-170 
  ...Middleware.ts |   96.96 |    88.09 |     100 |   96.96 | 144,152-154       
  TurnBuffer.ts    |     100 |      100 |     100 |     100 |                   
  config.ts        |     100 |      100 |     100 |     100 |                   
  index.ts         |     100 |      100 |     100 |     100 |                   
  types.ts         |       0 |        0 |       0 |       0 | 1                 
 src/commands      |   88.74 |    73.52 |   64.51 |   88.74 |                   
  auth.ts          |     100 |    83.33 |     100 |     100 | 11,14             
  channel.ts       |   55.55 |      100 |       0 |   55.55 | 18-22,30-40       
  extensions.tsx   |   96.77 |      100 |      50 |   96.77 | 39                
  hooks.tsx        |   66.66 |      100 |       0 |   66.66 | 20-24             
  mcp.ts           |   95.45 |      100 |      50 |   95.45 | 31                
  review.ts        |   97.77 |      100 |      50 |   97.77 | 56                
  serve.ts         |   86.42 |    67.64 |     100 |   86.42 | ...98-601,615-619 
  sessions.ts      |     100 |      100 |      50 |     100 |                   
  update.ts        |   98.11 |    94.44 |   66.66 |   98.11 | 81-82             
 ...mmands/channel |   85.61 |    87.26 |   88.23 |   85.61 |                   
  channel-cwd.ts   |     100 |      100 |     100 |     100 |                   
  ...l-registry.ts |    6.52 |      100 |       0 |    6.52 | 6-33,36-54        
  ...entry-path.ts |      75 |       50 |     100 |      75 | 8-9               
  config-utils.ts  |   95.85 |    96.29 |     100 |   95.85 | ...08-213,271-274 
  configure.ts     |    14.7 |      100 |       0 |    14.7 | 18-21,23-84       
  daemon-worker.ts |   94.67 |    85.77 |   97.61 |   94.67 | ...86-987,991-992 
  ...classifier.ts |   98.49 |    96.51 |     100 |   98.49 | 115-116,161       
  ...tact-store.ts |   93.51 |    87.65 |     100 |   93.51 | ...71,288-289,337 
  pairing.ts       |   72.85 |      100 |      50 |   72.85 | 22-28,57-68       
  pidfile.ts       |   95.55 |       90 |     100 |   95.55 | ...50-251,315-316 
  proxy.ts         |     100 |      100 |     100 |     100 |                   
  reload.ts        |    77.5 |    86.95 |      75 |    77.5 | 72-84,93-97       
  runtime.ts       |   79.03 |    87.23 |     100 |   79.03 | ...65-169,199-201 
  set.ts           |   75.72 |    85.71 |      50 |   75.72 | 65-83,111-116     
  start.ts         |   75.42 |    75.28 |   66.66 |   75.42 | ...46,552-555,567 
  ...ure-format.ts |   93.65 |    82.45 |     100 |   93.65 | ...42,48-49,74-75 
  status.ts        |   78.57 |    59.25 |   66.66 |   78.57 | ...36-137,150-161 
  stop.ts          |   57.83 |    82.35 |      50 |   57.83 | ...3,74-76,85-111 
 ...nds/extensions |   88.82 |    87.64 |   87.09 |   88.82 |                   
  consent.ts       |   72.53 |       90 |   42.85 |   72.53 | ...86-142,157-163 
  disable.ts       |     100 |       90 |     100 |     100 | 30                
  enable.ts        |     100 |    91.66 |     100 |     100 | 38                
  install.ts       |   82.95 |    81.57 |      75 |   82.95 | ...96-199,202-211 
  link.ts          |     100 |      100 |     100 |     100 |                   
  list.ts          |     100 |     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     |   74.57 |       40 |   66.66 |   74.57 | 45-47,60-67,70-73 
  update.ts        |   96.71 |    97.05 |     100 |   96.71 | 114-118           
  utils.ts         |      75 |    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 |   78.39 |       87 |    78.9 |   78.39 |                   
  agent-prompt.ts  |   90.78 |    92.71 |      96 |   90.78 | ...1256,1693-1762 
  capture-local.ts |   72.16 |     90.9 |      75 |   72.16 | 101-105,152-174   
  ...k-coverage.ts |   48.38 |    14.28 |   66.66 |   48.38 | ...21-226,239-249 
  cleanup.ts       |   17.72 |      100 |       0 |   17.72 | ...27-132,134-135 
  ...ose-review.ts |   94.59 |    94.92 |      90 |   94.59 | ...19-822,850-866 
  fetch-pr.ts      |   25.44 |      100 |    12.5 |   25.44 | ...15-304,345-347 
  load-rules.ts    |   26.41 |      100 |   16.66 |   26.41 | ...41-153,155-156 
  parse-args.ts    |   99.25 |       96 |     100 |   99.25 | 341,413           
  plan-diff.ts     |    67.9 |      100 |   66.66 |    67.9 | 121-148           
  pr-context.ts    |   84.02 |    76.37 |   91.66 |   84.02 | ...22-903,932-934 
  presubmit.ts     |   74.32 |       82 |   85.71 |   74.32 | ...46-347,399-429 
  ...ve-anchors.ts |   77.02 |    88.46 |      75 |   77.02 | ...70-175,187-204 
  submit.ts        |   74.44 |    80.82 |      80 |   74.44 | ...48-584,586-587 
  test-efficacy.ts |   80.68 |    69.41 |    92.3 |   80.68 | ...93-594,602-622 
 ...nds/review/lib |   93.99 |    93.06 |   91.53 |   93.99 |                   
  agent-briefs.ts  |   98.26 |      100 |       0 |   98.26 | 439-440           
  anchors.ts       |     100 |    94.79 |     100 |     100 | ...33,169,178,225 
  coverage.ts      |   94.06 |    94.41 |      95 |   94.06 | ...56,272,347-364 
  diff-flags.ts    |     100 |        0 |     100 |     100 | 63                
  diff-plan.ts     |   98.73 |    92.93 |     100 |   98.73 | ...40,263,289-290 
  gh.ts            |   52.87 |      100 |      30 |   52.87 | ...81-182,190-197 
  git.ts           |   97.64 |    95.65 |     100 |   97.64 | 180-181           
  heavy.ts         |     100 |      100 |     100 |     100 |                   
  inline-counts.ts |     100 |      100 |     100 |     100 |                   
  local-diff.ts    |    84.4 |    88.46 |     100 |    84.4 | ...63-473,475-483 
  merge-base.ts    |     100 |      100 |     100 |     100 |                   
  path-rules.ts    |     100 |      100 |     100 |     100 |                   
  paths.ts         |   84.61 |       80 |   66.66 |   84.61 | 42-43,76-77       
  prompt-record.ts |   94.73 |    88.23 |     100 |   94.73 | ...28,151-152,156 
  report.ts        |   92.13 |    86.66 |     100 |   92.13 | 170-171,173-177   
  roster.ts        |     100 |    92.85 |     100 |     100 | 104,118,163       
  shell-quote.ts   |     100 |      100 |     100 |     100 |                   
  transcripts.ts   |   96.27 |    93.18 |     100 |   96.27 | ...83,269-270,294 
  workspaces.ts    |   97.76 |     91.3 |     100 |   97.76 | 186-187,212-213   
 ...mands/sessions |   91.56 |    86.95 |   83.33 |   91.56 |                   
  common.ts        |     100 |      100 |     100 |     100 |                   
  list.ts          |   90.96 |    86.66 |   81.81 |   90.96 | 208-219,221-222   
 src/config        |   94.47 |    88.52 |   95.48 |   94.47 |                   
  auth.ts          |   89.35 |    83.56 |     100 |   89.35 | ...97-298,314-315 
  ...eMcpImport.ts |   87.91 |    81.52 |     100 |   87.91 | ...63-371,453-454 
  config.ts        |   88.21 |    87.87 |   84.84 |   88.21 | ...2362,2364-2372 
  ...heme-names.ts |     100 |      100 |     100 |     100 |                   
  environment.ts   |   94.18 |     89.4 |   94.73 |   94.18 | ...22-626,642-643 
  ...le-watcher.ts |   90.86 |    83.65 |   95.83 |   90.86 | ...23-325,370,418 
  ...resh-state.ts |   90.57 |    97.29 |   93.75 |   90.57 | 137-142,146-152   
  ...ime-reload.ts |     100 |    69.69 |     100 |     100 | ...12-113,122-123 
  hot-reload.ts    |     100 |    89.74 |     100 |     100 | 47,160,220        
  keyBindings.ts   |   97.24 |       50 |     100 |   97.24 | 221-224           
  ...ngsAdapter.ts |     100 |    94.11 |     100 |     100 | 64                
  ...ig-watcher.ts |   95.17 |    83.05 |     100 |   95.17 | ...78,200,292-293 
  ...er-secrets.ts |   98.97 |    96.87 |     100 |   98.97 | 85                
  mcpApprovals.ts  |   96.55 |    95.65 |     100 |   96.55 | 223-224,229-231   
  mcpJson.ts       |     100 |      100 |     100 |     100 |                   
  mcpServers.ts    |   92.85 |     87.5 |     100 |   92.85 | 46-47             
  ...idersScope.ts |      95 |    94.73 |     100 |      95 | 11-12             
  ...abledTools.ts |     100 |      100 |     100 |     100 |                   
  ...comparison.ts |     100 |      100 |     100 |     100 |                   
  ...n-settings.ts |   99.15 |    93.75 |     100 |   99.15 | 63                
  sandboxConfig.ts |   61.64 |    71.87 |   66.66 |   61.64 | ...54-68,73,77-89 
  ...ings-cache.ts |   96.52 |    93.93 |     100 |   96.52 | 90-91,201-202     
  settings.ts      |    90.6 |    91.84 |   89.65 |    90.6 | ...61,963,965-966 
  ...ingsSchema.ts |     100 |      100 |     100 |     100 |                   
  ...ngsWatcher.ts |   95.54 |    88.34 |     100 |   95.54 | ...28,277-278,293 
  ...d-env-keys.ts |     100 |      100 |     100 |     100 |                   
  ...paths-lite.ts |   89.47 |       88 |     100 |   89.47 | 43-44,53-54,56-57 
  ...tedFolders.ts |   94.46 |    95.72 |     100 |   94.46 | ...53-354,390-401 
 ...nfig/migration |   95.23 |    77.77 |   83.33 |   95.23 |                   
  index.ts         |   95.65 |     87.5 |     100 |   95.65 | 117-118           
  scheduler.ts     |   96.55 |    77.77 |     100 |   96.55 | 19-20             
  types.ts         |       0 |        0 |       0 |       0 | 1                 
 ...ation/versions |   94.91 |      100 |     100 |   94.91 |                   
  ...-v2-shared.ts |     100 |      100 |     100 |     100 |                   
  v1-to-v2.ts      |   81.75 |      100 |     100 |   81.75 | ...28-229,231-247 
  v2-to-v3.ts      |     100 |      100 |     100 |     100 |                   
  v3-to-v4.ts      |     100 |      100 |     100 |     100 |                   
  v5-to-v4.ts      |      96 |      100 |     100 |      96 | 94-95,99          
 src/core          |     100 |      100 |     100 |     100 |                   
  auth.ts          |     100 |      100 |     100 |     100 |                   
  initializer.ts   |     100 |      100 |     100 |     100 |                   
  theme.ts         |     100 |      100 |     100 |     100 |                   
 src/dualOutput    |   71.61 |    70.31 |   66.66 |   71.61 |                   
  ...tputBridge.ts |   71.76 |    70.96 |   68.42 |   71.76 | ...05-406,414-417 
  ...utContext.tsx |     100 |      100 |     100 |     100 |                   
  index.ts         |       0 |        0 |       0 |       0 | 1-8               
 src/export        |       0 |        0 |       0 |       0 |                   
  index.ts         |       0 |        0 |       0 |       0 | 1-7               
 src/generated     |     100 |      100 |     100 |     100 |                   
  git-commit.ts    |     100 |      100 |     100 |     100 |                   
 src/i18n          |   85.83 |    81.92 |   89.65 |   85.83 |                   
  index.ts         |   73.45 |    77.77 |      90 |   73.45 | ...70-271,294-299 
  languages.ts     |   93.07 |     92.3 |   85.71 |   93.07 | ...35,164-169,184 
  ...nslateKeys.ts |     100 |      100 |     100 |     100 |                   
  ...lationDict.ts |   93.33 |    66.66 |     100 |   93.33 | 15                
 src/i18n/locales  |     100 |      100 |     100 |     100 |                   
  ca.js            |     100 |      100 |     100 |     100 |                   
  de.js            |     100 |      100 |     100 |     100 |                   
  en.js            |     100 |      100 |     100 |     100 |                   
  fr.js            |     100 |      100 |     100 |     100 |                   
  ja.js            |     100 |      100 |     100 |     100 |                   
  pt.js            |     100 |      100 |     100 |     100 |                   
  ru.js            |     100 |      100 |     100 |     100 |                   
  zh-TW.js         |     100 |      100 |     100 |     100 |                   
  zh.js            |     100 |      100 |     100 |     100 |                   
 ...nonInteractive |    79.6 |    76.08 |   81.35 |    79.6 |                   
  session.ts       |    83.7 |       75 |   93.61 |    83.7 | ...-994,1003-1013 
  types.ts         |    42.5 |      100 |   33.33 |    42.5 | ...24-625,628-629 
 ...active/control |   76.11 |    89.09 |      80 |   76.11 |                   
  ...rolContext.ts |    6.45 |        0 |       0 |    6.45 | 56-95             
  ...Dispatcher.ts |   91.79 |    92.45 |   88.88 |   91.79 | ...49-367,387,390 
  ...rolService.ts |     7.4 |        0 |       0 |     7.4 | 46-185            
 ...ol/controllers |   41.09 |       60 |   47.22 |   41.09 |                   
  ...Controller.ts |   39.49 |      100 |      80 |   39.49 | 88-92,127-210     
  ...Controller.ts |       0 |        0 |       0 |       0 | 1-56              
  ...Controller.ts |    50.6 |    57.14 |   54.54 |    50.6 | ...73-678,680-685 
  ...Controller.ts |   14.06 |      100 |       0 |   14.06 | ...82-117,130-133 
  ...Controller.ts |    37.8 |       60 |   46.66 |    37.8 | ...40-652,661-690 
 .../control/types |       0 |        0 |       0 |       0 |                   
  serviceAPIs.ts   |       0 |        0 |       0 |       0 | 1                 
 ...Interactive/io |   97.52 |    93.98 |   95.23 |   97.52 |                   
  ...putAdapter.ts |   97.19 |     93.1 |   98.07 |   97.19 | ...1317,1420-1421 
  ...putAdapter.ts |      96 |    91.66 |   85.71 |      96 | 51-52             
  ...nputReader.ts |     100 |    94.73 |     100 |     100 | 67                
  ...putAdapter.ts |   98.38 |      100 |   90.47 |   98.38 | 84-85,125-126     
  index.ts         |     100 |      100 |     100 |     100 |                   
 src/patches       |       0 |        0 |       0 |       0 |                   
  is-in-ci.ts      |       0 |        0 |       0 |       0 | 1-17              
 src/remoteInput   |   87.31 |    75.32 |   88.23 |   87.31 |                   
  ...utContext.tsx |     100 |      100 |     100 |     100 |                   
  ...putWatcher.ts |   88.01 |       76 |   93.33 |   88.01 | ...49-350,361-364 
  index.ts         |       0 |        0 |       0 |       0 | 1-8               
 src/serve         |   87.42 |    84.03 |   90.16 |   87.42 |                   
  ...tp-enabled.ts |     100 |      100 |     100 |     100 |                   
  ...ion-bridge.ts |     100 |      100 |     100 |     100 |                   
  auth.ts          |    93.4 |    92.95 |     100 |    93.4 | ...16-317,320-322 
  ...em-adapter.ts |     100 |      100 |     100 |     100 |                   
  capabilities.ts  |     100 |    97.61 |     100 |     100 | 578               
  ...cp-command.ts |     100 |      100 |     100 |     100 |                   
  ...-selection.ts |     100 |      100 |     100 |     100 |                   
  ...ebhook-ipc.ts |    98.5 |    86.66 |     100 |    98.5 | 47                
  ...iagnostics.ts |     100 |      100 |     100 |     100 |                   
  ...worker-env.ts |     100 |      100 |     100 |     100 |                   
  ...rker-group.ts |   90.97 |    85.34 |     100 |   90.97 | ...80-684,690-694 
  ...er-manager.ts |   95.12 |    88.82 |   94.28 |   95.12 | ...68,492,503-505 
  ...tartup-ipc.ts |   97.72 |    96.66 |     100 |   97.72 | 82-83             
  ...supervisor.ts |   96.57 |     86.9 |   96.49 |   96.57 | ...1026,1134-1138 
  ...e-grouping.ts |     100 |    94.11 |     100 |     100 | 69,132            
  ...ub-session.ts |   92.04 |    77.77 |     100 |   92.04 | ...36-445,470,508 
  daemon-logger.ts |    82.2 |    77.26 |   91.76 |    82.2 | ...1720,1747-1753 
  ...trics-ring.ts |     100 |      100 |     100 |     100 |                   
  ...s-provider.ts |   68.04 |    52.77 |     100 |   68.04 | ...44-249,282-290 
  daemon-status.ts |   98.36 |       90 |     100 |   98.36 | ...1033,1035-1036 
  debug-mode.ts    |     100 |      100 |     100 |     100 |                   
  demo.ts          |     100 |      100 |     100 |     100 |                   
  env-snapshot.ts  |    91.3 |       80 |     100 |    91.3 | ...24-127,205-212 
  ...-scheduler.ts |   87.34 |    83.87 |     100 |   87.34 | 33-36,48-50,79-81 
  ...-path-argv.ts |     100 |      100 |     100 |     100 |                   
  ...h-settings.ts |   94.39 |    88.75 |     100 |   94.39 | ...22,700,716,726 
  fast-path.ts     |   91.28 |    81.98 |   95.45 |   91.28 | ...64-473,539-540 
  health-query.ts  |     100 |      100 |     100 |     100 |                   
  index.ts         |       0 |        0 |       0 |       0 | 1-143             
  ...e-observer.ts |   89.89 |    83.24 |      96 |   89.89 | ...11-512,541-543 
  ...back-binds.ts |     100 |    88.88 |     100 |     100 | 32                
  ...iders-edit.ts |     100 |    82.14 |     100 |     100 | 58-60,65,81       
  ...sion-audit.ts |     100 |      100 |   93.33 |     100 |                   
  rate-limit.ts    |   92.77 |    88.42 |     100 |   92.77 | ...93-295,307-309 
  ...qwen-serve.ts |    84.9 |    80.97 |   72.68 |    84.9 | ...5503,5508-5509 
  ...tup-errors.ts |     100 |      100 |     100 |     100 |                   
  ...-keepalive.ts |   96.03 |    89.24 |     100 |   96.03 | ...36,498-500,540 
  ...-lifecycle.ts |     100 |      100 |     100 |     100 |                   
  server.ts        |   95.47 |    92.93 |   78.18 |   95.47 | ...1733,1753-1756 
  ...on-helpers.ts |     100 |      100 |     100 |     100 |                   
  ...t-event-id.ts |     100 |    91.66 |     100 |     100 | 12                
  ...-admission.ts |   98.71 |    89.65 |     100 |   98.71 | 68                
  types.ts         |     100 |      100 |     100 |     100 |                   
  ...erver-name.ts |     100 |      100 |     100 |     100 |                   
  ...ion-limits.ts |     100 |      100 |     100 |     100 |                   
  ...l-resolver.ts |   90.32 |    66.66 |     100 |   90.32 | 16,45-46          
  ...ell-static.ts |   91.07 |    86.66 |     100 |   91.07 | ...79-182,216-219 
  ...ace-agents.ts |   57.15 |    67.61 |   86.66 |   57.15 | ...1821,1831-1841 
  ...-git-state.ts |     100 |       90 |    87.5 |     100 | 61,121            
  ...ace-inputs.ts |     100 |      100 |     100 |     100 |                   
  ...-constants.ts |     100 |      100 |     100 |     100 |                   
  ...-summaries.ts |   86.66 |       50 |     100 |   86.66 | 11,19             
  ...ace-memory.ts |   82.19 |    75.28 |     100 |   82.19 | ...82-489,549-556 
  ...ers-status.ts |   98.52 |       79 |     100 |   98.52 | 94,122,162,165    
  ...tion-store.ts |    85.6 |    85.98 |   90.47 |    85.6 | ...82-291,302-305 
  ...e-registry.ts |   91.26 |     90.8 |     100 |   91.26 | ...91-292,298-299 
  ...ber-errors.ts |     100 |    95.32 |     100 |     100 | 53,93-94,172,192  
  ...e-remember.ts |   97.94 |    94.33 |     100 |   97.94 | ...00,304-309,350 
  ...te-runtime.ts |   93.14 |    87.93 |     100 |   93.14 | ...-88,92,145-150 
  ...management.ts |   71.84 |    71.67 |      96 |   71.84 | ...65-866,873-877 
  ...ls-mapping.ts |     100 |      100 |     100 |     100 |                   
  ...lls-status.ts |     100 |    94.73 |     100 |     100 | 109               
 ...serve/acp-http |    75.6 |    78.22 |   93.75 |    75.6 |                   
  ...r-registry.ts |     100 |    95.45 |     100 |     100 | 191               
  client-mcp-ws.ts |   54.85 |    58.62 |   72.72 |   54.85 | ...99-300,304-305 
  ...n-registry.ts |   98.19 |    88.55 |     100 |   98.19 | 1015,1037-1048    
  dispatch.ts      |   68.88 |    74.47 |     100 |   68.88 | ...4442,4490-4496 
  index.ts         |   81.96 |    78.69 |   89.58 |   81.96 | ...2180,2211-2213 
  json-rpc.ts      |     100 |    96.96 |     100 |     100 | 92                
  safe-ws-send.ts  |   52.94 |    71.42 |     100 |   52.94 | 33-42,47-55       
  sse-stream.ts    |   93.96 |    88.88 |   84.61 |   93.96 | ...57-159,161-163 
  ...ort-stream.ts |       0 |        0 |       0 |       0 | 1                 
  ws-stream.ts     |   91.86 |       80 |     100 |   91.86 | 45,50,96,100-103  
 src/serve/auth    |   86.86 |     79.7 |   93.87 |   86.86 |                   
  device-flow.ts   |   96.35 |    80.57 |   97.61 |   96.35 | ...1358,1453,1519 
  ...w-provider.ts |   44.24 |    74.07 |   71.42 |   44.24 | ...23-284,297,301 
 ...rve/cdp-tunnel |   85.73 |    73.17 |    97.5 |   85.73 |                   
  ...r-emulator.ts |   88.57 |    63.63 |     100 |   88.57 | ...72-175,194-195 
  ...verse-link.ts |      88 |    76.19 |     100 |      88 | ...28-329,420-423 
  ...l-registry.ts |     100 |      100 |     100 |     100 |                   
  cdp-ws.ts        |   76.28 |    61.29 |    87.5 |   76.28 | ...13-217,223-228 
 ...nel/acceptance |       0 |        0 |       0 |       0 |                   
  ...mcp-smoke.mjs |       0 |        0 |       0 |       0 | 1-119             
  ...cceptance.mjs |       0 |        0 |       0 |       0 | 1-473             
  real-tab.mjs     |       0 |        0 |       0 |       0 | 1-218             
 src/serve/fs      |   85.68 |    80.06 |     100 |   85.68 |                   
  audit.ts         |     100 |    96.15 |     100 |     100 | 204               
  errors.ts        |     100 |      100 |     100 |     100 |                   
  index.ts         |     100 |      100 |     100 |     100 |                   
  ...x-registry.ts |     100 |      100 |     100 |     100 |                   
  paths.ts         |   77.64 |     73.6 |     100 |   77.64 | ...65,594-598,611 
  policy.ts        |   90.32 |    89.18 |     100 |   90.32 | 142-150           
  ...ile-system.ts |   85.19 |     78.6 |     100 |   85.19 | ...2094,2104-2105 
 src/serve/routes  |   85.78 |    79.81 |   95.77 |   85.78 |                   
  a2ui-action.ts   |   99.49 |    94.52 |    87.5 |   99.49 | 250               
  capabilities.ts  |     100 |      100 |     100 |     100 |                   
  ...l-webhooks.ts |   93.56 |    84.09 |     100 |   93.56 | ...42,292,332,334 
  daemon-status.ts |   85.45 |    83.33 |     100 |   85.45 | 98-105            
  goals.ts         |    98.8 |    88.46 |     100 |    98.8 | 134               
  health-demo.ts   |   94.17 |    83.33 |     100 |   94.17 | 62-66,143         
  permission.ts    |     100 |     92.3 |     100 |     100 | 50,98             
  ...uled-tasks.ts |    84.2 |    83.18 |     100 |    84.2 | ...55-863,980-981 
  ...on-runtime.ts |     100 |    86.66 |     100 |     100 | 43,79             
  session.ts       |   88.36 |    83.92 |      95 |   88.36 | ...3328,3330-3331 
  sse-events.ts    |   86.25 |     88.6 |   77.77 |   86.25 | ...81,387,404-407 
  usage-stats.ts   |     100 |    95.65 |     100 |     100 | 116               
  ...space-auth.ts |    83.7 |       75 |     100 |    83.7 | ...23,328,340-344 
  ...el-control.ts |   86.26 |    78.94 |     100 |   86.26 | ...17-318,339-347 
  ...d-contacts.ts |     100 |      100 |     100 |     100 |                   
  ...controller.ts |   81.71 |    77.09 |   89.65 |   81.71 | ...73,975,981,984 
  ...extensions.ts |   87.44 |    72.76 |   95.74 |   87.44 | ...1788,1830-1831 
  ...-file-read.ts |   92.32 |       80 |     100 |   92.32 | ...94-595,598-599 
  ...file-write.ts |   84.44 |    64.13 |     100 |   84.44 | ...73-275,355-357 
  ...e-git-diff.ts |   94.11 |    91.89 |     100 |   94.11 | ...54-155,201-206 
  workspace-git.ts |     100 |      100 |     100 |     100 |                   
  ...-lifecycle.ts |   96.85 |       75 |     100 |   96.85 | 130-131,161-162   
  ...management.ts |   86.98 |    84.75 |     100 |   86.98 | ...1001,1021-1026 
  ...cp-control.ts |   70.14 |    63.21 |     100 |   70.14 | ...14-520,529-530 
  ...ace-models.ts |   95.87 |    92.42 |     100 |   95.87 | 38-39,136-141     
  ...ermissions.ts |   74.66 |    69.23 |     100 |   74.66 | ...25-233,254-271 
  ...e-settings.ts |   72.81 |     69.9 |     100 |   72.81 | ...85-589,594-604 
  ...tup-github.ts |   77.58 |    70.27 |   84.21 |   77.58 | ...88,310,354-355 
  ...ace-skills.ts |   69.87 |    78.12 |     100 |   69.87 | ...59-284,290-324 
  ...ace-status.ts |   75.33 |    61.97 |     100 |   75.33 | ...34-335,359-360 
  ...pace-tools.ts |   74.82 |    69.23 |     100 |   74.82 | ...41-146,175-176 
  ...pace-trust.ts |   76.08 |       50 |   66.66 |   76.08 | ...01-206,214-215 
  ...pace-voice.ts |   91.45 |    82.35 |     100 |   91.45 | ...21-624,627-629 
 src/serve/server  |   90.85 |    89.64 |   95.04 |   90.85 |                   
  access-log.ts    |   98.68 |     97.1 |     100 |   98.68 | 115,186           
  ...er-helpers.ts |   63.82 |    77.96 |   81.81 |   63.82 | ...16,330,332-347 
  ...w-registry.ts |    98.8 |    86.95 |     100 |    98.8 | 107               
  ...r-handlers.ts |   97.14 |    71.42 |     100 |   97.14 | 16                
  ...r-response.ts |   85.71 |    76.04 |     100 |   85.71 | ...53,670,733-742 
  fs-factory.ts    |     100 |    92.59 |     100 |     100 | 33,41,100,156     
  ...t-deadline.ts |     100 |      100 |     100 |     100 |                   
  ...iter-setup.ts |      65 |    73.33 |   33.33 |      65 | 30-35,38-43,47-48 
  ...st-helpers.ts |   95.09 |    95.09 |     100 |   95.09 | ...59-161,416-421 
  self-origin.ts   |   76.19 |       80 |     100 |   76.19 | 45-54             
  ...e-features.ts |   93.96 |       92 |     100 |   93.96 | 149-155           
  ...on-archive.ts |   89.61 |    90.38 |   88.23 |   89.61 | ...36-441,513-523 
  ...ion-export.ts |     100 |    94.44 |     100 |     100 | 64                
  session-list.ts  |   95.01 |    92.08 |     100 |   95.01 | ...13-628,630-636 
  telemetry.ts     |    98.7 |     97.4 |     100 |    98.7 | ...14-616,757-759 
 src/serve/voice   |   85.15 |     93.1 |   90.47 |   85.15 |                   
  ...ice-config.ts |   96.77 |       30 |     100 |   96.77 | 85-86             
  voice-ws.ts      |   77.97 |    96.39 |   83.33 |   77.97 | ...55,470,508-510 
  ...oordinator.ts |     100 |    98.11 |     100 |     100 | 171               
 ...kspace-service |   88.48 |    81.73 |   89.47 |   88.48 |                   
  index.ts         |   87.93 |    81.16 |   87.87 |   87.93 | ...1126-1130,1133 
  types.ts         |     100 |      100 |     100 |     100 |                   
 src/services      |   92.18 |    88.36 |   97.65 |   92.18 |                   
  ...mandLoader.ts |     100 |    88.88 |     100 |     100 | 104-117           
  ...killLoader.ts |   97.14 |    87.87 |     100 |   97.14 | 140,151-152       
  ...andService.ts |   98.73 |      100 |     100 |   98.73 | 107               
  ...mandLoader.ts |   86.83 |    83.87 |     100 |   86.83 | ...30-335,340-345 
  ...omptLoader.ts |   77.17 |    83.82 |   83.33 |   77.17 | ...43,168,210-211 
  ...mandLoader.ts |   97.36 |    92.68 |     100 |   97.36 | 153,160-161       
  ...nd-factory.ts |   91.42 |    91.66 |     100 |   91.42 | 128,137-144       
  ...ation-tool.ts |     100 |    95.45 |     100 |     100 | 125               
  ...ndMetadata.ts |   98.23 |    96.72 |     100 |   98.23 | 83,87             
  commandUtils.ts  |      96 |     90.9 |     100 |      96 | 48                
  ...and-parser.ts |   90.69 |    85.71 |     100 |   90.69 | 63-66             
  ...ionService.ts |     100 |      100 |     100 |     100 |                   
  prompt-stash.ts  |   96.66 |    93.75 |     100 |   96.66 | 34-35             
  ...low-loader.ts |     100 |    96.15 |     100 |     100 | 88                
  setup-github.ts  |    90.5 |    81.81 |     100 |    90.5 | ...35-436,443-444 
  ...-args-file.ts |   93.54 |    90.47 |    87.5 |   93.54 | 201-203,217-223   
  types.ts         |     100 |      100 |     100 |     100 |                   
  ...e-keyterms.ts |   98.64 |    95.71 |     100 |   98.64 | 116,142-143       
  voice-model.ts   |     100 |      100 |     100 |     100 |                   
  voice-service.ts |   88.14 |    87.69 |     100 |   88.14 | ...80,287,352-357 
  ...e-settings.ts |     100 |    95.23 |     100 |     100 | 19                
  ...ranscriber.ts |   90.46 |    82.11 |      96 |   90.46 | ...66-668,671-673 
 ...ght/generators |   88.86 |    85.78 |   96.29 |   88.86 |                   
  DataProcessor.ts |   88.23 |    85.71 |      95 |   88.23 | ...1348,1352-1359 
  ...tGenerator.ts |   98.21 |    85.71 |     100 |   98.21 | 46                
  ...teRenderer.ts |     100 |      100 |     100 |     100 |                   
 .../insight/types |       0 |       50 |      50 |       0 |                   
  ...sightTypes.ts |       0 |        0 |       0 |       0 |                   
  ...sightTypes.ts |       0 |        0 |       0 |       0 | 1                 
 ...mpt-processors |   97.27 |    94.04 |     100 |   97.27 |                   
  ...tProcessor.ts |     100 |      100 |     100 |     100 |                   
  ...eProcessor.ts |   94.52 |    84.21 |     100 |   94.52 | 46-47,93-94       
  ...tionParser.ts |     100 |      100 |     100 |     100 |                   
  ...lProcessor.ts |   97.41 |    95.65 |     100 |   97.41 | 95-98             
  types.ts         |     100 |      100 |     100 |     100 |                   
 src/services/tips |   97.27 |    84.61 |     100 |   97.27 |                   
  index.ts         |     100 |      100 |     100 |     100 |                   
  tipHistory.ts    |   92.59 |       70 |     100 |   92.59 | ...24,146,153,162 
  tipRegistry.ts   |     100 |      100 |     100 |     100 |                   
  tipScheduler.ts  |     100 |    91.66 |     100 |     100 | 55                
 src/startup       |   88.86 |    83.33 |      90 |   88.86 |                   
  ...p-prefetch.ts |   98.04 |    94.11 |   85.71 |   98.04 | 50,201,217-218    
  ...reeStartup.ts |   80.53 |     74.6 |     100 |   80.53 | ...94,403,409-412 
 src/test-utils    |   94.04 |    83.33 |      80 |   94.04 |                   
  ...omMatchers.ts |   69.69 |       50 |      50 |   69.69 | 32-35,37-39,45-47 
  ...andContext.ts |     100 |      100 |     100 |     100 |                   
  render.tsx       |     100 |      100 |     100 |     100 |                   
 src/ui            |    70.8 |    72.48 |    67.5 |    70.8 |                   
  App.tsx          |   33.33 |       75 |   33.33 |   33.33 | 32-86             
  AppContainer.tsx |   71.88 |    69.07 |   66.66 |   71.88 | ...4002,4006-4010 
  ...tionNudge.tsx |    9.58 |      100 |       0 |    9.58 | 24-94             
  ...ackDialog.tsx |   29.23 |      100 |       0 |   29.23 | 25-75             
  ...tionNudge.tsx |    7.69 |      100 |       0 |    7.69 | 25-103            
  colors.ts        |      60 |      100 |   35.29 |      60 | ...52,54-55,60-61 
  constants.ts     |     100 |      100 |     100 |     100 |                   
  keyMatchers.ts   |   95.91 |    97.14 |     100 |   95.91 | 25-26             
  ...tic-colors.ts |     100 |      100 |     100 |     100 |                   
  ...ractiveUI.tsx |   63.63 |    48.57 |      80 |   63.63 | ...64-265,282-287 
  ...inePresets.ts |   96.27 |    83.87 |     100 |   96.27 | ...97,402,410-412 
  textConstants.ts |     100 |      100 |     100 |     100 |                   
  types.ts         |     100 |      100 |     100 |     100 |                   
 src/ui/auth       |   58.45 |    66.18 |   51.06 |   58.45 |                   
  AuthDialog.tsx   |   59.01 |     42.1 |   16.66 |   59.01 | ...25,332-354,358 
  ...nProgress.tsx |       0 |        0 |       0 |       0 | 1-64              
  ...etupSteps.tsx |   60.03 |    70.73 |   57.69 |   60.03 | ...87,791,800,803 
  useAuth.ts       |    94.6 |    73.52 |     100 |    94.6 | ...21-222,241-247 
  ...rSetupFlow.ts |   43.18 |    33.33 |      50 |   43.18 | ...78-399,416-459 
 src/ui/commands   |   80.74 |    83.27 |   88.83 |   80.74 |                   
  aboutCommand.ts  |     100 |      100 |     100 |     100 |                   
  agentsCommand.ts |   83.78 |      100 |      60 |   83.78 | 30-32,42-44       
  ...odeCommand.ts |    93.1 |    95.23 |     100 |    93.1 | 77-82             
  arenaCommand.ts  |   62.81 |    58.73 |   65.21 |   62.81 | ...90-595,680-688 
  authCommand.ts   |     100 |      100 |     100 |     100 |                   
  branchCommand.ts |     100 |      100 |     100 |     100 |                   
  btwCommand.ts    |   94.32 |    77.41 |     100 |   94.32 | 35-36,114-119     
  bugCommand.ts    |     100 |    77.77 |     100 |     100 | 27,61             
  cdCommand.ts     |    92.1 |     84.9 |     100 |    92.1 | ...4-69,94-99,178 
  clearCommand.ts  |    80.9 |    70.83 |     100 |    80.9 | ...24-125,133-142 
  ...essCommand.ts |   67.95 |    55.88 |      75 |   67.95 | ...86-187,201-204 
  ...astCommand.ts |   84.17 |       75 |     100 |   84.17 | ...,91-97,125-130 
  ...ig-command.ts |   93.12 |    88.42 |     100 |   93.12 | ...07-315,321-323 
  ...extCommand.ts |   67.81 |    69.69 |   84.61 |   67.81 | ...59-592,603-604 
  copyCommand.ts   |   98.49 |    95.78 |     100 |   98.49 | ...80,280,321,327 
  deleteCommand.ts |     100 |      100 |     100 |     100 |                   
  diffCommand.ts   |     100 |    87.87 |     100 |     100 | ...63,231-232,245 
  ...ryCommand.tsx |   81.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 |   52.31 |    56.25 |   69.23 |   52.31 | ...09,277-329,390 
  forgetCommand.ts |     100 |       90 |     100 |     100 | 59                
  forkCommand.ts   |     100 |    94.11 |     100 |     100 | 96,147            
  goalCommand.ts   |   91.13 |    83.72 |      90 |   91.13 | ...81-184,196-199 
  helpCommand.ts   |     100 |      100 |     100 |     100 |                   
  ...oryCommand.ts |     100 |      100 |     100 |     100 |                   
  hooksCommand.ts  |   81.13 |    65.71 |   85.71 |   81.13 | ...,86-93,131-132 
  ideCommand.ts    |   60.75 |    64.28 |   41.17 |   60.75 | ...05-306,310-324 
  ...figCommand.ts |   52.83 |    81.25 |      70 |   52.83 | ...74-319,321-330 
  initCommand.ts   |   91.86 |       80 |     100 |   91.86 | 48,83-88          
  ...ghtCommand.ts |   77.87 |    71.42 |     100 |   77.87 | ...44-245,250-272 
  ...ageCommand.ts |   93.45 |    89.06 |     100 |   93.45 | ...68-169,196-206 
  learn-command.ts |     100 |      100 |     100 |     100 |                   
  lspCommand.ts    |     100 |    86.95 |     100 |     100 | 31,101-102        
  mcpCommand.ts    |     100 |      100 |     100 |     100 |                   
  memoryCommand.ts |     100 |      100 |     100 |     100 |                   
  modelCommand.ts  |    81.1 |     89.5 |   88.23 |    81.1 | ...80-793,827-832 
  ...onsCommand.ts |     100 |      100 |     100 |     100 |                   
  planCommand.ts   |   78.82 |    76.92 |     100 |   78.82 | 30-35,51-56,68-73 
  quitCommand.ts   |     100 |      100 |     100 |     100 |                   
  recapCommand.ts  |   21.81 |      100 |      50 |   21.81 | 24-73             
  ...ns-command.ts |   98.83 |    81.81 |     100 |   98.83 | 100               
  ...berCommand.ts |     100 |     87.5 |     100 |     100 | 46                
  renameCommand.ts |   89.06 |    88.37 |     100 |   89.06 | ...72-176,202-209 
  ...oreCommand.ts |    90.9 |    86.04 |     100 |    90.9 | ...41-146,176-177 
  resumeCommand.ts |     100 |      100 |     100 |     100 |                   
  rewindCommand.ts |   81.25 |      100 |      50 |   81.25 | 20-22             
  ...ngsCommand.ts |     100 |      100 |     100 |     100 |                   
  ...hubCommand.ts |   89.47 |       75 |      80 |   89.47 | 54-59             
  skillsCommand.ts |   78.82 |    81.81 |     100 |   78.82 | 37-52,78,97       
  statsCommand.ts  |    90.6 |    77.95 |     100 |    90.6 | ...91-694,785-792 
  ...ineCommand.ts |     100 |      100 |     100 |     100 |                   
  ...aryCommand.ts |    6.43 |      100 |      50 |    6.43 | 31-330            
  tasksCommand.ts  |   77.22 |    72.13 |     100 |   77.22 | ...46-150,172-177 
  ...tupCommand.ts |     100 |      100 |     100 |     100 |                   
  themeCommand.ts  |     100 |      100 |     100 |     100 |                   
  toolsCommand.ts  |     100 |      100 |     100 |     100 |                   
  trustCommand.ts  |     100 |      100 |     100 |     100 |                   
  types.ts         |     100 |      100 |     100 |     100 |                   
  ...te-command.ts |     100 |    94.11 |     100 |     100 | 73,147            
  vimCommand.ts    |   54.54 |      100 |      50 |   54.54 | 19-29             
  voice-command.ts |   93.57 |       88 |     100 |   93.57 | 35,97-102         
  ...owsCommand.ts |   91.82 |    78.87 |   66.66 |   91.82 | ...59-160,169-174 
 src/ui/components |    69.5 |    78.18 |   76.11 |    69.5 |                   
  AboutBox.tsx     |     100 |      100 |     100 |     100 |                   
  ...ateScreen.tsx |   97.29 |     87.5 |   66.66 |   97.29 | 49                
  AnsiOutput.tsx   |   65.57 |      100 |      50 |   65.57 | 69-90             
  ApiKeyInput.tsx  |       0 |        0 |       0 |       0 | 1-97              
  AppHeader.tsx    |    88.7 |       75 |     100 |    88.7 | 36,38-43,45       
  ...odeDialog.tsx |   87.24 |    72.22 |   33.33 |   87.24 | ...85,233-238,245 
  AsciiArt.ts      |     100 |      100 |     100 |     100 |                   
  ...Indicator.tsx |   95.65 |    66.66 |     100 |   95.65 | 27,52             
  ...TextInput.tsx |   86.72 |    86.66 |     100 |   86.72 | ...00-302,355-359 
  Composer.tsx     |   94.49 |    66.66 |     100 |   94.49 | ...-72,84,139,153 
  ...entPrompt.tsx |     100 |      100 |     100 |     100 |                   
  ...ryDisplay.tsx |   75.89 |    62.06 |     100 |   75.89 | ...,88,93-108,113 
  ...geDisplay.tsx |   68.42 |    57.14 |     100 |   68.42 | 16-17,31-32,42-50 
  CronPill.tsx     |     100 |    93.75 |     100 |     100 | 18                
  ...ification.tsx |      84 |       60 |     100 |      84 | 23-24,40-42       
  ...gProfiler.tsx |       0 |        0 |       0 |       0 | 1-36              
  ...ogManager.tsx |       0 |        0 |       0 |       0 | 1-596             
  DiffDialog.tsx   |    53.5 |     37.5 |   69.23 |    53.5 | ...32-737,747-760 
  ...ngsDialog.tsx |       0 |        0 |       0 |       0 | 1-195             
  EffortDialog.tsx |   97.36 |      100 |     100 |   97.36 | 55-56             
  ExitWarning.tsx  |     100 |      100 |     100 |     100 |                   
  ...hProgress.tsx |    87.8 |    33.33 |     100 |    87.8 | 28-31,56          
  ...ustDialog.tsx |     100 |      100 |     100 |     100 |                   
  Footer.tsx       |   78.17 |     62.5 |     100 |   78.17 | ...22-227,245-249 
  ...ngSpinner.tsx |   68.42 |    85.71 |      50 |   68.42 | 35-52,73,80-81    
  GoalPill.tsx     |   83.33 |    76.92 |     100 |   83.33 | 24-30             
  Header.tsx       |   98.65 |    94.73 |     100 |   98.65 | 173,175           
  Help.tsx         |   98.33 |       90 |     100 |   98.33 | ...25,382,448-449 
  ...emDisplay.tsx |   78.22 |    64.28 |     100 |   78.22 | ...94,497,500-506 
  ...ngeDialog.tsx |     100 |      100 |     100 |     100 |                   
  InputPrompt.tsx  |   82.25 |    79.81 |      80 |   82.25 | ...2161,2187,2247 
  ...Shortcuts.tsx |   20.65 |      100 |       0 |   20.65 | ...7,50-52,68-126 
  ...Indicator.tsx |   98.18 |    97.82 |     100 |   98.18 | 161-162           
  ...firmation.tsx |   91.42 |      100 |      50 |   91.42 | 26-31             
  MainContent.tsx  |   95.54 |    93.84 |      50 |   95.54 | ...93,436-440,443 
  MemoryDialog.tsx |   86.59 |    80.15 |     100 |   86.59 | ...34-435,485,553 
  ...geDisplay.tsx |       0 |        0 |       0 |       0 | 1-41              
  ModelDialog.tsx  |   86.41 |       73 |     100 |   86.41 | ...74,876,881-897 
  ...tsDisplay.tsx |     100 |    97.22 |     100 |     100 | 270               
  ...fications.tsx |       0 |        0 |       0 |       0 | 1-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 |    83.78 |     100 |   93.58 | ...,70-71,195-197 
  ...ryDisplay.tsx |     100 |      100 |     100 |     100 |                   
  ...putPrompt.tsx |   72.56 |       80 |      40 |   72.56 | ...06-109,114-117 
  ...tedDialog.tsx |     100 |      100 |     100 |     100 |                   
  ...ngsDialog.tsx |   71.47 |    73.89 |   69.23 |   71.47 | ...1243,1249-1250 
  ...ionDialog.tsx |    92.3 |    96.15 |   33.33 |    92.3 | 60-63,68-75,164   
  ...putPrompt.tsx |    15.9 |      100 |       0 |    15.9 | 20-63             
  ...Indicator.tsx |   57.14 |      100 |       0 |   57.14 | 12-15             
  ...MoreLines.tsx |       0 |        0 |       0 |       0 | 1-40              
  ...iewDialog.tsx |   97.77 |    87.67 |     100 |   97.77 | ...97,305-307,324 
  ...tsDisplay.tsx |   95.86 |       75 |     100 |   95.86 | 67-71             
  ...ionPicker.tsx |       0 |        0 |       0 |       0 | 1-172             
  ...tivityTab.tsx |    3.94 |      100 |       0 |    3.94 | 27-275            
  StatsDialog.tsx  |    8.64 |      100 |       0 |    8.64 | ...76-111,130-322 
  StatsDisplay.tsx |     100 |      100 |     100 |     100 |                   
  ...ciencyTab.tsx |    78.9 |    56.52 |     100 |    78.9 | ...26,213,262-288 
  ...atmapView.tsx |    8.98 |      100 |       0 |    8.98 | 20-107            
  ...essionTab.tsx |    5.46 |      100 |       0 |    5.46 | 24-215            
  ...ineDialog.tsx |    93.5 |    85.18 |     100 |    93.5 | ...05,267,287-289 
  ...yTodoList.tsx |   96.33 |    88.23 |     100 |   96.33 | 137-140           
  ...nsDisplay.tsx |   92.95 |       85 |     100 |   92.95 | ...79,182,209-211 
  ThemeDialog.tsx  |   89.95 |    46.15 |      75 |   89.95 | ...71-173,243-245 
  Tips.tsx         |   93.54 |       75 |     100 |   93.54 | 39-40             
  TodoDisplay.tsx  |     100 |      100 |     100 |     100 |                   
  ...tsDisplay.tsx |     100 |     87.5 |     100 |     100 | 31-32             
  ...criptView.tsx |   98.27 |    84.21 |     100 |   98.27 | 45,53             
  TrustDialog.tsx  |     100 |    81.81 |     100 |     100 | 71-86             
  ...ification.tsx |       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 |   97.22 |    85.71 |     100 |   97.22 | 25                
  ...s-helpers.tsx |   66.25 |    81.25 |      50 |   66.25 | 25-32,46-53,62-72 
 ...nts/agent-view |   53.72 |    70.87 |   42.85 |   53.72 |                   
  ...atContent.tsx |    9.09 |      100 |       0 |    9.09 | 54-275,281-283    
  ...tChatView.tsx |   21.05 |      100 |       0 |   21.05 | 21-39             
  ...tComposer.tsx |   64.78 |    29.41 |   33.33 |   64.78 | ...51,269,277-279 
  AgentFooter.tsx  |   15.38 |      100 |       0 |   15.38 | 28-65             
  AgentHeader.tsx  |   15.38 |      100 |       0 |   15.38 | 27-64             
  AgentTabBar.tsx  |    87.9 |    63.88 |     100 |    87.9 | ...88,110-118,136 
  ...oryAdapter.ts |     100 |    91.83 |     100 |     100 | 103,109-110,138   
  index.ts         |       0 |        0 |       0 |       0 | 1-12              
 ...mponents/arena |   42.38 |    68.69 |   73.68 |   42.38 |                   
  ArenaCards.tsx   |   73.06 |    71.79 |   85.71 |   73.06 | ...83-185,321-326 
  ...ectDialog.tsx |   83.48 |    69.86 |   88.88 |   83.48 | ...88-392,409-410 
  ...artDialog.tsx |       0 |        0 |       0 |       0 | 1-164             
  ...tusDialog.tsx |       0 |        0 |       0 |       0 | 1-288             
  ...topDialog.tsx |       0 |        0 |       0 |       0 | 1-213             
 ...ackground-view |    82.2 |    81.36 |    90.9 |    82.2 |                   
  ...sksDialog.tsx |   77.53 |     76.9 |   80.76 |   77.53 | ...1781,1803-1809 
  ...TasksPill.tsx |   67.03 |     86.2 |     100 |   67.03 | ...02-122,130-138 
  ...gentPanel.tsx |   97.08 |    86.31 |     100 |   97.08 | 132,442-446,520   
  agent-forest.ts  |    99.2 |    93.93 |     100 |    99.2 | 256               
  ...Visibility.ts |     100 |      100 |     100 |     100 |                   
  ...e-overlay.tsx |    88.2 |    76.47 |     100 |    88.2 | ...36-138,140-142 
 ...nts/extensions |   84.32 |    76.78 |   83.33 |   84.32 |                   
  ...gerDialog.tsx |   82.15 |    76.08 |     100 |   82.15 | ...91-198,258,260 
  TabBar.tsx       |   97.29 |    88.88 |     100 |   97.29 | 33                
  index.ts         |       0 |        0 |       0 |       0 | 1-12              
  types.ts         |     100 |      100 |     100 |     100 |                   
 ...tensions/steps |   46.26 |       85 |   58.82 |   46.26 |                   
  ...ctionStep.tsx |   95.12 |    92.85 |   85.71 |   95.12 | 84-86,89          
  ...etailStep.tsx |       0 |        0 |       0 |       0 | 1-145             
  ...nListStep.tsx |   75.26 |    88.37 |   66.66 |   75.26 | ...53,174,203-209 
  ...electStep.tsx |       0 |        0 |       0 |       0 | 1-83              
  ...nfirmStep.tsx |   16.32 |      100 |       0 |   16.32 | 28-74             
  index.ts         |       0 |        0 |       0 |       0 | 1-11              
 ...xtensions/tabs |   71.86 |    68.14 |   70.83 |   71.86 |                   
  DiscoverTab.tsx  |   68.22 |    67.66 |   55.55 |   68.22 | ...93,656-660,664 
  InstalledTab.tsx |   75.45 |    67.28 |   83.33 |   75.45 | ...76,781-782,819 
  SourcesTab.tsx   |   71.52 |    70.47 |   77.77 |   71.52 | ...27,546,618-630 
 ...tensions/views |   50.97 |    52.38 |   20.83 |   50.97 |                   
  ...tionsView.tsx |   73.75 |    56.36 |   66.66 |   73.75 | ...30,353,369-374 
  ...tionsView.tsx |   43.45 |    44.82 |    6.66 |   43.45 | ...98-405,408-420 
  ...etailView.tsx |    9.56 |      100 |       0 |    9.56 | 40-67,70-158      
 ...mponents/hooks |   86.99 |    81.37 |   91.89 |   86.99 |                   
  ...rListBody.tsx |   95.29 |    85.18 |     100 |   95.29 | 95-98             
  ...etailStep.tsx |   75.32 |    71.42 |      60 |   75.32 | ...56-169,173-186 
  ...etailStep.tsx |     100 |      100 |     100 |     100 |                   
  ...rListStep.tsx |     100 |      100 |     100 |     100 |                   
  ...entHeader.tsx |     100 |    85.71 |     100 |     100 | 47                
  ...rListStep.tsx |     100 |      100 |     100 |     100 |                   
  ...etailStep.tsx |     100 |      100 |     100 |     100 |                   
  ...abledStep.tsx |     100 |      100 |     100 |     100 |                   
  ...sListStep.tsx |     100 |      100 |     100 |     100 |                   
  ...entDialog.tsx |   72.29 |    70.49 |     100 |   72.29 | ...51,563-568,572 
  constants.ts     |     100 |      100 |     100 |     100 |                   
  index.ts         |       0 |        0 |       0 |       0 | 1-13              
  ...erGrouping.ts |     100 |      100 |     100 |     100 |                   
  sourceLabels.ts  |     100 |      100 |     100 |     100 |                   
  types.ts         |     100 |      100 |     100 |     100 |                   
 ...components/mcp |   40.04 |    61.53 |   70.58 |   40.04 |                   
  ...ealthPill.tsx |   68.42 |    85.71 |     100 |   68.42 | 40-46             
  ...entDialog.tsx |   32.09 |    26.19 |      40 |   32.09 | ...12,914,927-933 
  ...valDialog.tsx |   15.06 |      100 |       0 |   15.06 | 40-109            
  constants.ts     |     100 |      100 |     100 |     100 |                   
  index.ts         |       0 |        0 |       0 |       0 | 1-35              
  types.ts         |     100 |      100 |     100 |     100 |                   
  utils.ts         |      97 |       95 |     100 |      97 | 24,113-114        
 ...ents/mcp/steps |    53.9 |    73.51 |   57.14 |    53.9 |                   
  ...icateStep.tsx |    5.65 |      100 |       0 |    5.65 | 40-66,69-308      
  ...electStep.tsx |   10.95 |      100 |       0 |   10.95 | 16-88             
  ...etailStep.tsx |     100 |      100 |     100 |     100 |                   
  ...eListStep.tsx |   99.09 |    97.36 |     100 |   99.09 | 71                
  ...etailStep.tsx |   62.83 |       60 |   33.33 |   62.83 | ...87-296,307-332 
  ...rListStep.tsx |   88.46 |    81.25 |     100 |   88.46 | ...63,169,174-179 
  ...etailStep.tsx |    10.3 |      100 |       0 |    10.3 | ...1,67-79,82-140 
  ToolListStep.tsx |   69.29 |       50 |     100 |   69.29 | ...23,126,135-144 
 ...nents/messages |    88.6 |    85.45 |   83.67 |    88.6 |                   
  ...ionDialog.tsx |   89.23 |    84.27 |   81.81 |   89.23 | ...75,593,611-613 
  BtwMessage.tsx   |     100 |      100 |     100 |     100 |                   
  ...upDisplay.tsx |     100 |    94.79 |     100 |     100 | 38,42,44,290,366  
  ...onMessage.tsx |   91.93 |    82.35 |     100 |   91.93 | 57-59,61,63       
  ...nMessages.tsx |   92.16 |     92.5 |   91.66 |   92.16 | ...82-286,304-310 
  DiffRenderer.tsx |   93.15 |    86.17 |     100 |   93.15 | ...07,235-236,302 
  ...tsDisplay.tsx |   97.08 |    77.77 |     100 |   97.08 | 95,97,106         
  ...usMessage.tsx |   76.31 |     42.1 |   66.66 |   76.31 | ...99,101,124,155 
  ...tsDisplay.tsx |    95.5 |    88.31 |     100 |    95.5 | ...39,141,174-179 
  ...ssMessage.tsx |    12.5 |      100 |       0 |    12.5 | 18-59             
  ...edMessage.tsx |   16.66 |      100 |       0 |   16.66 | 22-38             
  ...sMessages.tsx |   58.65 |       50 |    37.5 |   58.65 | ...20-125,146-158 
  ...ryMessage.tsx |   14.28 |      100 |       0 |   14.28 | 23-62             
  ...onMessage.tsx |   83.12 |    72.22 |    62.5 |   83.12 | ...26-528,535-537 
  ...upMessage.tsx |   98.32 |    95.16 |     100 |   98.32 | 183-186,413       
  ToolMessage.tsx  |   92.31 |    85.12 |   93.33 |   92.31 | ...40-945,972-974 
 ...ponents/shared |   85.58 |    81.93 |   93.93 |   85.58 |                   
  ...ctionList.tsx |     100 |      100 |      75 |     100 |                   
  ...tonSelect.tsx |     100 |      100 |     100 |     100 |                   
  EnumSelector.tsx |     100 |    96.42 |     100 |     100 | 58                
  ...rBoundary.tsx |     100 |      100 |     100 |     100 |                   
  MaxSizedBox.tsx  |   83.01 |    86.25 |   88.88 |   83.01 | ...17-518,623-624 
  MultiSelect.tsx  |   93.58 |       75 |     100 |   93.58 | ...43,199-201,211 
  ...tonSelect.tsx |     100 |      100 |     100 |     100 |                   
  ...ontroller.tsx |     100 |    83.33 |     100 |     100 | 73,93-95          
  ...eSelector.tsx |     100 |       60 |     100 |     100 | 40-45             
  ...lableList.tsx |   81.48 |    84.84 |     100 |   81.48 | 46-66,73-76       
  StaticRender.tsx |   72.72 |      100 |     100 |   72.72 | 31-33             
  TextInput.tsx    |    80.8 |    67.24 |      80 |    80.8 | ...36-240,252-258 
  ...ontroller.tsx |     100 |    81.81 |     100 |     100 | 59-62             
  ...apsedTime.tsx |     100 |      100 |     100 |     100 |                   
  ...Indicator.tsx |     100 |      100 |     100 |     100 |                   
  ...lizedList.tsx |   88.46 |    85.11 |   81.81 |   88.46 | ...51-779,792,883 
  text-buffer.ts   |   85.94 |    81.73 |   97.91 |   85.94 | ...2651,2749-2750 
  ...er-actions.ts |   73.93 |    67.22 |     100 |   73.93 | ...32-733,934-936 
 ...ponents/skills |       0 |        0 |       0 |       0 |                   
  ...gerDialog.tsx |       0 |        0 |       0 |       0 | 1-678             
 ...ents/subagents |       0 |        0 |       0 |       0 |                   
  constants.ts     |       0 |        0 |       0 |       0 | 1-71              
  index.ts         |       0 |        0 |       0 |       0 | 1-11              
  reducers.tsx     |       0 |        0 |       0 |       0 | 1-190             
  types.ts         |       0 |        0 |       0 |       0 | 1-125             
  utils.ts         |       0 |        0 |       0 |       0 | 1-102             
 ...bagents/create |       0 |        0 |       0 |       0 |                   
  ...ionWizard.tsx |       0 |        0 |       0 |       0 | 1-299             
  ...rSelector.tsx |       0 |        0 |       0 |       0 | 1-85              
  ...onSummary.tsx |       0 |        0 |       0 |       0 | 1-331             
  ...tionInput.tsx |       0 |        0 |       0 |       0 | 1-177             
  ...dSelector.tsx |       0 |        0 |       0 |       0 | 1-63              
  ...nSelector.tsx |       0 |        0 |       0 |       0 | 1-58              
  ...EntryStep.tsx |       0 |        0 |       0 |       0 | 1-78              
  ToolSelector.tsx |       0 |        0 |       0 |       0 | 1-253             
 ...bagents/manage |   14.04 |    53.19 |    37.5 |   14.04 |                   
  ...ctionStep.tsx |       0 |        0 |       0 |       0 | 1-103             
  ...eleteStep.tsx |       0 |        0 |       0 |       0 | 1-62              
  ...tEditStep.tsx |       0 |        0 |       0 |       0 | 1-124             
  ...ctionStep.tsx |   35.42 |    59.52 |     100 |   35.42 | ...20-432,437-439 
  ...iewerStep.tsx |       0 |        0 |       0 |       0 | 1-73              
  ...gerDialog.tsx |       0 |        0 |       0 |       0 | 1-341             
 ...mponents/views |   69.81 |    72.64 |   61.11 |   69.81 |                   
  ContextUsage.tsx |   70.88 |    63.88 |      80 |   70.88 | ...20-426,463-557 
  DoctorReport.tsx |     9.8 |      100 |       0 |     9.8 | 25-54,57-131      
  ...sionsList.tsx |   88.05 |       75 |     100 |   88.05 | 70-77             
  McpStatus.tsx    |   92.01 |     73.8 |     100 |   92.01 | ...36,175-177,262 
  SkillsList.tsx   |   20.51 |      100 |       0 |   20.51 | 17-20,27-57       
  ToolsList.tsx    |     100 |      100 |     100 |     100 |                   
 src/ui/contexts   |   82.17 |    79.43 |   84.37 |   82.17 |                   
  ...ewContext.tsx |   64.83 |    88.88 |      50 |   64.83 | ...16-219,225-235 
  AppContext.tsx   |      80 |       50 |     100 |      80 | 19-20             
  ...ewContext.tsx |   92.45 |    62.79 |      50 |   92.45 | ...69-270,272-276 
  ...igContext.tsx |   81.81 |       50 |     100 |   81.81 | 15-16             
  ...ssContext.tsx |   83.18 |    83.54 |     100 |   83.18 | ...1289,1297-1299 
  ...owContext.tsx |   91.07 |    81.81 |     100 |   91.07 | 47-48,60-62       
  ...deContext.tsx |     100 |      100 |      50 |     100 |                   
  ...onContext.tsx |   78.68 |    73.77 |   91.66 |   78.68 | ...86-389,398-401 
  ...gsContext.tsx |     100 |      100 |     100 |     100 |                   
  ...usContext.tsx |     100 |      100 |     100 |     100 |                   
  ...ngContext.tsx |   71.42 |       50 |     100 |   71.42 | 17-20             
  ...utContext.tsx |   85.71 |      100 |   66.66 |   85.71 | 13-14             
  ...edContext.tsx |     100 |      100 |      50 |     100 |                   
  ...nsContext.tsx |   88.88 |       50 |     100 |   88.88 | 150-151           
  ...teContext.tsx |   86.66 |       50 |     100 |   86.66 | 233-234           
  ...deContext.tsx |      80 |     87.5 |      75 |      80 | ...11-112,118-120 
 src/ui/daemon     |   88.35 |    73.51 |   95.45 |   88.35 |                   
  ...ui-adapter.ts |   88.35 |    73.51 |   95.45 |   88.35 | ...74,792-793,879 
 src/ui/editors    |       0 |        0 |       0 |       0 |                   
  ...ngsManager.ts |       0 |        0 |       0 |       0 | 1-67              
 src/ui/hooks      |   83.96 |    81.74 |   88.36 |   83.96 |                   
  ...dProcessor.ts |   81.73 |    81.69 |     100 |   81.73 | ...41-742,748-753 
  ...ention-ref.ts |   97.67 |       84 |     100 |   97.67 | 65                
  keyToAnsi.ts     |    3.92 |      100 |       0 |    3.92 | 19-77             
  ...esourceRef.ts |     100 |      100 |     100 |     100 |                   
  ...dProcessor.ts |   94.62 |    73.58 |     100 |   94.62 | ...86-287,292-293 
  ...dProcessor.ts |   85.14 |    66.27 |   81.81 |   85.14 | ...1400,1421-1425 
  ...rt-command.ts |     100 |      100 |     100 |     100 |                   
  ...sced-flush.ts |     100 |      100 |     100 |     100 |                   
  ...oice-input.ts |   92.36 |    81.95 |   66.66 |   92.36 | ...00,502-503,658 
  ...amingState.ts |   12.22 |      100 |       0 |   12.22 | 54-157            
  ...agerDialog.ts |   88.23 |      100 |     100 |   88.23 | 20,24             
  ...dScrollbar.ts |     100 |      100 |     100 |     100 |                   
  ...ationFrame.ts |      52 |    63.63 |     100 |      52 | ...59,67-70,76-87 
  ...odeCommand.ts |   58.82 |      100 |     100 |   58.82 | 28,33-48          
  ...enaCommand.ts |      85 |      100 |     100 |      85 | 23-24,29          
  ...aInProcess.ts |   27.92 |       80 |      25 |   27.92 | ...69-170,173-175 
  ...Completion.ts |   89.83 |    88.97 |     100 |   89.83 | ...49-456,496-505 
  ...ifications.ts |   87.82 |    96.77 |     100 |   87.82 | 138-152           
  ...tIndicator.ts |   88.28 |    81.08 |     100 |   88.28 | ...66,175,179-187 
  ...waySummary.ts |   96.22 |    69.69 |     100 |   96.22 | 125-127,169       
  ...ndTaskView.ts |   94.73 |    76.59 |     100 |   94.73 | 162-166,255,261   
  ...chedScroll.ts |     100 |      100 |     100 |     100 |                   
  ...ketedPaste.ts |    23.8 |      100 |       0 |    23.8 | 19-37             
  ...nchCommand.ts |    94.4 |       80 |     100 |    94.4 | ...36,210,273-276 
  ...ompletion.tsx |   96.75 |    81.81 |     100 |   96.75 | ...78-279,289-290 
  ...dMigration.ts |    92.1 |    88.88 |     100 |    92.1 | 42-44             
  useCompletion.ts |   94.11 |    89.65 |     100 |   94.11 | ...32-133,137-138 
  ...nitMessage.ts |     100 |      100 |     100 |     100 |                   
  ...extualTips.ts |   78.26 |       50 |     100 |   78.26 | ...2,75-79,96-104 
  ...eteCommand.ts |   78.53 |    88.57 |     100 |   78.53 | ...96-104,112-113 
  ...ialogClose.ts |   36.11 |       10 |     100 |   36.11 | ...89-195,202-207 
  useDiffData.ts   |       0 |        0 |       0 |       0 | 1-87              
  ...oublePress.ts |   53.12 |       75 |     100 |   53.12 | 33-35,41-54       
  ...orSettings.ts |     100 |      100 |     100 |     100 |                   
  ...Completion.ts |   99.12 |     97.7 |     100 |   99.12 | 182-183           
  ...ionUpdates.ts |   93.72 |    92.98 |     100 |   93.72 | ...87-291,314-320 
  ...agerDialog.ts |   88.88 |      100 |     100 |   88.88 | 21,25             
  ...backDialog.ts |    63.9 |    76.47 |   66.66 |    63.9 | ...66-168,190-191 
  useFocus.ts      |     100 |      100 |     100 |     100 |                   
  ...olderTrust.ts |     100 |      100 |     100 |     100 |                   
  ...ggestions.tsx |   96.47 |    78.94 |     100 |   96.47 | 121,155-156       
  ...miniStream.ts |   83.43 |    79.27 |    92.3 |   83.43 | ...3744,3829-3837 
  ...BranchName.ts |     100 |    91.66 |     100 |     100 | 30                
  ...oryManager.ts |   98.01 |    98.36 |     100 |   98.01 | 139-142           
  ...ooksDialog.ts |    87.5 |      100 |     100 |    87.5 | 19,23             
  ...stListener.ts |     100 |      100 |     100 |     100 |                   
  ...nAuthError.ts |   76.19 |       50 |     100 |   76.19 | 39-40,43-45       
  ...putHistory.ts |   92.59 |    85.71 |     100 |   92.59 | 63-64,72,94-96    
  ...storyStore.ts |     100 |    94.11 |     100 |     100 | 69                
  useKeypress.ts   |     100 |      100 |     100 |     100 |                   
  ...rdProtocol.ts |   36.36 |      100 |       0 |   36.36 | 24-31             
  ...unchEditor.ts |    9.67 |      100 |       0 |    9.67 | 11-32,39-90       
  ...gIndicator.ts |     100 |    96.66 |     100 |     100 | 109               
  useLogger.ts     |      16 |      100 |       0 |      16 | 15-45             
  useMCPHealth.ts  |   63.15 |       80 |      50 |   63.15 | 42-52,64-67       
  ...cpApproval.ts |   93.12 |    86.11 |     100 |   93.12 | ...24-127,139-140 
  useMcpDialog.ts  |    87.5 |      100 |     100 |    87.5 | 19,23             
  ...moryDialog.ts |    87.5 |      100 |     100 |    87.5 | 19,23             
  ...oryMonitor.ts |   83.14 |    78.57 |     100 |   83.14 | 54-63,74-79       
  ...ssageQueue.ts |     100 |    96.55 |     100 |     100 | 73                
  ...delCommand.ts |     100 |    92.85 |     100 |     100 | 48                
  ...ouseEvents.ts |   94.31 |    97.43 |   83.33 |   94.31 | 76-80             
  ...raseCycler.ts |   84.74 |    76.47 |     100 |   84.74 | ...49,52-53,69-71 
  ...rredEditor.ts |   58.33 |    22.22 |     100 |   58.33 | 23-27,29-33       
  ...derUpdates.ts |   86.95 |    77.41 |   91.66 |   86.95 | ...70,311-323,371 
  useQwenAuth.ts   |     100 |      100 |     100 |     100 |                   
  ...lScheduler.ts |   91.43 |    89.55 |     100 |   91.43 | ...45-348,463-473 
  ...oryCommand.ts |       0 |        0 |       0 |       0 | 1-7               
  ...tleRepaint.ts |     100 |      100 |     100 |     100 |                   
  ...umeCommand.ts |   94.33 |    72.72 |     100 |   94.33 | ...18,173,214-219 
  ...ompletion.tsx |   90.67 |    83.33 |     100 |   90.67 | ...02,105,138-141 
  ...ectionList.ts |   97.12 |    96.22 |     100 |   97.12 | ...92-193,247-250 
  ...sionPicker.ts |   92.87 |    90.35 |     100 |   92.87 | ...99-501,503-505 
  ...earchInput.ts |     100 |    97.29 |     100 |     100 | 82                
  ...ngsCommand.ts |   18.75 |      100 |       0 |   18.75 | 10-25             
  ...ellHistory.ts |   93.28 |    80.95 |     100 |   93.28 | ...96,153-154,164 
  ...oryCommand.ts |       0 |        0 |       0 |       0 | 1-73              
  ...agerDialog.ts |   88.23 |      100 |     100 |   88.23 | 20,24             
  ...Completion.ts |   82.85 |    85.13 |   94.73 |   82.85 | ...78-680,688-724 
  ...tateAndRef.ts |     100 |      100 |     100 |     100 |                   
  ...tatsDialog.ts |     100 |      100 |     100 |     100 |                   
  useStatusLine.ts |   97.13 |    93.33 |     100 |   97.13 | ...78-382,478-485 
  ...eateDialog.ts |   88.23 |      100 |     100 |   88.23 | 14,18             
  ...mInProcess.ts |   27.35 |       80 |      25 |   27.35 | ...82-183,186-188 
  ...tification.ts |     100 |     87.5 |     100 |     100 | 50                
  ...alProgress.ts |   53.06 |       50 |   66.66 |   53.06 | ...53,61-68,79-85 
  ...rminalSize.ts |     100 |      100 |     100 |     100 |                   
  ...emeCommand.ts |   67.01 |    29.41 |     100 |   67.01 | ...10-111,115-116 
  useTimer.ts      |   97.59 |    94.73 |     100 |   97.59 | 17-18             
  ...lMigration.ts |       0 |        0 |       0 |       0 |                   
  ...rustModify.ts |     100 |      100 |     100 |     100 |                   
  useTurnDiffs.ts  |   95.12 |    78.57 |     100 |   95.12 | 133-134,156-157   
  ...elcomeBack.ts |   87.36 |     90.9 |     100 |   87.36 | ...,94-96,114-115 
  ...reeSession.ts |   93.75 |    72.72 |     100 |   93.75 | 47-48,72          
  vim.ts           |      74 |    67.56 |   69.23 |      74 | ...1854-1861,1869 
 src/ui/layouts    |    90.8 |    87.87 |     100 |    90.8 |                   
  ...AppLayout.tsx |   90.47 |    85.71 |     100 |   90.47 | 59-61,103-108,144 
  ...AppLayout.tsx |    91.3 |    91.66 |     100 |    91.3 | 71-76             
 src/ui/models     |   80.24 |    79.16 |   71.42 |   80.24 |                   
  ...ableModels.ts |   80.24 |    79.16 |   71.42 |   80.24 | ...,61-71,123-125 
 ...noninteractive |     100 |      100 |    6.66 |     100 |                   
  ...eractiveUi.ts |     100 |      100 |    6.66 |     100 |                   
 src/ui/selection  |    85.2 |    75.78 |   96.42 |    85.2 |                   
  screen-buffer.ts |   94.73 |    64.28 |     100 |   94.73 | 51-52             
  ...ion-coords.ts |     100 |      100 |     100 |     100 |                   
  ...ction-span.ts |   92.72 |       90 |     100 |   92.72 | 37-38,67-68       
  ...tion-state.ts |   85.71 |      100 |   88.88 |   85.71 | 51-58             
  ...ction-text.ts |   88.46 |    91.66 |     100 |   88.46 | 31-33             
  ...selection.tsx |   80.31 |    59.64 |     100 |   80.31 | ...13-314,330-331 
 src/ui/state      |      95 |    81.81 |     100 |      95 |                   
  extensions.ts    |      95 |    81.81 |     100 |      95 | 69-70,89          
 src/ui/themes     |    98.5 |    73.17 |     100 |    98.5 |                   
  ansi-light.ts    |     100 |      100 |     100 |     100 |                   
  ansi.ts          |     100 |      100 |     100 |     100 |                   
  atom-one-dark.ts |     100 |      100 |     100 |     100 |                   
  ayu-light.ts     |     100 |      100 |     100 |     100 |                   
  ayu.ts           |     100 |      100 |     100 |     100 |                   
  color-utils.ts   |   99.23 |    97.05 |     100 |   99.23 | 277-278           
  default-light.ts |     100 |      100 |     100 |     100 |                   
  default.ts       |     100 |      100 |     100 |     100 |                   
  ...inal-theme.ts |   88.59 |    85.96 |     100 |   88.59 | ...57-261,266-270 
  dracula.ts       |     100 |      100 |     100 |     100 |                   
  github-dark.ts   |     100 |      100 |     100 |     100 |                   
  github-light.ts  |     100 |      100 |     100 |     100 |                   
  googlecode.ts    |     100 |      100 |     100 |     100 |                   
  no-color.ts      |     100 |      100 |     100 |     100 |                   
  qwen-dark.ts     |     100 |      100 |     100 |     100 |                   
  qwen-light.ts    |     100 |      100 |     100 |     100 |                   
  ...tic-tokens.ts |     100 |      100 |     100 |     100 |                   
  ...-of-purple.ts |     100 |      100 |     100 |     100 |                   
  theme-manager.ts |   88.68 |    84.52 |     100 |   88.68 | ...83-392,397-398 
  theme.ts         |     100 |    38.02 |     100 |     100 | ...34-449,457-461 
  xcode.ts         |     100 |      100 |     100 |     100 |                   
 src/ui/utils      |   85.32 |    84.65 |   94.01 |   85.32 |                   
  ...Colorizer.tsx |   80.31 |    85.41 |     100 |   80.31 | ...00-201,313-339 
  ...nRenderer.tsx |   68.83 |    70.14 |      50 |   68.83 | ...52-254,274-293 
  ...wnDisplay.tsx |   92.85 |    93.46 |     100 |   92.85 | ...,953,1000-1018 
  ...idDiagram.tsx |   87.79 |    95.34 |     100 |   87.79 | 156-179           
  ...eRenderer.tsx |   92.68 |    82.35 |   95.23 |   92.68 | ...34-737,790-795 
  ...odeDisplay.ts |   94.28 |    85.71 |     100 |   94.28 | 23,40             
  asciiCharts.ts   |   96.77 |    87.62 |     100 |   96.77 | 173-180,281       
  ...dWorkUtils.ts |     100 |      100 |     100 |     100 |                   
  ...boardUtils.ts |   52.52 |    73.25 |   91.66 |   52.52 | ...23,626-635,638 
  commandUtils.ts  |    96.1 |    88.77 |     100 |    96.1 | ...73,175-176,320 
  computeStats.ts  |     100 |      100 |     100 |     100 |                   
  customBanner.ts  |   90.68 |    91.22 |     100 |   90.68 | ...13,324-327,334 
  displayUtils.ts  |   90.38 |    73.91 |     100 |   90.38 | 23,25,29,31,33    
  formatters.ts    |    95.4 |    98.41 |     100 |    95.4 | 123-126           
  gradientUtils.ts |     100 |      100 |     100 |     100 |                   
  highlight.ts     |     100 |      100 |     100 |     100 |                   
  ...gap-notice.ts |     100 |      100 |     100 |     100 |                   
  ...oryMapping.ts |     100 |       95 |     100 |     100 | 44,103            
  historyUtils.ts  |    95.4 |    95.08 |     100 |    95.4 | 96-99             
  input-mouse.ts   |     100 |    85.71 |     100 |     100 | 48,93             
  isNarrowWidth.ts |     100 |      100 |     100 |     100 |                   
  ...olDetector.ts |    8.23 |      100 |       0 |    8.23 | ...31-132,135-136 
  latexRenderer.ts |   94.95 |     73.8 |     100 |   94.95 | ...76-178,184-187 
  layoutUtils.ts   |     100 |      100 |     100 |     100 |                   
  list-mouse.ts    |     100 |      100 |     100 |     100 |                   
  ...ightLoader.ts |     100 |       95 |     100 |     100 | 81                
  ...nUtilities.ts |   98.72 |    94.59 |     100 |   98.72 | 145-146           
  ...t-position.ts |     100 |     87.5 |     100 |     100 | 85                
  ...geRenderer.ts |   86.23 |    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.85 |    95.45 |     100 |   96.85 | 71-73,201-203     
  ...mConstants.ts |     100 |      100 |     100 |     100 |                   
  restoreGoal.ts   |     100 |      100 |     100 |     100 |                   
  ...storyUtils.ts |   71.02 |    78.86 |   93.75 |   71.02 | ...03-525,655-656 
  ...ickerUtils.ts |     100 |      100 |     100 |     100 |                   
  ...evel-label.ts |   77.77 |    66.66 |     100 |   77.77 | 18,22-24          
  ...are-cursor.ts |   89.47 |    85.71 |     100 |   89.47 | 39-44             
  ...ataService.ts |   93.17 |     79.1 |     100 |   93.17 | ...14,227,254-256 
  suggestions.ts   |     100 |      100 |     100 |     100 |                   
  ...izedOutput.ts |   94.94 |      100 |   88.88 |   94.94 | 112-117           
  ...wOptimizer.ts |     100 |    96.77 |     100 |     100 | 69                
  terminalSetup.ts |    4.37 |      100 |       0 |    4.37 | 44-393            
  textUtils.ts     |   94.73 |    91.52 |   94.44 |   94.73 | ...21-322,482-483 
  ...background.ts |     100 |      100 |     100 |     100 |                   
  todoSnapshot.ts  |   89.65 |       92 |     100 |   89.65 | ...83-184,217-218 
  ...isplay-map.ts |     100 |      100 |     100 |     100 |                   
  updateCheck.ts   |     100 |    81.81 |     100 |     100 | 34,81-93,184      
  ...ow-keyword.ts |     100 |      100 |     100 |     100 |                   
 ...i/utils/export |      75 |    59.89 |   94.59 |      75 |                   
  collect.ts       |   71.21 |    65.81 |      96 |   71.21 | ...88-631,653-654 
  index.ts         |     100 |      100 |     100 |     100 |                   
  normalize.ts     |   80.42 |    50.68 |     100 |   80.42 | ...59-364,376-378 
  types.ts         |       0 |        0 |       0 |       0 | 1                 
  utils.ts         |     100 |      100 |     100 |     100 |                   
 ...ort/formatters |   52.92 |    47.22 |   71.42 |   52.92 |                   
  html.ts          |   84.61 |       50 |     100 |   84.61 | ...53,57-58,62-63 
  json.ts          |     100 |      100 |     100 |     100 |                   
  jsonl.ts         |   82.45 |     37.5 |     100 |   82.45 | ...48,50-51,65-66 
  markdown.ts      |   36.32 |    47.05 |      50 |   36.32 | ...16-219,233-295 
 src/ui/voice      |   80.94 |    72.69 |   80.55 |   80.94 |                   
  ...d-recorder.ts |     6.2 |      100 |       0 |     6.2 | ...33-159,162-163 
  ...o-recorder.ts |   84.61 |    93.33 |   57.14 |   84.61 | ...16-117,131-136 
  ...me-session.ts |   89.72 |    65.33 |   93.75 |   89.72 | ...99,305,316-319 
  sox-recorder.ts  |    92.7 |    71.87 |     100 |    92.7 | ...34-135,153-154 
  ...ailability.ts |     100 |      100 |     100 |     100 |                   
  ...e-keyterms.ts |     100 |      100 |     100 |     100 |                   
  voice-model.ts   |     100 |      100 |     100 |     100 |                   
  ...e-recorder.ts |   88.29 |    67.74 |   81.81 |   88.29 | ...,98-99,112,115 
  voice-refine.ts  |     100 |    93.33 |     100 |     100 | 92                
  ...ream-retry.ts |   86.79 |    68.42 |     100 |   86.79 | 16-18,48-49,59-60 
  ...am-session.ts |   88.02 |    66.66 |   84.61 |   88.02 | ...26,343-345,363 
  ...ranscriber.ts |     100 |      100 |     100 |     100 |                   
 src/utils         |   77.92 |    88.51 |   90.28 |   77.92 |                   
  ...p-profiler.ts |   98.39 |    90.56 |     100 |   98.39 | 141,185,235       
  acpModelUtils.ts |    97.3 |    95.09 |     100 |    97.3 | ...04-205,209-210 
  apiPreconnect.ts |   96.72 |    97.05 |     100 |   96.72 | 165-168           
  ...ol-call-id.ts |   84.61 |       60 |     100 |   84.61 | 26-27,37-38       
  ...ng-failure.ts |     100 |       95 |     100 |     100 | 72                
  checks.ts        |   33.33 |      100 |       0 |   33.33 | 23-28             
  ...-api-error.ts |     100 |    96.42 |     100 |     100 | 14                
  cleanup.ts       |   82.53 |    93.33 |      80 |   82.53 | 74,105-115        
  commands.ts      |   96.96 |    97.95 |     100 |   96.96 | 123-125           
  commentJson.ts   |   90.51 |     92.1 |     100 |   90.51 | 67-76,116         
  ...Calculator.ts |     100 |      100 |     100 |     100 |                   
  cpuProfiler.ts   |   70.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        |   97.56 |    94.73 |     100 |   97.56 | 69-70,304-305     
  events.ts        |     100 |      100 |     100 |     100 |                   
  ...on-mention.ts |   88.48 |     82.6 |     100 |   88.48 | ...56-160,164-168 
  gitUtils.ts      |    92.7 |    84.09 |     100 |    92.7 | ...07-110,158-161 
  ...AutoUpdate.ts |   92.89 |    94.59 |   88.88 |   92.89 | 148-159           
  ...tyWarnings.ts |     100 |      100 |     100 |     100 |                   
  ...lationInfo.ts |   97.45 |       94 |     100 |   97.45 | ...17,334-335,380 
  languageUtils.ts |   98.88 |    97.01 |     100 |   98.88 | 184-185           
  math.ts          |       0 |        0 |       0 |       0 | 1-15              
  ...er-mention.ts |     100 |    66.66 |     100 |     100 | 14,30,44-46       
  ...iagnostics.ts |   94.57 |    83.01 |   88.88 |   94.57 | ...05,311,315-317 
  ...serMessage.ts |     100 |      100 |     100 |     100 |                   
  ...onfigUtils.ts |   94.25 |    91.17 |     100 |   94.25 | ...30,436,439-443 
  ...iveHelpers.ts |   95.13 |    91.79 |     100 |   95.13 | ...53-454,552,565 
  osc.ts           |    97.5 |      100 |   88.88 |    97.5 | 195-196           
  package.ts       |   88.88 |    85.71 |     100 |   88.88 | 31-32             
  processUtils.ts  |    92.3 |       80 |     100 |    92.3 | 45-46             
  readStdin.ts     |   93.67 |    94.11 |   85.71 |   93.67 | 79-83             
  relaunch.ts      |   95.83 |    88.88 |     100 |   95.83 | 101-103,129       
  resolvePath.ts   |     100 |      100 |     100 |     100 |                   
  runBudget.ts     |   99.35 |    96.77 |     100 |   99.35 | 119               
  sandbox-path.ts  |     100 |      100 |     100 |     100 |                   
  sandbox.ts       |   17.91 |    58.33 |   23.07 |   17.91 | ...0-778,785-1062 
  ...xImageName.ts |     100 |    77.77 |     100 |     100 | 10,18             
  sandboxMounts.ts |     100 |      100 |     100 |     100 |                   
  sessionPaths.ts  |   90.84 |    90.56 |     100 |   90.84 | ...81-182,185-186 
  settingsUtils.ts |   82.35 |    89.57 |      90 |   82.35 | ...25-743,750-758 
  spawnWrapper.ts  |     100 |      100 |     100 |     100 |                   
  ...ate-verify.ts |     100 |      100 |     100 |     100 |                   
  ...one-update.ts |   39.85 |    77.44 |   62.16 |   39.85 | ...1190,1193-1212 
  ...upProfiler.ts |   98.47 |    94.66 |     100 |   98.47 | 132-133,308       
  ...upWarnings.ts |     100 |      100 |     100 |     100 |                   
  stdioHelpers.ts  |     100 |     87.5 |     100 |     100 | 23                
  systemInfo.ts    |   95.12 |    90.27 |     100 |   95.12 | ...54-255,260-264 
  ...InfoFields.ts |    87.5 |    65.85 |     100 |    87.5 | ...24-125,146-147 
  ...alSequence.ts |     100 |    97.61 |     100 |     100 | 60                
  ...iffPreview.ts |   76.47 |       25 |     100 |   76.47 | 13,17,23-24       
  ...e-relaunch.ts |   88.46 |    81.25 |   66.66 |   88.46 | 55-60,71,84-85    
  ...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          |   86.87 |    85.96 |   88.14 |   86.87 |                   
 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.65 |    84.26 |   95.45 |   90.65 |                   
  ...transcript.ts |    92.6 |    88.88 |     100 |    92.6 | ...51,370-371,502 
  ...ent-resume.ts |   83.53 |    72.79 |   79.41 |   83.53 | ...1285-1289,1292 
  ...ound-tasks.ts |   96.69 |    91.31 |     100 |   96.69 | ...1515,1535-1538 
  index.ts         |     100 |      100 |     100 |     100 |                   
  ...ent-result.ts |    96.8 |    92.68 |     100 |    96.8 | 106,129-131       
  ...n-registry.ts |   95.65 |    89.28 |     100 |   95.65 | ...12-413,485-489 
  ...w-snapshot.ts |   91.86 |       75 |     100 |   91.86 | ...54,178,185-187 
 src/agents/arena  |   76.27 |    67.71 |   78.94 |   76.27 |                   
  ...gentClient.ts |   79.47 |    88.88 |   81.81 |   79.47 | ...68-183,189-204 
  ArenaManager.ts  |   75.05 |    64.51 |   78.57 |   75.05 | ...1876,1882-1883 
  arena-events.ts  |   64.44 |      100 |      50 |   64.44 | ...71-175,178-183 
  diff-summary.ts  |    87.5 |    72.34 |     100 |    87.5 | ...32-133,137-138 
  index.ts         |     100 |      100 |     100 |     100 |                   
  types.ts         |     100 |      100 |     100 |     100 |                   
 ...gents/backends |   78.02 |    85.19 |   76.28 |   78.02 |                   
  ITermBackend.ts  |   97.97 |    93.93 |     100 |   97.97 | ...78-180,255,307 
  ...essBackend.ts |    90.8 |    85.24 |   93.33 |    90.8 | ...64,666,668-669 
  TmuxBackend.ts   |    90.7 |    76.55 |   97.36 |    90.7 | ...87,697,743-747 
  detect.ts        |   31.25 |      100 |       0 |   31.25 | 34-88             
  index.ts         |     100 |      100 |     100 |     100 |                   
  iterm-it2.ts     |     100 |     92.1 |     100 |     100 | 37-38,106         
  tmux-commands.ts |    6.64 |      100 |    3.03 |    6.64 | ...93-363,386-503 
  types.ts         |     100 |      100 |     100 |     100 |                   
 ...agents/runtime |   88.43 |    85.84 |   83.54 |   88.43 |                   
  agent-context.ts |     100 |      100 |     100 |     100 |                   
  agent-core.ts    |   79.81 |    76.22 |      68 |   79.81 | ...2036,2063-2110 
  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        |   83.48 |     86.4 |   71.13 |   83.48 |                   
  approval-mode.ts |     100 |      100 |     100 |     100 |                   
  ...xtDefaults.ts |     100 |      100 |     100 |     100 |                   
  config.ts        |   82.51 |    85.97 |   68.58 |   82.51 | ...6911,6915-6916 
  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          |   91.47 |    87.01 |   93.14 |   91.47 |                   
  baseLlmClient.ts |   88.28 |    82.48 |   81.81 |   88.28 | ...47,660,666-668 
  client.ts        |    90.6 |    85.32 |    91.3 |    90.6 | ...3051,3147-3148 
  ...tGenerator.ts |   88.07 |       75 |     100 |   88.07 | ...89-393,401-405 
  ...lScheduler.ts |   90.39 |    85.31 |   95.78 |   90.39 | ...5073,5101-5112 
  geminiChat.ts    |   91.74 |     89.2 |   95.65 |   91.74 | ...4043,4091-4092 
  geminiRequest.ts |     100 |      100 |     100 |     100 |                   
  ...MediaLimit.ts |     100 |    95.83 |     100 |     100 | 96                
  ...htProtocol.ts |    9.09 |      100 |       0 |    9.09 | ...9,62-66,69-110 
  ...ream-error.ts |     100 |      100 |     100 |     100 |                   
  logger.ts        |   87.41 |    87.02 |     100 |   87.41 | ...64-568,614-628 
  ...lay-buffer.ts |     100 |      100 |     100 |     100 |                   
  ...dispatcher.ts |     100 |      100 |     100 |     100 |                   
  ...tyDefaults.ts |     100 |      100 |     100 |     100 |                   
  ...olExecutor.ts |   92.59 |       75 |      50 |   92.59 | 41-42             
  ...on-helpers.ts |   92.68 |    76.19 |     100 |   92.68 | ...10-211,228-229 
  ...issionFlow.ts |   98.97 |    96.96 |     100 |   98.97 | 107               
  prompts.ts       |   92.62 |    88.76 |   78.57 |   92.62 | ...1042,1245-1246 
  ...ing-effort.ts |     100 |      100 |     100 |     100 |                   
  ...n-recovery.ts |   95.13 |       80 |     100 |   95.13 | ...06-107,142-144 
  ...t-profiler.ts |   96.89 |    80.88 |   88.23 |   96.89 | ...10,117-118,123 
  ...port-retry.ts |     100 |      100 |     100 |     100 |                   
  tokenLimits.ts   |     100 |     92.1 |     100 |     100 | 87,122-123        
  ...reparation.ts |     100 |      100 |     100 |     100 |                   
  ...allIdUtils.ts |   98.41 |    93.02 |     100 |   98.41 | 36,45             
  ...okTriggers.ts |   99.45 |    92.43 |     100 |   99.45 | 182,193           
  ...terruption.ts |     100 |     92.3 |     100 |     100 | 86,104            
  turn.ts          |   98.49 |    91.17 |     100 |   98.49 | ...93,621-622,668 
 ...ntentGenerator |   96.32 |    87.24 |   95.31 |   96.32 |                   
  ...tGenerator.ts |   97.52 |    87.74 |   94.28 |   97.52 | ...1235-1239,1279 
  converter.ts     |   96.03 |     86.8 |     100 |   96.03 | ...,929,1084-1086 
  index.ts         |       0 |        0 |       0 |       0 | 1-21              
  usage.ts         |     100 |      100 |     100 |     100 |                   
 ...ntentGenerator |   89.93 |    71.83 |   93.33 |   89.93 |                   
  ...tGenerator.ts |    88.3 |    71.21 |   92.85 |    88.3 | ...19-325,343-344 
  index.ts         |     100 |       80 |     100 |     100 | 50                
 ...ntentGenerator |    94.7 |    85.66 |    92.1 |    94.7 |                   
  index.ts         |     100 |      100 |     100 |     100 |                   
  ...tGenerator.ts |    94.6 |     84.5 |   91.66 |    94.6 | ...1129-1130,1158 
  ...tDetection.ts |     100 |      100 |     100 |     100 |                   
 ...ntentGenerator |   91.18 |    89.22 |   95.09 |   91.18 |                   
  constants.ts     |     100 |      100 |     100 |     100 |                   
  converter.ts     |   90.46 |    87.69 |   96.87 |   90.46 | ...1865,2034-2049 
  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      |   96.66 |    90.21 |     100 |   96.66 | ...1021,1029,1097 
  ...ureContext.ts |     100 |      100 |     100 |     100 |                   
  ...ingOptions.ts |       0 |        0 |       0 |       0 | 1                 
  ...CallParser.ts |    92.2 |     92.4 |     100 |    92.2 | ...15-516,536-539 
  ...kingParser.ts |     100 |    96.87 |     100 |     100 | 42                
  types.ts         |       0 |        0 |       0 |       0 | 1                 
 ...rator/provider |   96.49 |    89.51 |   96.55 |   96.49 |                   
  dashscope.ts     |   97.48 |    91.72 |      95 |   97.48 | ...85-386,528-529 
  deepseek.ts      |   94.91 |    89.36 |     100 |   94.91 | ...31-132,145-146 
  default.ts       |    97.5 |    96.55 |   88.88 |    97.5 | 123-124,198       
  index.ts         |     100 |      100 |     100 |     100 |                   
  mimo.ts          |   94.11 |    66.66 |     100 |   94.11 | 29,52-53          
  minimax.ts       |     100 |      100 |     100 |     100 |                   
  mistral.ts       |   96.07 |    73.33 |     100 |   96.07 | 32-33             
  modelscope.ts    |     100 |      100 |     100 |     100 |                   
  types.ts         |       0 |        0 |       0 |       0 |                   
  utils.ts         |     100 |      100 |     100 |     100 |                   
  zai.ts           |   92.13 |    82.14 |     100 |   92.13 | ...,39-40,135-137 
 src/extension     |   86.05 |    82.91 |   92.19 |   86.05 |                   
  ...ive-safety.ts |     100 |      100 |     100 |     100 |                   
  ...-converter.ts |   78.32 |    71.83 |     100 |   78.32 | ...1122,1168-1169 
  corruptFile.ts   |     100 |       50 |     100 |     100 | 40-45             
  ...-converter.ts |   80.39 |     87.5 |     100 |   80.39 | 50-59             
  ...me-refresh.ts |     100 |      100 |     100 |     100 |                   
  ...sion-store.ts |   90.69 |    85.18 |   97.82 |   90.69 | ...1189-1195,1239 
  ...ionManager.ts |   80.55 |    77.97 |   80.23 |   80.55 | ...2576,2598-2599 
  ...references.ts |     100 |     90.9 |     100 |     100 | ...05,129,197,200 
  ...onSettings.ts |    92.3 |     94.4 |     100 |    92.3 | ...98-501,570-571 
  ...-converter.ts |    75.9 |    84.61 |   85.71 |    75.9 | ...98,202,214-248 
  github.ts        |   88.35 |    82.13 |     100 |   88.35 | ...42,932-933,943 
  http-client.ts   |   84.61 |       80 |     100 |   84.61 | 20-21             
  i18n.ts          |   78.26 |       96 |      50 |   78.26 | 104-110,116-123   
  index.ts         |     100 |      100 |     100 |     100 |                   
  marketplace.ts   |   88.39 |    83.11 |     100 |   88.39 | ...08,494,507-508 
  ...ork-policy.ts |   89.72 |       90 |     100 |   89.72 | ...36,148-154,156 
  npm.ts           |   89.02 |    81.81 |     100 |   89.02 | ...86-688,695-700 
  override.ts      |   94.11 |    93.33 |     100 |   94.11 | 63-64,81-82       
  redaction.ts     |     100 |      100 |     100 |     100 |                   
  settings.ts      |   66.26 |      100 |      50 |   66.26 | 81-107,141-146    
  ...ceRegistry.ts |   94.01 |    83.14 |     100 |   94.01 | ...38-344,365-366 
  storage.ts       |     100 |      100 |     100 |     100 |                   
  ...ableSchema.ts |     100 |      100 |     100 |     100 |                   
  variables.ts     |   88.95 |    83.78 |     100 |   88.95 | ...32-235,238-241 
  ...extraction.ts |   85.77 |    80.61 |   89.47 |   85.77 | ...02-205,260-261 
 src/followup      |   77.96 |    79.45 |    90.9 |   77.96 |                   
  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   |      66 |    60.46 |   71.42 |      66 | ...87-588,595-596 
  ...onToolGate.ts |     100 |    96.55 |     100 |     100 | 97                
  ...nGenerator.ts |   72.03 |    81.15 |   83.33 |   72.03 | ...68-219,331-333 
 src/generated     |       0 |        0 |       0 |       0 |                   
  git-commit.ts    |       0 |        0 |       0 |       0 | 1-10              
 src/goals         |   92.24 |    87.05 |   95.12 |   92.24 |                   
  ...eGoalStore.ts |   87.61 |    89.28 |   86.66 |   87.61 | ...85-188,196-204 
  goalHook.ts      |    96.7 |    93.33 |     100 |    96.7 | 99-104,205-206    
  goalJudge.ts     |   90.07 |     81.7 |     100 |   90.07 | ...35-336,379-380 
  index.ts         |     100 |      100 |     100 |     100 |                   
 src/hooks         |   87.49 |    86.21 |   88.69 |   87.49 |                   
  ...okRegistry.ts |   86.48 |    77.08 |     100 |   86.48 | ...41-344,362-369 
  ...bortSignal.ts |     100 |      100 |     100 |     100 |                   
  context-usage.ts |     100 |      100 |     100 |     100 |                   
  ...terpolator.ts |   96.66 |    93.33 |     100 |   96.66 | 66-67             
  ...HookRunner.ts |   96.68 |    87.23 |     100 |   96.68 | 110-112,231-233   
  ...Aggregator.ts |   96.57 |    91.48 |     100 |   96.57 | ...20-321,402,404 
  ...entHandler.ts |   95.43 |    84.53 |   94.59 |   95.43 | ...1010-1011,1021 
  hookPlanner.ts   |    87.5 |    85.18 |   86.66 |    87.5 | ...21-225,232-243 
  hookRegistry.ts  |   92.53 |    85.43 |     100 |   92.53 | ...39,458,462,466 
  hookRunner.ts    |   62.42 |    72.04 |   66.66 |   62.42 | ...64-765,774-775 
  hookSystem.ts    |    87.5 |      100 |   70.21 |    87.5 | ...43-744,750-751 
  ...HookRunner.ts |   75.51 |     61.9 |      80 |   75.51 | ...05-406,424-425 
  index.ts         |     100 |      100 |     100 |     100 |                   
  ...edCallback.ts |     100 |      100 |     100 |     100 |                   
  ...HookRunner.ts |   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 |   94.87 |    88.88 |     100 |   94.87 | ...84,325,327-329 
  ssrfGuard.ts     |   77.22 |    86.74 |     100 |   77.22 | ...57,261-267,273 
  stopHookCap.ts   |     100 |      100 |     100 |     100 |                   
  trustedHooks.ts  |      90 |    52.63 |     100 |      90 | ...53,66-67,97-98 
  types.ts         |   94.24 |    96.09 |   88.88 |   94.24 | ...42-543,628-632 
  urlValidator.ts  |     100 |      100 |     100 |     100 |                   
 src/ide           |   76.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.81 |   78.33 |   82.39 |                   
  configHash.ts    |     100 |      100 |     100 |     100 |                   
  constants.ts     |     100 |      100 |     100 |     100 |                   
  ...h-provider.ts |   86.95 |      100 |   33.33 |   86.95 | ...,93,97,101-102 
  ...h-provider.ts |   79.52 |    58.06 |     100 |   79.52 | ...33-940,947-949 
  ...en-storage.ts |   98.78 |    97.95 |     100 |   98.78 | 106-107           
  oauth-utils.ts   |   73.61 |    85.48 |    92.3 |   73.61 | ...46-366,392-421 
  ...n-provider.ts |   89.83 |       96 |   45.45 |   89.83 | ...43,147,151-152 
 .../token-storage |   82.12 |    88.19 |   89.28 |   82.12 |                   
  ...en-storage.ts |     100 |      100 |     100 |     100 |                   
  ...en-storage.ts |   87.08 |    87.03 |   95.23 |   87.08 | ...00-201,214-215 
  ...en-storage.ts |     100 |      100 |     100 |     100 |                   
  index.ts         |     100 |      100 |     100 |     100 |                   
  ...en-storage.ts |   68.14 |    82.35 |   64.28 |   68.14 | ...81-295,298-314 
  types.ts         |     100 |      100 |     100 |     100 |                   
 src/memory        |   86.88 |    82.52 |   90.06 |   86.88 |                   
  ...y-document.ts |   89.52 |    84.61 |     100 |   89.52 | ...24-325,329-330 
  ...nel-memory.ts |   97.11 |    95.72 |   96.29 |   97.11 | ...85-287,361-362 
  const.ts         |   94.28 |     92.3 |     100 |   94.28 | 66-67             
  dream.ts         |    64.6 |    72.22 |      50 |    64.6 | ...04-109,124-165 
  ...entPlanner.ts |     100 |    81.81 |     100 |     100 | 126,136           
  entries.ts       |   75.59 |    84.84 |   83.33 |   75.59 | ...56-157,172-180 
  extract.ts       |   91.48 |    75.75 |     100 |   91.48 | ...99,118-121,189 
  ...entPlanner.ts |   91.51 |    76.19 |     100 |   91.51 | ...04,113-116,290 
  ...ionPlanner.ts |       0 |        0 |       0 |       0 | 1                 
  forget.ts        |   81.83 |       75 |   83.33 |   81.83 | ...51,474,478-507 
  indexer.ts       |   94.14 |       84 |     100 |   94.14 | ...32-233,334,337 
  ...kill-agent.ts |     100 |      100 |     100 |     100 |                   
  manager.ts       |   78.44 |    82.29 |   77.77 |   78.44 | ...1482,1495-1497 
  ...ent-config.ts |   82.27 |    77.92 |   83.33 |   82.27 | ...66,285,292-298 
  memoryAge.ts     |   90.47 |       80 |     100 |   90.47 | 50-51             
  paths.ts         |   94.73 |    95.94 |     100 |   94.73 | ...35-336,357-358 
  ...ing-skills.ts |     100 |       72 |     100 |     100 | 31-35,73-78,97    
  prompt.ts        |   96.96 |    85.96 |     100 |   96.96 | ...22,225,560-561 
  recall.ts        |   82.06 |       75 |    90.9 |   82.06 | ...59-364,395-406 
  refresh.ts       |   89.85 |    82.92 |     100 |   89.85 | ...54-155,162-163 
  ...ceSelector.ts |    93.1 |    81.81 |     100 |    93.1 | ...25,127-128,136 
  remember.ts      |   98.89 |    89.79 |     100 |   98.89 | 50,70             
  scan.ts          |   93.12 |    77.41 |     100 |   93.12 | ...08-109,154,157 
  ...et-scanner.ts |     100 |      100 |     100 |     100 |                   
  ...entPlanner.ts |   71.68 |    65.51 |   68.75 |   71.68 | ...90-394,397,403 
  status.ts        |   10.52 |      100 |       0 |   10.52 | 41-98             
  store.ts         |   93.33 |    81.25 |     100 |   93.33 | ...,94-95,119-120 
  ...git-status.ts |     100 |     87.5 |     100 |     100 | 30                
  ...cret-guard.ts |     100 |      100 |     100 |     100 |                   
  ...emory-sync.ts |   94.24 |    82.85 |     100 |   94.24 | ...34-236,246-247 
  types.ts         |     100 |      100 |     100 |     100 |                   
  ...ontextFile.ts |   79.38 |    78.33 |   81.81 |   79.38 | ...58-272,286-291 
 src/mocks         |       0 |        0 |       0 |       0 |                   
  msw.ts           |       0 |        0 |       0 |       0 | 1-9               
 src/models        |   92.41 |    88.22 |   91.13 |   92.41 |                   
  constants.ts     |     100 |      100 |     100 |     100 |                   
  ...tor-config.ts |   97.63 |       90 |     100 |   97.63 | 146,152,162       
  index.ts         |     100 |      100 |     100 |     100 |                   
  ...nfigErrors.ts |   74.22 |       44 |   84.61 |   74.22 | ...,67-74,106-117 
  ...igResolver.ts |   98.71 |    93.33 |     100 |   98.71 | 166,328,334       
  modelRegistry.ts |     100 |    98.11 |     100 |     100 | 177,259           
  modelsConfig.ts  |   89.23 |    86.49 |   88.09 |   89.23 | ...1393,1422-1423 
  types.ts         |     100 |      100 |     100 |     100 |                   
 src/output        |     100 |      100 |     100 |     100 |                   
  ...-formatter.ts |     100 |      100 |     100 |     100 |                   
  types.ts         |     100 |      100 |     100 |     100 |                   
 src/permissions   |    83.5 |    91.16 |   70.46 |    83.5 |                   
  autoMode.ts      |   97.78 |    94.14 |     100 |   97.78 | ...42,570-577,686 
  ...transcript.ts |      98 |    84.61 |     100 |      98 | 200-201           
  classifier.ts    |      94 |    94.54 |     100 |      94 | 158-165,389-393   
  ...erousRules.ts |     100 |    89.36 |     100 |     100 | 110,133,147,175   
  ...alTracking.ts |     100 |      100 |     100 |     100 |                   
  ...e-commands.ts |   86.77 |     73.8 |     100 |   86.77 | 131-141,210-214   
  index.ts         |     100 |      100 |     100 |     100 |                   
  ...on-manager.ts |   86.53 |    89.57 |      80 |   86.53 | ...1095,1201-1205 
  rule-parser.ts   |   94.14 |     91.8 |     100 |   94.14 | ...1335,1369-1371 
  ...-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/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     |   81.91 |    76.58 |   78.12 |   81.91 |                   
  all-providers.ts |     100 |      100 |     100 |     100 |                   
  index.ts         |     100 |      100 |     100 |     100 |                   
  install.ts       |   93.11 |     84.5 |     100 |   93.11 | ...56-257,330-331 
  ...der-config.ts |    72.6 |       70 |   73.91 |    72.6 | ...94-495,502-511 
  types.ts         |       0 |        0 |       0 |       0 | 1                 
 ...viders/presets |    97.7 |    89.28 |   55.55 |    97.7 |                   
  ...oding-plan.ts |   87.34 |      100 |       0 |   87.34 | 82-84,87-89,91-94 
  ...a-standard.ts |     100 |      100 |     100 |     100 |                   
  ...token-plan.ts |     100 |      100 |     100 |     100 |                   
  ...m-provider.ts |   97.05 |    81.25 |      75 |   97.05 | 118-119           
  deepseek.ts      |     100 |      100 |     100 |     100 |                   
  grok.ts          |     100 |      100 |     100 |     100 |                   
  idealab.ts       |     100 |      100 |     100 |     100 |                   
  minimax.ts       |     100 |      100 |     100 |     100 |                   
  modelscope.ts    |     100 |      100 |     100 |     100 |                   
  openrouter.ts    |     100 |      100 |     100 |     100 |                   
  requesty.ts      |     100 |      100 |     100 |     100 |                   
  zai.ts           |     100 |      100 |     100 |     100 |                   
 src/qwen          |    85.3 |     78.8 |   95.89 |    85.3 |                   
  ...tGenerator.ts |   98.64 |    98.18 |     100 |   98.64 | 105-106           
  qwenOAuth2.ts    |   82.55 |    73.71 |   90.62 |   82.55 | ...1183-1199,1229 
  ...kenManager.ts |   85.36 |    76.61 |     100 |   85.36 | ...52-757,778-783 
 src/resources     |     100 |      100 |     100 |     100 |                   
  ...e-registry.ts |     100 |      100 |     100 |     100 |                   
 src/services      |   90.47 |    85.58 |   96.55 |   90.47 |                   
  ...ionTrailer.ts |     100 |      100 |     100 |     100 |                   
  ...llRegistry.ts |   97.35 |    85.21 |     100 |   97.35 | ...94,117,417-418 
  ...ionService.ts |   96.71 |    95.79 |     100 |   96.71 | ...83,699,832-840 
  ...ingService.ts |   91.71 |    85.49 |   90.19 |   91.71 | ...1677,1692-1693 
  ...ttribution.ts |   91.73 |    87.71 |      90 |   91.73 | ...80-685,826-827 
  ...utSlimming.ts |    97.2 |       94 |     100 |    97.2 | ...39-340,378-381 
  cronScheduler.ts |   94.29 |    91.06 |   97.91 |   94.29 | ...1274,1673-1674 
  cronTasksFile.ts |   94.76 |    89.77 |     100 |   94.76 | ...19,328-329,437 
  cronTasksLock.ts |   94.44 |    89.47 |     100 |   94.44 | ...02-103,132-133 
  ...eryService.ts |   96.22 |    93.54 |      90 |   96.22 | 121,155-156,161   
  ...oryService.ts |   88.17 |    79.02 |    92.3 |   88.17 | ...1303,1344-1347 
  fileReadCache.ts |     100 |      100 |     100 |     100 |                   
  ...temService.ts |   92.07 |    85.93 |    90.9 |   92.07 | ...09,211,323-330 
  ...ratedFiles.ts |      96 |    88.23 |     100 |      96 | 119-120,146-147   
  gitInit.ts       |     100 |      100 |     100 |     100 |                   
  ...reeService.ts |   74.05 |       69 |   95.74 |   74.05 | ...2170,2198-2199 
  ...references.ts |   98.39 |    88.88 |     100 |   98.39 | 154-155,215-216   
  ...ionService.ts |   98.22 |    97.34 |     100 |   98.22 | ...63-664,711-712 
  ...ticsDumper.ts |   98.37 |    95.23 |     100 |   98.37 | 185-186           
  ...ureMonitor.ts |   95.82 |    90.52 |   97.05 |   95.82 | ...60,861,875-877 
  ...orRegistry.ts |   97.27 |    91.22 |     100 |   97.27 | ...50-451,606-607 
  ...ttachments.ts |   97.74 |     90.8 |     100 |   97.74 | 298-308,646       
  ...ersistence.ts |   90.95 |    78.61 |     100 |   90.95 | ...78,963-964,992 
  ...on-service.ts |   94.49 |    92.26 |   97.14 |   94.49 | ...98-600,656-664 
  ...ipt-reader.ts |   94.27 |    88.34 |   97.95 |   94.27 | ...1019,1027-1028 
  sessionRecap.ts  |   67.56 |    43.47 |     100 |   67.56 | ...60,178,180-183 
  ...ionService.ts |   88.11 |    82.66 |   95.52 |   88.11 | ...2347,2417-2437 
  sessionTitle.ts  |   94.19 |    73.21 |     100 |   94.19 | ...43-246,277-278 
  ...ionService.ts |    84.2 |    78.16 |   97.14 |    84.2 | ...2451,2457-2462 
  ...pInhibitor.ts |   97.42 |    92.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 
  ...rd-service.ts |     100 |    88.37 |     100 |     100 | ...29,145-146,241 
  ...oryService.ts |   92.07 |    84.69 |     100 |   92.07 | ...47-450,502-503 
  ...reeCleanup.ts |   14.56 |      100 |   33.33 |   14.56 | 58-185            
  ...ionService.ts |   87.98 |    86.84 |     100 |   87.98 | ...38-439,455-456 
 ...icrocompaction |   99.41 |    96.06 |     100 |   99.41 |                   
  microcompact.ts  |   99.41 |    96.06 |     100 |   99.41 | 244-245,677       
 ...s/visionBridge |    98.6 |    94.08 |     100 |    98.6 |                   
  ...capability.ts |     100 |      100 |     100 |     100 |                   
  ...part-utils.ts |     100 |      100 |     100 |     100 |                   
  ...-constants.ts |     100 |      100 |     100 |     100 |                   
  ...ge-service.ts |   98.31 |    92.59 |     100 |   98.31 | ...21,645,658-659 
 src/skills        |   88.22 |    87.05 |   90.16 |   88.22 |                   
  index.ts         |     100 |      100 |     100 |     100 |                   
  ...activation.ts |     100 |    93.33 |     100 |     100 | 93,112            
  skill-load.ts    |   94.84 |     87.5 |     100 |   94.84 | ...03,223,235-237 
  skill-manager.ts |   83.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     |   87.26 |     87.2 |   96.42 |   87.26 |                   
  ...ter-schema.ts |     100 |    98.07 |     100 |     100 | 99                
  ...tin-agents.ts |     100 |      100 |     100 |     100 |                   
  index.ts         |     100 |      100 |     100 |     100 |                   
  ...nt-manager.ts |   83.48 |    82.86 |   94.59 |   83.48 | ...1487,1564-1565 
  types.ts         |     100 |      100 |     100 |     100 |                   
  validation.ts    |   92.46 |    95.18 |     100 |   92.46 | 47-52,63-68,71-76 
 src/telemetry     |   80.11 |     87.3 |   82.41 |   80.11 |                   
  ...ty-tracker.ts |     100 |      100 |     100 |     100 |                   
  config.ts        |     100 |      100 |     100 |     100 |                   
  constants.ts     |     100 |      100 |     100 |     100 |                   
  ...on-metrics.ts |   99.07 |    80.95 |     100 |   99.07 | 183,197           
  ...on-tracing.ts |   76.31 |    74.62 |   73.68 |   76.31 | ...80,387-389,405 
  ...attributes.ts |   97.47 |    93.15 |     100 |   97.47 | 39-44             
  ...ag-metrics.ts |     100 |    77.77 |     100 |     100 | 21,40             
  ...t-loop-lag.ts |     100 |    90.47 |     100 |     100 | 49,76             
  ...-exporters.ts |   65.78 |    83.33 |   55.55 |   65.78 | ...04-105,108-109 
  index.ts         |     100 |      100 |     100 |     100 |                   
  ...t.circular.ts |       0 |        0 |       0 |       0 | 1-111             
  ...-processor.ts |   99.09 |    95.61 |      95 |   99.09 | 141,365-366       
  ...t.circular.ts |       0 |        0 |       0 |       0 | 1-128             
  loggers.ts       |   54.12 |    71.13 |   62.74 |   54.12 | ...1347,1364-1384 
  metrics.ts       |   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 |   89.89 |    88.03 |   96.55 |   89.89 | ...1550,1581-1584 
  ...etry-utils.ts |     100 |      100 |     100 |     100 |                   
  ...l-decision.ts |     100 |      100 |     100 |     100 |                   
  trace-context.ts |     100 |      100 |     100 |     100 |                   
  ...e-id-utils.ts |     100 |      100 |     100 |     100 |                   
  tracer.ts        |   98.56 |    88.63 |     100 |   98.56 | 52,101            
  types.ts         |   81.64 |    86.36 |   85.36 |   81.64 | ...1328,1332-1339 
  uiTelemetry.ts   |   93.07 |    92.85 |   83.33 |   93.07 | ...62,290,410-411 
 ...ry/qwen-logger |   73.62 |    81.25 |   69.49 |   73.62 |                   
  event-types.ts   |       0 |        0 |       0 |       0 |                   
  qwen-logger.ts   |   73.62 |    81.08 |   68.96 |   73.62 | ...1095,1133-1134 
 src/test-utils    |      94 |    98.24 |   78.94 |      94 |                   
  config.ts        |     100 |      100 |     100 |     100 |                   
  ...st-helpers.ts |   94.11 |       90 |     100 |   94.11 | 69-70             
  index.ts         |     100 |      100 |     100 |     100 |                   
  mock-tool.ts     |   92.57 |      100 |   75.75 |   92.57 | ...63,227-228,241 
  ...aceContext.ts |     100 |      100 |     100 |     100 |                   
 src/tools         |   85.25 |    84.26 |   87.84 |   85.25 |                   
  ...erQuestion.ts |   89.71 |    80.76 |   91.66 |   89.71 | ...66-367,374-375 
  ...-registrar.ts |    77.7 |    66.66 |   66.66 |    77.7 | ...72-277,292-294 
  ...ub-session.ts |   89.67 |     91.3 |   81.81 |   89.67 | ...03-304,315-322 
  cron-create.ts   |   90.64 |    92.85 |   72.72 |   90.64 | ...,73-74,223-231 
  cron-delete.ts   |   97.56 |      100 |   83.33 |   97.56 | 31-32             
  cron-list.ts     |   98.23 |    95.34 |    87.5 |   98.23 | 57-58             
  diffOptions.ts   |     100 |      100 |     100 |     100 |                   
  edit.ts          |    82.7 |    86.77 |   81.25 |    82.7 | ...43-744,863-913 
  ...r-worktree.ts |   83.14 |    67.56 |    87.5 |   83.14 | ...84-187,278-279 
  enterPlanMode.ts |   84.67 |    81.81 |   85.71 |   84.67 | ...27-132,160-174 
  exit-worktree.ts |   83.29 |    83.65 |   94.44 |   83.29 | ...14-515,537-538 
  exitPlanMode.ts  |   94.04 |    82.53 |     100 |   94.04 | ...92,311,342-344 
  glob.ts          |   96.33 |     88.5 |     100 |   96.33 | ...24-225,373,376 
  grep.ts          |   83.21 |    86.66 |   80.95 |   83.21 | ...65-666,716-717 
  ...adTracking.ts |     100 |      100 |     100 |     100 |                   
  loop-wakeup.ts   |   99.24 |    92.85 |     100 |   99.24 | 44                
  ls.ts            |   96.74 |    90.27 |     100 |   96.74 | 176-181,212,216   
  lsp.ts           |   72.71 |     59.5 |   90.32 |   72.71 | ...1212,1214-1215 
  ...nt-manager.ts |   81.63 |       79 |   85.41 |   81.63 | ...3221,3223-3224 
  mcp-client.ts    |   79.35 |    84.71 |   88.67 |   79.35 | ...2167,2171-2174 
  ...ry-timeout.ts |     100 |      100 |     100 |     100 |                   
  mcp-errors.ts    |     100 |      100 |     100 |     100 |                   
  ...pool-entry.ts |   77.56 |    84.11 |   77.14 |   77.56 | ...1291,1299-1300 
  ...ool-events.ts |       8 |      100 |       0 |       8 | 132-158           
  mcp-pool-key.ts  |   97.46 |    93.93 |     100 |   97.46 | 175-176           
  ...ce-content.ts |   96.55 |    91.17 |     100 |   96.55 | 80-82             
  mcp-retry.ts     |   97.67 |    95.65 |     100 |   97.67 | 131-132           
  mcp-status.ts    |     100 |      100 |     100 |     100 |                   
  mcp-tool.ts      |   92.08 |    93.16 |   96.87 |   92.08 | ...31-732,782-783 
  ...sport-pool.ts |   83.49 |    80.15 |   84.61 |   83.49 | ...1409,1416-1420 
  ...ace-budget.ts |   87.27 |     82.6 |     100 |   87.27 | ...00-305,340-345 
  memory-config.ts |     100 |      100 |     100 |     100 |                   
  ...iable-tool.ts |     100 |    84.61 |     100 |     100 | 101,108           
  monitor.ts       |   91.72 |    84.28 |   88.46 |   91.72 | ...92,605,803-808 
  notebook-edit.ts |   85.55 |    77.39 |   81.25 |   85.55 | ...86-902,948-949 
  ...escendants.ts |   36.17 |    64.51 |   55.55 |   36.17 | ...46-310,385-390 
  ...nforcement.ts |   82.57 |    88.88 |     100 |   82.57 | 174-185,234-247   
  read-file.ts     |   95.64 |    88.88 |   86.66 |   95.64 | ...74,489,561-562 
  ...p-resource.ts |   96.85 |      100 |   91.66 |   96.85 | 92-96             
  ...d-artifact.ts |    90.9 |    86.71 |    87.5 |    90.9 | ...13-414,428-440 
  ripGrep.ts       |    95.9 |     88.4 |   94.73 |    95.9 | ...61-662,668-669 
  ...-transport.ts |   71.42 |    55.55 |   71.42 |   71.42 | ...36-137,143-144 
  send-message.ts  |    82.3 |    89.65 |    62.5 |    82.3 | ...37-243,326-334 
  ...n-mcp-view.ts |   93.57 |     92.3 |      90 |   93.57 | 122-130           
  shell.ts         |   78.37 |    83.35 |   91.75 |   78.37 | ...4947,5010-5011 
  skill-utils.ts   |     100 |      100 |     100 |     100 |                   
  skill.ts         |   91.06 |    93.33 |   89.47 |   91.06 | ...71,475,520-542 
  ...eticOutput.ts |   95.12 |      100 |      80 |   95.12 | 87-88             
  task-create.ts   |    94.4 |    93.33 |   81.81 |    94.4 | 45-49,63-64,95    
  task-list.ts     |   73.38 |    77.77 |   83.33 |   73.38 | ...02,105,109-116 
  task-stop.ts     |   93.14 |    96.15 |   85.71 |   93.14 | 39-40,54-64       
  task-update.ts   |   82.89 |    83.92 |    92.3 |   82.89 | ...14-422,454-465 
  team-create.ts   |   97.22 |    85.71 |   83.33 |   97.22 | 48-49,129-130     
  team-delete.ts   |   86.74 |    83.33 |   83.33 |   86.74 | 37-38,42-48,72-73 
  ...n-approval.ts |   92.14 |    96.77 |   77.77 |   92.14 | 38-39,42-43,93-99 
  todoWrite.ts     |   93.92 |    83.13 |   92.85 |   93.92 | ...86-391,413-414 
  tool-error.ts    |     100 |      100 |     100 |     100 |                   
  tool-names.ts    |     100 |      100 |     100 |     100 |                   
  tool-registry.ts |   77.13 |    76.11 |   82.22 |   77.13 | ...23-924,932-933 
  tool-search.ts   |   96.19 |    89.72 |   93.33 |   96.19 | ...09,259-264,426 
  tools.ts         |   92.72 |    91.52 |    91.3 |   92.72 | ...51-552,568-574 
  ...reapproved.ts |   99.27 |    94.11 |     100 |   99.27 | 170               
  web-fetch.ts     |   95.66 |    89.92 |   96.55 |   95.66 | ...12-713,727-728 
  web-search.ts    |   90.52 |    83.57 |      80 |   90.52 | ...1000,1058-1061 
  write-file.ts    |   85.52 |    84.61 |   85.71 |   85.52 | ...32-735,772-807 
 src/tools/agent   |   84.73 |    84.62 |   86.31 |   84.73 |                   
  agent.ts         |    84.8 |    84.71 |    86.2 |    84.8 | ...3754,3776-3786 
  fork-subagent.ts |   83.14 |       80 |    87.5 |   83.14 | 83-101,133-134    
 ...tools/artifact |   95.78 |    92.51 |   88.63 |   95.78 |                   
  artifact-tool.ts |   91.46 |    88.46 |   71.42 |   91.46 | ...13-314,322-325 
  ...-publisher.ts |     100 |    85.71 |     100 |     100 | 32                
  ...-publisher.ts |   96.74 |    97.72 |    87.5 |   96.74 | 29-30,156-157     
  html.ts          |     100 |    96.77 |     100 |     100 | 122               
  ...-publisher.ts |     100 |       80 |     100 |     100 | 30                
  oss-publisher.ts |    98.1 |    91.48 |     100 |    98.1 | 43-45             
  publisher.ts     |     100 |      100 |     100 |     100 |                   
 ...s/computer-use |   90.21 |    82.17 |   78.08 |   90.21 |                   
  bootstrap.ts     |   59.42 |    80.95 |   41.66 |   59.42 | ...35-339,341-345 
  client.ts        |   80.11 |       90 |   77.77 |   80.11 | ...97,242-243,274 
  constants.ts     |     100 |    94.73 |     100 |     100 | 129,256           
  downloader.ts    |   65.29 |    52.77 |   58.33 |   65.29 | ...99-300,316-355 
  index.ts         |     100 |      100 |     100 |     100 |                   
  install-state.ts |   94.44 |    72.72 |     100 |   94.44 | 44-45             
  ...n-detector.ts |     100 |     87.5 |     100 |     100 | 50                
  schemas.ts       |     100 |      100 |     100 |     100 |                   
  tool.ts          |    96.3 |    85.71 |     100 |    96.3 | 75-76,184,252-258 
 ...tools/workflow |   87.46 |    79.41 |   85.71 |   87.46 |                   
  workflow.ts      |   87.46 |    79.41 |   85.71 |   87.46 | ...51-652,664-667 
 src/utils         |   92.08 |     89.5 |   96.31 |   92.08 |                   
  LruCache.ts      |     100 |      100 |     100 |     100 |                   
  ...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             
  ...ry-content.ts |   98.45 |    95.45 |     100 |   98.45 | 132-133,159-160   
  browser.ts       |   86.84 |    78.94 |     100 |   86.84 | 34,36-37,65-66    
  btwUtils.ts      |   13.95 |      100 |       0 |   13.95 | 17-31,34-55       
  bundlePaths.ts   |     100 |      100 |     100 |     100 |                   
  ...on-context.ts |     100 |      100 |     100 |     100 |                   
  ...ncyLimiter.ts |   94.64 |    95.23 |     100 |   94.64 | 64-66             
  ...igResolver.ts |     100 |      100 |     100 |     100 |                   
  ...engthError.ts |   91.11 |    89.47 |     100 |   91.11 | ...46-147,154-155 
  ...tion-chain.ts |     100 |      100 |     100 |     100 |                   
  cronDisplay.ts   |     100 |    91.66 |     100 |     100 | 15,43,57          
  cronParser.ts    |   95.34 |    93.33 |     100 |   95.34 | 41-42,47-48,70-71 
  debugLogger.ts   |   96.66 |    96.61 |   88.88 |   96.66 | 192-196           
  editHelper.ts    |   93.63 |     83.9 |     100 |   93.63 | ...28-429,463-464 
  editor.ts        |   97.65 |    95.45 |     100 |   97.65 | ...35-336,338-339 
  env.ts           |     100 |      100 |     100 |     100 |                   
  ...arResolver.ts |   94.28 |    88.88 |     100 |   94.28 | 28-29,125-126     
  ...entContext.ts |   96.63 |    88.88 |   96.66 |   96.63 | ...42,444-445,512 
  errorParsing.ts  |     100 |      100 |     100 |     100 |                   
  ...rReporting.ts |   95.65 |    93.33 |     100 |   95.65 | 37-38             
  errors.ts        |   82.23 |    92.95 |    61.9 |   82.23 | ...56-372,376-382 
  fetch.ts         |   90.68 |    82.51 |     100 |   90.68 | ...72,483-484,503 
  fileUtils.ts     |   95.33 |       92 |   96.15 |   95.33 | ...1747,1772-1773 
  forkedAgent.ts   |   92.45 |    82.35 |   93.75 |   92.45 | ...34,642,647-654 
  formatters.ts    |   81.81 |       75 |     100 |   81.81 | 15-16             
  ...eUtilities.ts |    92.4 |    86.95 |     100 |    92.4 | ...52-158,168-169 
  ...rStructure.ts |   94.36 |    94.28 |     100 |   94.36 | ...17-120,330-335 
  getPty.ts        |   31.57 |       50 |     100 |   31.57 | 26-38             
  gitDiff.ts       |   93.99 |    79.94 |     100 |   93.99 | ...1141,1385-1386 
  gitDirect.ts     |   98.46 |    90.17 |     100 |   98.46 | 148,268,352       
  ...noreParser.ts |   94.59 |    92.59 |     100 |   94.59 | ...05-106,140-141 
  gitUtils.ts      |      75 |    88.88 |   83.33 |      75 | ...,78-79,103-154 
  iconvHelper.ts   |     100 |      100 |     100 |     100 |                   
  ...rePatterns.ts |     100 |      100 |     100 |     100 |                   
  ...ionManager.ts |     100 |     90.9 |     100 |     100 | 27                
  ...lPromptIds.ts |     100 |      100 |     100 |     100 |                   
  jsonl-utils.ts   |   95.27 |     93.1 |     100 |   95.27 | ...16-317,356-359 
  ...-detection.ts |     100 |      100 |     100 |     100 |                   
  ...iagnostics.ts |    96.4 |     94.2 |     100 |    96.4 | ...66,293-294,376 
  ...yDiscovery.ts |    92.4 |    89.01 |     100 |    92.4 | ...28,331,522-525 
  ...tProcessor.ts |   93.77 |    89.15 |     100 |   93.77 | ...13-319,406-407 
  ...Inspectors.ts |     100 |      100 |     100 |     100 |                   
  modelId.ts       |     100 |      100 |     100 |     100 |                   
  ...kerChecker.ts |    90.9 |    91.66 |     100 |    90.9 | 73-79             
  notebook.ts      |   94.57 |    89.91 |   95.83 |   94.57 | ...21,333,385-387 
  openaiLogger.ts  |   91.66 |    89.74 |     100 |   91.66 | ...26-228,251-256 
  partUtils.ts     |     100 |    98.61 |     100 |     100 | 206               
  pathReader.ts    |   97.77 |       90 |     100 |   97.77 | 93,121            
  paths.ts         |   93.95 |    92.79 |     100 |   93.95 | ...78-479,481-483 
  pdf.ts           |   92.17 |    85.81 |     100 |   92.17 | ...64-565,606-611 
  projectPath.ts   |     100 |      100 |     100 |     100 |                   
  projectRoot.ts   |   71.73 |    78.57 |     100 |   71.73 | 54-66             
  ...ectSummary.ts |   89.62 |    72.41 |     100 |   89.62 | ...40-145,196-199 
  ...tIdContext.ts |     100 |      100 |     100 |     100 |                   
  proxyUtils.ts    |     100 |      100 |     100 |     100 |                   
  ...rDetection.ts |   59.15 |    76.92 |     100 |   59.15 | ...5,89-90,96-101 
  ...noreParser.ts |   92.63 |    91.52 |     100 |   92.63 | ...72-173,192-193 
  rateLimit.ts     |   93.75 |    89.62 |     100 |   93.75 | ...13,218-219,262 
  ...text-range.ts |   97.73 |    93.24 |     100 |   97.73 | 85-86,107,262-263 
  readManyFiles.ts |   96.29 |     87.5 |     100 |   96.29 | 225,275,286-290   
  retry.ts         |   95.93 |    92.23 |     100 |   95.93 | ...33,524-525,543 
  retryContext.ts  |     100 |      100 |     100 |     100 |                   
  ...sification.ts |   97.65 |    96.96 |     100 |   97.65 | ...00,250-251,277 
  retryPolicy.ts   |   97.72 |    90.56 |     100 |   97.72 | 130-131           
  ripgrepUtils.ts  |   50.94 |    85.71 |      70 |   50.94 | ...54-255,268-346 
  ...sDiscovery.ts |   97.46 |    93.05 |     100 |   97.46 | ...04,182-183,202 
  ...iagnostics.ts |   83.08 |     67.5 |   92.59 |   83.08 | ...23,543-544,550 
  ...tchOptions.ts |   83.09 |    86.77 |   95.45 |   83.09 | ...70,595,624-633 
  ...odelPrefix.ts |     100 |      100 |     100 |     100 |                   
  runtimeStatus.ts |    97.5 |    89.74 |     100 |    97.5 | 162-163           
  safe-mode.ts     |     100 |      100 |     100 |     100 |                   
  safeJsonParse.ts |     100 |      100 |     100 |     100 |                   
  ...nStringify.ts |     100 |      100 |     100 |     100 |                   
  ...aConverter.ts |   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.65 |     100 |   95.98 | ...70,386,466,485 
  ...-pager-env.ts |     100 |      100 |     100 |     100 |                   
  ...fety-rules.ts |     100 |     89.7 |     100 |     100 | ...01,304,309-311 
  shell-utils.ts   |   86.05 |    88.54 |     100 |   86.05 | ...2246,2253-2257 
  ...lAstParser.ts |   98.16 |    91.91 |     100 |   98.16 | ...1244-1246,1256 
  ...ContextEnv.ts |     100 |    90.47 |     100 |     100 | 46-48             
  ...nlyChecker.ts |   96.33 |    96.57 |     100 |   96.33 | ...83-284,292-293 
  sideQuery.ts     |   86.82 |    86.66 |     100 |   86.82 | ...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 
  ...-constants.ts |     100 |      100 |     100 |     100 |                   
  textUtils.ts     |      65 |      100 |      75 |      65 | 56-75             
  thoughtUtils.ts  |     100 |    95.65 |     100 |     100 | 99                
  ...-converter.ts |   95.23 |    85.71 |     100 |   95.23 | 36-37             
  ...name-utils.ts |     100 |      100 |     100 |     100 |                   
  tool-utils.ts    |    95.2 |    93.61 |     100 |    95.2 | ...58-159,162-163 
  ...ultCleanup.ts |   54.62 |       64 |      75 |   54.62 | ...03-105,108-134 
  ...Compaction.ts |   96.11 |    96.33 |     100 |   96.11 | ...22-327,329-334 
  ...pt-records.ts |   85.78 |    83.48 |     100 |   85.78 | ...84-388,418-433 
  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 |   69.01 |     74.5 |   84.37 |   69.01 |                   
  ...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.

@qwen-code-ci-bot

Copy link
Copy Markdown
Collaborator

Qwen Code review did not complete successfully. Qwen review aborted with an API error before posting comments. See workflow logs.

@tanzhenxin

Copy link
Copy Markdown
Collaborator Author

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

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

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Not reviewed: This PR adds an opt-in built-in web_search tool backed by... — pointed at diff lines it never opened: it made tool calls, but none of them read the diff.

— qwen3.8-max-preview via Qwen Code /review

Comment thread packages/core/src/tools/web-search.test.ts
Comment thread packages/core/src/tools/web-search.ts
Comment thread packages/cli/src/config/config.ts
Comment thread packages/cli/src/config/config.ts
Comment thread packages/core/src/tools/web-search.test.ts
Comment thread packages/core/src/tools/web-search.test.ts Outdated
Comment thread packages/core/src/tools/web-search.ts
Comment thread packages/core/src/tools/web-search.ts
@wenshao

wenshao commented Jul 19, 2026

Copy link
Copy Markdown
Collaborator

@qwen-code /takeover

@qwen-code-dev-bot qwen-code-dev-bot added the autofix/takeover Summon the autofix loop to manage this PR (remove to release; needs triage+) label Jul 19, 2026
@qwen-code-dev-bot

Copy link
Copy Markdown
Collaborator

🤝 Takeover engaged: the autofix loop now manages this PR — it will address new review feedback and resolve base conflicts until the label is removed or the round cap is reached. Remove the autofix/takeover label (or comment @qwen-code /takeover stop) to release.

中文说明

🤝 已接管:autofix 循环现在管理此 PR —— 将持续处理新的评审反馈与 base 冲突,直到移除标签或达到轮次上限。移除 autofix/takeover 标签(或评论 @qwen-code /takeover stop)即可释放。

@wenshao

wenshao commented Jul 19, 2026

Copy link
Copy Markdown
Collaborator

@qwen-code /takeover stop

@qwen-code-dev-bot qwen-code-dev-bot removed the autofix/takeover Summon the autofix loop to manage this PR (remove to release; needs triage+) label Jul 19, 2026
@qwen-code-dev-bot

Copy link
Copy Markdown
Collaborator

👋 Takeover released: the autofix loop will no longer engage this PR (an in-flight round, if any, completes its bounded work). Re-apply autofix/takeover (or comment @qwen-code /takeover) to re-engage.

中文说明

👋 已释放:autofix 循环不再介入此 PR(在飞的一轮如有,将完成其有界工作)。重新打上 autofix/takeover 标签(或评论 @qwen-code /takeover)即可再次接管。

…-error partials

- Override maxOutputChars (result limit + envelope headroom) so the
  scheduler's global 25k threshold no longer slices results before the
  tool's section-aware truncation can protect URL evidence sections.
- Route in-stream backend errors through the shared terminal-failure
  tail so results streamed (and billed) before the error surface as a
  partial result, matching the transport-error path.
- Strengthen gate tests: assert gate.ok before webExtractor, exercise
  the https-only endpoint guard, and make the config mock disambiguate
  same-id entries by baseUrl like the real Config.
Apply the function's set-but-empty-is-unset rule to the API key env
var like every sibling env read, and add loadCliConfig coverage for
the web search settings resolution (env precedence, empty-env
fallthrough, base-URL key selection).

@wenshao wenshao left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

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

— qwen3.8-max-preview via Qwen Code /review

Comment thread packages/core/src/followup/speculationToolGate.ts
Comment thread packages/cli/src/config/config.ts
Comment thread packages/core/src/core/openaiContentGenerator/provider/dashscope.ts
Comment thread packages/core/src/tools/web-search.ts
Comment thread packages/core/src/tools/web-search.ts Outdated
@QwenLM QwenLM deleted a comment from qwen-code-dev-bot Jul 20, 2026
@QwenLM QwenLM deleted a comment from qwen-code-dev-bot Jul 20, 2026
@wenshao

wenshao commented Jul 20, 2026

Copy link
Copy Markdown
Collaborator

@qwen-code /review

1 similar comment
@wenshao

wenshao commented Jul 21, 2026

Copy link
Copy Markdown
Collaborator

@qwen-code /review

@wenshao

wenshao commented Jul 21, 2026

Copy link
Copy Markdown
Collaborator

Review

Overview

Reintroduces a built-in web_search tool as an opt-in feature backed by DashScope's Responses API server-side search: a new ~1,000-line tool + gate (packages/core/src/tools/web-search.ts), CLI settings/env resolution, registration wiring with one-time misconfiguration notices (interactive / headless / stream-json / ACP), permission-system + microcompaction + speculation-gate integration, a WebSearch → WebSearch converter mapping, shared DashScope regional-host detection (now including dashscope-us), and docs. Off by default; nothing changes for existing users.

Overall this is well-engineered and unusually well-tested. The failure-mode handling (salvaging billed partial results only when a search actually executed, the probe-verified typeless HTTP-200 error event, surrogate-pair-safe truncation) shows real care. I verified the integration points against main — registryBaseUrl, resolveModelId semantics, the DeclarativeTool positional args, delay(ms, signal) abort behavior, warning surfacing in gemini.tsx/runAcpAgent — and they all line up. LGTM with minor comments below.

Strengths

  • Security posture is layered and coherent: double opt-in (flag + model), HTTPS-only endpoint gate with an issue-specific notice, DashScope host allowlist shared with provider detection, per-call confirmation defaulting to ask (matching web_fetch's pattern, tool-level rule since queries are free text), untrusted-content framing at three layers (side-request instructions, tool description, result safety footer), result-size cap plus a 2 MB in-stream runaway guard.
  • Fail-closed everywhere: gate re-checked at execute time; partial salvage refuses unaudited narration (searchCallCount === 0 → no salvage); subagent allow-lists with unresolved names stay dead entries rather than widening to inherit-all.
  • Test coverage: the 980-line unit suite covers the gate matrix (incl. same-id multi-entry disambiguation), truncation arithmetic and surrogate boundaries, every stream-termination shape, retry/backoff with abort, and progress updates — plus CLI resolution (safe/bare modes, empty-env-var semantics), core registration/notice dedup, ACP stderr, converter, and subagent tests. Live E2E evidence in the PR body.
  • Nice touch: month-granular date in the tool description with a schema getter recompute, so long-lived qwen serve/ACP processes cross month boundaries without busting prompt-cache within a month.

Findings (all minor)

  1. Converter behavior change deserves changelog visibilitypackages/core/src/extension/claude-converter.ts. Previously WebSearch: 'None' dropped the entry, so a converted Claude agent whose tool list was only WebSearch ended up with an empty list → no toolConfiginherited all tools (including shell/write). Now it maps to WebSearch, and with the opt-in tool unregistered such an agent runs tool-less. Fail-closed is strictly safer and the tests document it as deliberate — but users whose converted agents silently relied on inherit-all will see them lose capabilities. Worth one line in release/migration notes.

  2. Settings reference doc not updateddocs/users/configuration/settings.md documents every other tools.* setting (tools.sandboxImage, tools.computerUse.*, …) but gains no tools.webSearch.enabled/model/webExtractor rows. The dedicated web-search page is thorough, but the settings table is where people look first.

  3. Whitespace-only API key passes the gateweb-search.ts checks !!process.env[entry.envKey]. The CLI treats a whitespace-only WEB_SEARCH_API_KEY as unset (nice), but the envKey/DASHSCOPE_API_KEY paths don't trim, so ' ' passes the gate and fails as a 401 at first use instead of a startup notice. Trivial fix: trim in the gate.

  4. Env-declared path can send a literal fast/inherit model id — in the gate, modelId: resolved?.modelId ?? selector: resolveModelId returns undefined only for fast (no fastModel) / inherit (no current model), so with WEB_SEARCH_BASE_URL set the raw string "fast" goes to DashScope as the model id. It fails loudly on first use, so impact is cosmetic, but a gate-time rejection would name the actual problem. Relatedly, model: "fast" / "inherit" do resolve (to the fast/main model) — a selector form the docs don't mention; either document or reject.

  5. Timeout-salvage labeling nit — in terminalFailure, when the 60s budget expires after a search executed, the salvaged result says "the search stream ended before completion" and never mentions the timeout. Fine for the model, slightly obscure for debugging; a timeout-specific partial note would help.

  6. Drive-by noisepackages/vscode-ide-companion/vitest.config.ts is a formatting-only change; packages/cli/.gitignore masks the test artifact leakage rather than fixing the leaking suites (the comment acknowledges this). Both harmless, just scope creep.

Risk notes (acknowledged in the PR, agreeing with the assessment)

  • In auto-approve modes, spend on the user's DashScope key is bounded only by model behavior and account limits; the per-call confirmation default plus explicit opt-in is the right mitigation.
  • dashscope-us now matching main provider detection is a (small, sensible) behavior change beyond the tool itself; test added.
  • The always-allow persistence is a tool-level WebSearch rule — broader than WebFetch's per-domain rule, but queries are free text so no narrower scope exists; consistent with the rest of the permission system.

None of the findings block merging.

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

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Reviewed. Suggestions are inline. Not reviewed: chunk 1, chunk 3, chunk 6, chunk 5, chunk 2, chunk 8, chunk 7, chunk 9, chunk 4 — launched with a prompt that is not the one the CLI built. Not reviewed: Agent 0: Issue fidelity & root-cause ownership, Test coverage matrix (whole-diff), Agent 1b: Removed-behavior audit, Agent 1c: Cross-file tracer, Agent 7: Build & test verification — its prompt was built, but no agent on record was launched with it. Not reviewed: reverse audit — no auditor was launched with a prompt this skill builds — the pass that hunts what the rest of the review missed ran, if at all, without the method its brief carries. Not reviewed: verification — a verifier ran and opened its brief, but no agent was launched with the prompt the CLI built — the launch was written by hand, and the posted findings cannot be counted as verified against it. [Critical] packages/core/src/tools/web-search.ts:727-732 — response.cancelled missing from terminal-event switch (existing blocker still stands; the terminal-event switch handles completed, failed, and incomplete but omits cancelled, making the status === 'cancelled' handler at line 818 dead code)

— qwen3.7-max via Qwen Code /review

Comment on lines +1009 to +1015
override get schema(): FunctionDeclaration {
return {
name: this.name,
description: getWebSearchToolDescription(),
parametersJsonSchema: this.parameterSchema,
};
}

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

[Suggestion] The schema getter override is the only mechanism that keeps the tool description's embedded month/year current across a month boundary in a long-running process; no test accesses .schema or verifies its description content. — Failure scenario: a long-running qwen serve or ACP bridge process started in January still reports "The current month is January 2026" in July. The model uses the wrong year in search queries, returning outdated results. The regression is silent because nothing asserts on the schema's description after construction.

Consider adding a test that constructs a WebSearchTool, accesses tool.schema, and asserts schema.description contains the current month/year (using vi.setSystemTime to pin the date).

— qwen3.7-max via Qwen Code /review

@wenshao

wenshao commented Jul 21, 2026

Copy link
Copy Markdown
Collaborator

@qwen-code /takeover

@qwen-code-dev-bot qwen-code-dev-bot added the autofix/takeover Summon the autofix loop to manage this PR (remove to release; needs triage+) label Jul 21, 2026
@qwen-code-dev-bot

Copy link
Copy Markdown
Collaborator

🤝 Takeover engaged: the autofix loop now manages this PR — it will address new review feedback and resolve base conflicts until the label is removed or the round cap is reached. Remove the autofix/takeover label (or comment @qwen-code /takeover stop) to release.

中文说明

🤝 已接管:autofix 循环现在管理此 PR —— 将持续处理新的评审反馈与 base 冲突,直到移除标签或达到轮次上限。移除 autofix/takeover 标签(或评论 @qwen-code /takeover stop)即可释放。

… switch and trim gate env keys

- Add response.cancelled to the terminal-event switch so the
  status === 'cancelled' handler is reachable instead of dead code
- Trim API key env vars in the gate (all three check sites), matching
  the CLI-side whitespace rule from 302cf3b
- Add tests: cancelled with/without prior search, whitespace-only env
  key rejection, schema getter month/year embedding
@qwen-code-dev-bot

Copy link
Copy Markdown
Collaborator

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

Review feedback addressed

Implemented

  1. [Critical] response.cancelled missing from terminal-event switch (web-search.ts:730, @qwen-code-ci-bot / qwen3.7-max)

    • Decision: Fixed. Added case 'response.cancelled': to the switch alongside completed, failed, and incomplete. Without this, a response.cancelled SSE event fell to the default case, finalResponse was never set, and the status === 'cancelled' handler was dead code — the user saw "stream ended without a response" instead of the intended cancellation message and terminalFailure salvage.
    • Change: One line added to the switch in web-search.ts.
  2. [Suggestion] status === 'cancelled' branch has zero test coverage (web-search.ts:820, @qwen-code-ci-bot / qwen3.7-max)

    • Decision: Fixed. Added two tests mirroring the existing response.failed patterns: (a) response.cancelled with no prior search → WEB_SEARCH_BACKEND_FAILED error; (b) response.cancelled after a SEARCH_ITEM → partial result with salvaged URLs.
    • Change: Two new tests in web-search.test.ts.
  3. [Suggestion] Schema getter month/year has no test (web-search.ts:1015, @qwen-code-ci-bot / qwen3.7-max)

    • Decision: Fixed. Added a test that pins vi.setSystemTime(new Date(2026, 6, 21)), constructs a WebSearchTool, accesses .schema, and asserts the description contains "July 2026".
    • Change: One new test in web-search.test.ts.
  4. [Suggestion] Whitespace-only API key passes the gate (@wenshao, issue-level finding 如何自定义密钥文件 .env可能与其他文件冲突 #3)

    • Decision: Fixed. The CLI side was already trimmed in 302cf3b, but the three gate-side env var checks in evaluateWebSearchGate (web-search.ts lines 204, 247, 280) still used bare truthiness. A whitespace-only DASHSCOPE_API_KEY=' ' would pass the gate and fail as a 401 at first use instead of producing a startup notice. All three checks now use ?.trim(), consistent with the CLI-side rule. Added a gate test for the whitespace-only case.
    • Change: Three one-line edits in web-search.ts, one new test in web-search.test.ts.

Declined (with reasons)

  1. [Suggestion] cli/.gitignore generic directory names (cli/.gitignore:7, @wenshao)

    • Reason: The root cause — tests resolving paths relative to the package dir instead of a temp dir — is a test-infrastructure refactor out of scope for this PR. The gitignore entries are a pragmatic mitigation already acknowledged in the comment. Narrowing the patterns or fixing the leaking suites would grow the diff without addressing the web-search feature.
  2. [Suggestion] Converter behavior change deserves changelog visibility (@wenshao, issue-level finding pre-release: fix ci #1)

    • Reason: Documentation/release-notes item, not a code change. The behavior is fail-closed (strictly safer) and the tests document it as deliberate. Worth a line in release notes but out of scope for this review round.
  3. [Suggestion] Settings reference doc not updated (@wenshao, issue-level finding Where is the config saved? #2)

    • Reason: Documentation item. The dedicated docs/developers/tools/web-search.md page is thorough; adding rows to the settings table is a separate docs task.
  4. [Suggestion] Env-declared path can send literal fast/inherit model id (@wenshao, issue-level finding Are you interested in AI Terminal? #4)

    • Reason: Cosmetic — fails loudly on first use with the server's InvalidParameter message. The prefix-stripping fix in 466373d already addressed the authType: prefix case. Gate-time rejection of fast/inherit would add branching for a rare misconfiguration that already produces a clear error.
  5. [Suggestion] Timeout-salvage labeling nit (@wenshao, issue-level finding TypeError in Authentication Selection Interface #5)

    • Reason: Cosmetic. The model-facing partial-result message is accurate; a timeout-specific annotation would help debugging but is not worth the diff growth.
  6. [Suggestion] Drive-by noise in vitest.config.ts and .gitignore (@wenshao, issue-level finding OpenAI API Error: 401 Incorecct API Key provided #6)

    • Reason: Acknowledged as harmless. Both are already committed; reverting would be churn.

Conflict notes

No conflicts (--conflict false).

Verification

  • npm run build — pass
  • npm run typecheck — pass
  • npx eslint packages/core/src/tools/web-search.ts packages/core/src/tools/web-search.test.ts — pass (0 errors)
  • npx vitest run src/tools/web-search.test.ts (packages/core) — 55/55 tests pass
中文说明

已处理的评审反馈

已实施

  1. [Critical] 终端事件 switch 缺少 response.cancelledweb-search.ts:730@qwen-code-ci-bot / qwen3.7-max)

    • 决定: 已修复。在 switch 中添加了 case 'response.cancelled':,与 completedfailedincomplete 并列。修复前,response.cancelled SSE 事件会落入 default 分支,finalResponse 永远不会被赋值,导致 status === 'cancelled' 处理器成为死代码——用户看到的是"stream ended without a response"而非预期的取消消息和 terminalFailure 部分结果回收。
    • 变更:web-search.ts 的 switch 中添加了一行。
  2. [Suggestion] status === 'cancelled' 分支零测试覆盖web-search.ts:820@qwen-code-ci-bot / qwen3.7-max)

    • 决定: 已修复。新增两个测试,与现有 response.failed 测试模式一致:(a) 无先前搜索的 response.cancelledWEB_SEARCH_BACKEND_FAILED 错误;(b) 在 SEARCH_ITEM 之后的 response.cancelled → 包含已回收 URL 的部分结果。
    • 变更:web-search.test.ts 中新增两个测试。
  3. [Suggestion] schema getter 的月份/年份无测试web-search.ts:1015@qwen-code-ci-bot / qwen3.7-max)

    • 决定: 已修复。新增测试:用 vi.setSystemTime(new Date(2026, 6, 21)) 固定时间,构造 WebSearchTool,访问 .schema,断言 description 包含 "July 2026"
    • 变更:web-search.test.ts 中新增一个测试。
  4. [Suggestion] 纯空白 API key 能通过 gate@wenshao,issue 级发现 如何自定义密钥文件 .env可能与其他文件冲突 #3

    • 决定: 已修复。CLI 侧已在 302cf3b 中做了 trim,但 evaluateWebSearchGate 中的三个环境变量检查(web-search.ts 第 204、247、280 行)仍使用裸真值判断。纯空白的 DASHSCOPE_API_KEY=' ' 会通过 gate,在首次使用时返回 401,而非在启动时给出通知。三个检查现在都使用 ?.trim(),与 CLI 侧规则一致。新增了纯空白情况的 gate 测试。
    • 变更: web-search.ts 中三处单行编辑,web-search.test.ts 中新增一个测试。

已拒绝(附理由)

  1. [Suggestion] cli/.gitignore 使用通用目录名cli/.gitignore:7@wenshao

    • 理由: 根本原因——测试相对于包目录而非临时目录解析路径——属于测试基础设施重构,超出本 PR 范围。gitignore 条目是已在评论中确认的务实缓解措施。
  2. [Suggestion] 转换器行为变更需要 changelog 可见性@wenshao,issue 级发现 pre-release: fix ci #1

    • 理由: 文档/发布说明事项,非代码变更。行为是 fail-closed(严格更安全),测试已记录为有意为之。
  3. [Suggestion] 设置参考文档未更新@wenshao,issue 级发现 Where is the config saved? #2

    • 理由: 文档事项。专门的 docs/developers/tools/web-search.md 页面已足够详细;在设置表中添加行是单独的文档任务。
  4. [Suggestion] 环境声明路径可能发送字面 fast/inherit 模型 id@wenshao,issue 级发现 Are you interested in AI Terminal? #4

    • 理由: 外观问题——首次使用时会因服务器的 InvalidParameter 消息而明确失败。466373dff 中的前缀剥离修复已处理了 authType: 前缀情况。
  5. [Suggestion] 超时回收标签细节@wenshao,issue 级发现 TypeError in Authentication Selection Interface #5

    • 理由: 外观问题。面向模型的部分结果消息是准确的;超时特定注释有助于调试,但不值得增加 diff。
  6. [Suggestion] vitest.config.ts 和 .gitignore 中的附带变更@wenshao,issue 级发现 OpenAI API Error: 401 Incorecct API Key provided #6

    • 理由: 已确认无害。两者均已提交;回退只会增加无意义的变更。

冲突说明

无冲突(--conflict false)。

验证结果

  • npm run build — 通过
  • npm run typecheck — 通过
  • npx eslint packages/core/src/tools/web-search.ts packages/core/src/tools/web-search.test.ts — 通过(0 错误)
  • npx vitest run src/tools/web-search.test.ts(packages/core)— 55/55 测试通过

Base-conflict check: no conflict with main.

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


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

@qwen-code-dev-bot

Copy link
Copy Markdown
Collaborator

🤖 Reviewed the latest feedback — no changes needed. Why, point by point:

No action taken — there is no review feedback to address.

The feedback file contains no reviews, no inline comments, and no issue-level
comments. All listed CI checks (review-config, authorize,
ack-review-request, delay-automatic-review, resolve-pr, review-pr)
show a status of CANCELLED, not failed — these were cancelled workflow
runs, not genuine failures requiring a code fix.

The PR branch (feat/web-search-responses-api) remains unchanged at commit
51db9ed9d.

中文说明

未采取任何操作——没有需要处理的审查反馈。

反馈文件中没有审查意见、没有行内评论、也没有 Issue 级别的评论。所有列出的 CI 检查(review-configauthorizeack-review-requestdelay-automatic-reviewresolve-prreview-pr)状态均为 CANCELLED(已取消),而非失败——这些是被取消的工作流运行,并非需要修复代码的真实失败。

PR 分支(feat/web-search-responses-api)保持不变,仍位于提交 51db9ed9d

Base-conflict check: no conflict with main.


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

@wenshao

wenshao commented Jul 21, 2026

Copy link
Copy Markdown
Collaborator

Code Review — feat(core): add opt-in built-in web_search backed by the DashScope Responses API

Reviewed the full diff (27 files, +2635/-27). Verified the load-bearing integration points against the PR head (AvailableModel.registryBaseUrl, getResolvedModelConfig, isTruthy, delay, resolveRequestTimeout, the four warning-surfacing paths, and the AbortSignal.any Node floor). Overall this is a high-quality, well-tested PR — no blocking correctness issues found. Notes below are mostly minor / awareness items.

Overview

Adds an opt-in web_search tool that issues a self-contained search side request to a DashScope Responses API model (web_search + optional web_extractor server-side tools) and returns narrated findings plus tiered source URLs. Gated behind tools.webSearch.enabled + a resolvable tools.webSearch.model; fully env-configurable (ENABLE_WEB_SEARCH, WEB_SEARCH_MODEL, WEB_SEARCH_BASE_URL, WEB_SEARCH_API_KEY). Misconfiguration fails loudly with a one-time startup notice wired across all four surfaces (interactive, headless, stream-json, ACP). Off by default; nothing changes for existing users.

What's done well

  • Opt-in and fails closed. Two explicit settings required, disabled in --safe-mode/--bare, re-checks the gate at execute time (not just registration) so a key set only at startup can't leave a dead tool registered.
  • Defense-in-depth against prompt injection. Untrusted-content framing at three layers — the side-request instructions, a [Safety: …] footer on every result (including errors/empty), and the tool description — so web_extractor opening an attacker page can't easily turn into directives.
  • HTTPS-only key-bearing side channel. classifyDashScopeBaseUrl rejects plaintext HTTP with a protocol-specific notice, and restricts to the DashScope regional hosts + MaaS/internal Alibaba gateways. Good separation of "wrong provider" vs "insecure scheme" in the diagnostics.
  • Careful result shaping. Section-aware truncation shrinks the narrated answer first so citation URLs and the safety footer survive; sliceAtCharBoundary avoids bisecting a surrogate pair; maxOutputChars override reserves envelope headroom so the scheduler's generic truncator doesn't slice the footers. All three are explicitly tested.
  • Robust stream handling. Salvages already-billed partial results on transport error / in-stream event:error / response.failed / cancelled / mid-stream reset — but only when a real search executed (unaudited narration is never salvaged). The no-search invariant + single jittered retry is a sensible response to DashScope's silent throttling.
  • Clean, complete integration. Permission aliases, CORE_TOOLS, BOUNDARY_TOOLS, COMPACTABLE_TOOLS, tool-names/error enums, and the Claude-converter mapping are all updated consistently. Test coverage (~1028 lines) is thorough across the gate matrix, error mapping, truncation, and salvage paths.

Suggestions / awareness items (non-blocking)

  • openedUrls is uncapped while candidates are capped at MAX_CANDIDATE_URLS (25). The "shrink the answer first, URLs are sacred" truncation invariant only holds while the URL sections are bounded. If web_extractor opens an unusually large number of pages, the opened-pages section alone can overflow MAX_RESULT_SIZE_CHARS, and the backstop sliceAtCharBoundary(body, …) then blindly bisects the URL list. Realistically the extractor opens only a handful of pages, so severity is low — but a symmetric cap on openedUrls would make the invariant unconditional.

  • US-region host is now recognized by the main provider detector, not just web search. Refactoring DASHSCOPE_REGIONAL_HOSTS and adding dashscope-us.aliyuncs.com changes DashScopeOpenAICompatibleProvider.isDashScopeProvider() for everyone using that endpoint, not only the search side channel. The PR calls this out and it's desirable, but it's a behavior change on an existing hot path — worth an explicit reviewer nod.

  • WebSearch: 'None' → 'WebSearch' + subagent fail-closed is a subtle behavior change for converted Claude agents. A converted agent that lists WebSearch now carries a live WebSearch entry; if the built-in tool isn't enabled, that entry stays as a dead, restrictive name and an agent whose only tool is WebSearch runs tool-less rather than inheriting shell/write. This is the correct/safe direction and is tested, but it's a change in outcome for existing agents — good that it's documented in the test comments.

  • Layered retry budget. The OpenAI client is created with maxRetries: 1, on top of the 2-attempt no-search loop and the SDK's own transient retries — worst-case request count exceeds "two attempts." It's all bounded by the single shared 60s AbortSignal.timeout, so not a correctness problem, just worth a one-line note near maxAttempts.

  • Progress Found N sources fires for failed web_search_call items too (the handler checks item.type but not item.status), so a failed search can momentarily display a source count that the result then discards. Cosmetic (progress chrome only).

  • packages/cli/.gitignore band-aid. Ignoring /custom/, /first/, /from-env/, /workspace/ papers over CLI unit tests that resolve debug-log dirs relative to the package dir instead of a temp dir. Out of scope here, but the underlying test-hygiene issue is worth a follow-up rather than a permanent ignore.

  • Trivial: the vscode-ide-companion/vitest.config.ts change is a pure prettier reflow unrelated to the feature — harmless diff noise.

Risk summary

The primary risk is the one the PR already names: a new outbound side channel billed to the user's own DashScope key, with web_extractor on by default (separately billed). The per-call confirmation persists as a tool-level "always allow WebSearch" rule (queries are free text, so no narrower scope), meaning one approval opens all future queries; in auto-approve/YOLO modes spend is bounded only by model behavior and DashScope account limits. This is disclosed and consistent with the other web tools, so it's an accepted tradeoff rather than a defect — just the thing to keep front-of-mind for the default webExtractor: true.

@qwen-code-dev-bot

Copy link
Copy Markdown
Collaborator

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

Review feedback addressed

Commit: fix(core): cap opened URLs, suppress failed-item progress, note retry budget (#7215)

Feedback points and decisions

# Feedback Type Decision
1 openedUrls is uncapped while candidates are capped at 25 Suggestion ✅ Implemented
2 US-region host recognized by main provider detector Awareness Declined — awareness item, no code change needed
3 WebSearch: 'None' → 'WebSearch' behavior change for Claude agents Awareness Declined — already tested and documented in test comments
4 Layered retry budget (SDK maxRetries + maxAttempts) Suggestion ✅ Implemented
5 Progress Found N sources fires for failed web_search_call items Suggestion ✅ Implemented
6 packages/cli/.gitignore band-aid for test-hygiene Awareness Declined — reviewer explicitly marked out of scope; follow-up issue
7 vscode-ide-companion/vitest.config.ts prettier reflow Nit Declined — harmless diff noise; reverting adds more noise

Changes made

  1. Cap opened URLs symmetrically (web-search.ts): Added MAX_OPENED_URLS = 25 and applied it in formatLlmContent so the opened-evidence section cannot overflow MAX_RESULT_SIZE_CHARS regardless of how many pages web_extractor opens. An omission note (N more opened page(s) omitted.) is appended when the cap applies, matching the existing candidate-URL pattern. The full opened set is still used for the candidate filter so capped URLs don't leak into the weaker-evidence tier.

  2. Retry budget comment (web-search.ts): Added a 3-line comment above maxAttempts documenting that the SDK's maxRetries: 1 layers on top of the 2-attempt no-search loop, and that the shared 60s AbortSignal.timeout bounds total wall time.

  3. Suppress progress for failed search calls (web-search.ts): The response.output_item.done handler now checks event.item.status !== 'failed' before emitting Found N sources, so a failed search call no longer momentarily displays a source count that the result will discard.

  4. Tests (web-search.test.ts): Added two focused tests — caps opened URLs and notes the omission (30 opened URLs → 25 shown + omission note) and does not report sources for a failed web_search_call (failed item's sources produce no progress update).

Verification

  • npm run build
  • npx tsc --noEmit (core) ✅
  • npx eslint (both changed files) ✅
  • npx vitest run src/tools/web-search.test.ts — 57 tests passed ✅

Conflict

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

中文说明

已处理的评审反馈

提交:fix(core): cap opened URLs, suppress failed-item progress, note retry budget (#7215)

反馈要点及决定

# 反馈内容 类型 决定
1 openedUrls 未设上限,而候选 URL 已限制为 25 个 建议 ✅ 已实现
2 美国区域主机被主 provider 检测器识别 知会项 未采纳 — 仅为知会项,无需代码变更
3 WebSearch: 'None' → 'WebSearch' 对转换后的 Claude agent 的行为变更 知会项 未采纳 — 已有测试覆盖并在测试注释中记录
4 分层重试预算(SDK maxRetries + maxAttempts) 建议 ✅ 已实现
5 进度提示 Found N sources 对失败的 web_search_call 项也会触发 建议 ✅ 已实现
6 packages/cli/.gitignore 对测试卫生问题的临时补丁 知会项 未采纳 — 评审者明确标注为超出范围;建议后续 issue 跟进
7 vscode-ide-companion/vitest.config.ts 的 prettier 重排 小问题 未采纳 — 无害的 diff 噪音;回退反而增加更多噪音

所做变更

  1. 对称限制已打开 URL 数量web-search.ts):新增 MAX_OPENED_URLS = 25 并在 formatLlmContent 中应用,使已打开证据部分不会因 web_extractor 打开过多页面而溢出 MAX_RESULT_SIZE_CHARS。当触发上限时追加省略提示(N more opened page(s) omitted.),与现有候选 URL 的模式一致。完整的已打开集合仍用于候选过滤器,确保被截断的 URL 不会泄漏到较弱证据层。

  2. 重试预算注释web-search.ts):在 maxAttempts 上方添加 3 行注释,说明 SDK 的 maxRetries: 1 会叠加在 2 次无搜索重试循环之上,而共享的 60 秒 AbortSignal.timeout 限制了总耗时。

  3. 抑制失败搜索调用的进度提示web-search.ts):response.output_item.done 处理器现在在发出 Found N sources 之前检查 event.item.status !== 'failed',失败的搜索调用不再短暂显示一个结果将会丢弃的来源计数。

  4. 测试web-search.test.ts):新增两个聚焦测试 — caps opened URLs and notes the omission(30 个已打开 URL → 显示 25 个 + 省略提示)和 does not report sources for a failed web_search_call(失败项的来源不产生进度更新)。

验证结果

  • npm run build
  • npx tsc --noEmit(core 包)✅
  • npx eslint(两个变更文件)✅
  • npx vitest run src/tools/web-search.test.ts — 57 个测试全部通过 ✅

冲突

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

Base-conflict check: no conflict with main.

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


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

@wenshao

wenshao commented Jul 21, 2026

Copy link
Copy Markdown
Collaborator

Code review — opt-in built-in web_search (DashScope Responses API)

Reviewed the full diff (27 files, +2717/−27), the new packages/core/src/tools/web-search.ts implementation, and cross-checked the gate against the production AvailableModel / ModelsConfig / resolveModelId types (not just the test mocks). Overall this is a strong, defensively-written, well-tested PR. It is opt-in, fails closed, and the security posture is careful. Findings below are minor; none are blocking.

Overview

  • Adds a built-in web_search tool backed by DashScope's Responses API server-side search (web_search + optional web_extractor), reusing the user's existing Bailian/DashScope key.
  • Opt-in and off by default: requires tools.webSearch.enabled and a tools.webSearch.model that resolves to a DashScope-compatible modelProviders entry, or an env-only backend (WEB_SEARCH_BASE_URL + key). A failed gate surfaces a one-time startup notice instead of a silently missing tool, wired through interactive UI, headless, stream-json, and ACP (acpAgent.ts now flushes getWarnings() to stderr).
  • Guardrails: per-call confirmation (getDefaultPermission()ask), two-layer untrusted-content framing, result-size caps, and a "no executed search ⇒ don't surface narration as evidence" invariant.

What I verified (holds against real types, not only mocks)

  • Gate reads fields that exist in production. evaluateWebSearchGate uses m.id / m.authType / m.baseUrl / m.envKey / m.registryBaseUrl — all present on AvailableModel (models/types.ts:118). getResolvedModelConfigModelsConfig.getResolvedModel exists (modelsConfig.ts:339). So the gate isn't just passing because of mock shapes.
  • Key never leaves DashScope. The bearer key is read from env and handed to an OpenAI client whose baseURL has already been validated as an https DashScope-family host (classifyDashScopeBaseUrl rejects insecure/unknown-host). Good — no exfiltration path via config.
  • Constructor positional args are correct against DeclarativeTool (tools.ts:214): …, isOutputMarkdown, canUpdateOutput, shouldDefer=true, alwaysLoad=false, searchHint.
  • getDefaultPermission(): 'ask' avoids the base-allow silent-no-confirmation trap that has bitten other new core tools.
  • AbortSignal.any is fine — engines are node>=22 and it's already used across the repo.
  • Bare-selector + OAuth main model resolves to the OAuth entry and is rejected with an actionable notice (use "openai:<model-id>"), matching resolveAuthTypeForBareModel behavior. Deterministic and guided, not a silent failure.
  • Surrogate-safe truncation, store:false, section-aware shrink (answer first, URL evidence preserved), and the salvage-only-if-a-search-ran invariant all check out and are covered by tests.

Observations / suggestions (minor)

  1. packages/cli/.gitignore treats a symptom. Ignoring /custom/ /first/ /from-env/ /workspace/ hides debug-log dirs that settings/config test suites leak by resolving paths relative to the package dir instead of a temp dir. (These exact dirs show up untracked in a fresh working tree, so the leak is real.) The root cause — tests writing under the package directory — is unaddressed and can leak new dir names or cross-pollinate suites later. Consider a follow-up that points those suites at a temp dir; the .gitignore is fine as a stop-gap.
  2. Env-only baseUrl/apiKeyEnv aren't in the settings schema. By design they're env-only, but a user who writes tools.webSearch.baseUrl in settings.json gets it silently ignored (resolveWebSearchSettings only reads WEB_SEARCH_BASE_URL), and the schema (settingsSchema.ts / settings.schema.json) documents only enabled/model/webExtractor. A one-line note on the webSearch object description ("baseUrl/API key are env-only: WEB_SEARCH_BASE_URL / WEB_SEARCH_API_KEY") would prevent that surprise.
  3. No-search retry doubles model inference on the user's key. When the backend returns no web_search_call (possible throttling), the whole Responses request is re-issued — a second side-model inference (no extra web_search billing, but extra tokens). It's bounded by the 60s budget and documented as a tradeoff; worth being explicit that in yolo/auto-approve a persistently throttled backend means every web_search call pays ~2× inference.
  4. Scope creep (nit): packages/vscode-ide-companion/vitest.config.ts is a pure Prettier reflow of the include array, unrelated to web search — just diff noise.
  5. Tiny robustness edge: the status === 'incomplete' branch returns before the no-results check, so an incomplete response with an executed-but-empty search (0 URLs, no answer) yields a "Partial result" with an essentially empty body. Harmless, but you could fall through to NO_RESULTS when there's nothing to show.

Verdict

Solid, mergeable. Strong test coverage (defensive stream/error/truncation cases), correct opt-in gating, and a careful prompt-injection posture. The items above are polish/follow-ups, not blockers. Main things to weigh at the maintainer level are the ones the PR already calls out: a new outbound side channel billed to the user's key, and Windows/Linux only exercised via CI.

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

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Reviewed — no blockers. Suggestions are inline.

— qwen3.7-max via Qwen Code /review

Comment thread packages/core/src/tools/web-search.ts Outdated
@qwen-code-dev-bot

Copy link
Copy Markdown
Collaborator

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

Review feedback addressed

Inline comments

  • [rc:3620565229] packages/core/src/tools/web-search.ts:217Implemented. The WEB_SEARCH_BASE_URL path now rejects an unresolved selector with an explicit error ("could not be resolved") instead of silently falling back to the raw selector string as the model ID. This mirrors the identical check on the modelProviders path 7 lines later. Added a focused test ('rejects an env-declared backend when the selector cannot be resolved') using model: 'fast' with no fast model configured.

Issue-level observations (@wenshao)

  1. .gitignore treats a symptom — Declined (follow-up). The .gitignore is an intentional stop-gap; the root cause (tests resolving paths relative to the package dir instead of a temp dir) is a separate cleanup that would touch multiple test suites and is out of scope for this PR.
  2. Env-only baseUrl/apiKeyEnv not in settings schemaImplemented. Added a note to the webSearch object description in settingsSchema.ts: "Note: baseUrl and API key are env-only (WEB_SEARCH_BASE_URL / WEB_SEARCH_API_KEY) and cannot be set in settings.json." Regenerated settings.schema.json.
  3. No-search retry doubles model inference — Declined (already documented). The PR description and code comments already document this tradeoff and the 60s budget bound.
  4. vitest.config.ts scope creep — Declined (Prettier-enforced). Attempted to revert, but the pre-commit Prettier hook reformats the include array to the single-line form. The diff is Prettier compliance, not a manual change.
  5. status === 'incomplete' with empty searchImplemented. The incomplete-response branch now only returns a partial result when there is actual content (URLs or answer text). An incomplete response with nothing to show falls through to the NO_RESULTS error, avoiding a useless "Partial result" with an empty body.

Verification

  • npm run build
  • npm run typecheck
  • npm run lint
  • npx vitest run src/tools/web-search.test.ts (packages/core) — 58 tests passed ✅
  • npx vitest run src/config/config.test.ts (packages/cli) — 282 passed, 5 failed (pre-existing sandbox-image failures, confirmed identical on the pre-change HEAD) ✅
  • npm run generate:settings-schema — regenerated and staged ✅
中文说明

已处理的评审反馈

行内评论

  • [rc:3620565229] packages/core/src/tools/web-search.ts:217已实现。 WEB_SEARCH_BASE_URL 路径现在会对无法解析的模型选择器返回明确错误("could not be resolved"),而不是将原始选择器字符串作为模型 ID 静默回退。这与下方 modelProviders 路径上的相同检查保持一致。新增了针对性测试('rejects an env-declared backend when the selector cannot be resolved'),使用 model: 'fast' 且未配置 fast 模型的场景。

Issue 级别观察(@wenshao

  1. .gitignore 治标不治本 — 拒绝(后续跟进)。.gitignore 是有意的临时方案;根本原因(测试相对于包目录而非临时目录解析路径)是单独的清理工作,涉及多个测试套件,不在本 PR 范围内。
  2. 仅环境变量的 baseUrl/apiKeyEnv 未在 settings schema 中说明已实现。settingsSchema.tswebSearch 对象描述中添加了说明:"Note: baseUrl and API key are env-only (WEB_SEARCH_BASE_URL / WEB_SEARCH_API_KEY) and cannot be set in settings.json."。已重新生成 settings.schema.json
  3. 无搜索结果时重试会加倍模型推理 — 拒绝(已有文档)。PR 描述和代码注释已经记录了这一权衡及 60 秒预算限制。
  4. vitest.config.ts 范围蔓延 — 拒绝(Prettier 强制)。尝试回退,但 pre-commit 的 Prettier 钩子会将 include 数组重新格式化为单行形式。该差异是 Prettier 合规性,非手动更改。
  5. status === 'incomplete' 但搜索结果为空已实现。 incomplete 响应分支现在仅在有实际内容(URL 或回答文本)时返回部分结果。没有可展示内容的 incomplete 响应会落入 NO_RESULTS 错误,避免返回空内容的"部分结果"。

验证

  • npm run build
  • npm run typecheck
  • npm run lint
  • npx vitest run src/tools/web-search.test.ts(packages/core)— 58 个测试通过 ✅
  • npx vitest run src/config/config.test.ts(packages/cli)— 282 通过,5 失败(预先存在的 sandbox-image 失败,已确认在更改前的 HEAD 上相同)✅
  • npm run generate:settings-schema — 已重新生成并暂存 ✅

Base-conflict check: no conflict with main.

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


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

@tanzhenxin
tanzhenxin enabled auto-merge July 21, 2026 09:36

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

@qwen-code-ci-bot

Copy link
Copy Markdown
Collaborator

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

@tanzhenxin
tanzhenxin added this pull request to the merge queue Jul 21, 2026
Merged via the queue into main with commit 443b81e Jul 21, 2026
56 of 59 checks passed
@qwen-code-ci-bot

Copy link
Copy Markdown
Collaborator

Released in v0.20.1.

@yiliang114

Copy link
Copy Markdown
Collaborator

⚠️ Failed to process this request. Please re-mention the bot to retry.

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

Labels

autofix/takeover Summon the autofix loop to manage this PR (remove to release; needs triage+)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants