<!-- rcagg:plugin-mode --> 同一根本原因(**plugin-mode**)的 open issue 汇聚,由根因归类板自动维护(10min 刷新,勿手编)。 ## Members (3) - 镜像 #5868(GitHub #5866) — Plugin-lane array-form folds end with z… 根因: plugin-mode array-form fold: after the first post-fold turn the block's full su… - 镜像 #7213(GitHub #7213) — MCP initialization exits on non-string … 根因: the MCP initialize handler (src/mcp.ts) calls .trim() on the optional _meta.ui.… - 镜像 #7221(GitHub #7221) — [Drive-by] MCP shim: handler throwing a… 根因: mcpMain stdin loop (src/mcp.ts) does void handleMessage(...) with no .catch — a… ## Task 对本批 issue 做**一个**根本性修复 PR: - PR 描述里用 `Fixes #...` 逐个列出上面每一个 GitHub issue 号(没有 GitHub 号的写镜像号) - 若某个 issue 已有自己的 PR 且方向一致,cherry-pick 其 commit 并保留原作者署名(`-x`);由你判断是否值得 - PR 必须打标签:`root-cause`(固定,来自根因汇聚单)+ 按本 PR 的 diff 独立判断的类别和优先级标签(最高优先用 p1),不要抄任何来源 issue - PR 描述末尾必须加标记行 `<!-- rcagg:plugin-mode -->`(汇聚板靠它自动识别根因 PR 补标签/插队;即使修复拆成多个子单各自提 PR,每个 PR 都要带这行) - 回帖本线程必须是**最终裁决**,结尾固定用中文 8问 清单逐行回答:1 这是啥问题(大白话+触发条件)2 根本原因是啥(组件+机制)3 如何修复(已做的修复或建议修法)4 能否合并/关闭(结论+依据:测试/CI/回归分析)5 URL(相关线程/PR 链接)6 影响面(哪些代码路径/用户)7 测试(什么钉住它)8 风险(还可能坏在哪)。答不实的行写「待验证:原因」,不许漏行
Activity
[-][Root Cause] plugin-mode (2 items)[/-][+][Root Cause] plugin-mode (4 items)[/+]ranxianglei commentedon Nov 18, 2026
[bot] 🏷 根因聚合单 #7229(plugin-mode,2 成员)已完成统一修复 PR:#7231(已开、已打标签
root-cause+bug+p1,PR 描述带Fixes #5866/Fixes #7218+<!-- rcagg:plugin-mode -->标记)。修复内容
#5866(plugin-lane array-form fold 首轮后全量摘要归零)
hideConsumedCompressCalls把重发的 compress 调用summary截成 200 字前缀(stub),但 hoststripKernelSummaries只查 range-pair 存在性(不查调用是否仍带全文),于是把 in-place anchor 也剥了 → 线上零全量载体。stripKernelSummaries改为完整性感知——仅当某个匹配调用的summary与 anchor body 逐字相等时才剥 anchor;stub/漂移/缺失时保留 anchor 作为唯一全量载体。buildCarrierIndex新增ensureRangeSummaries(单次 parse 路径跟踪 per-range summary 文本);extractAnchorBody提取 anchor 的 body(首行 topic 之后)。tests/issue5866-anchor-integrity.test.ts(8 个新测试,钉住 fresh-call 剥 / stubbed-call 留 / content-array / 空 summary / trim 归一 / 混合 fresh+stub / anchor 缺失 / proxy-mode 不受影响)。既有 carrier-index 测试更新(调用 args 补上匹配 summary 字段)。#7218(Claude 原生 MCP watchdog 接受 HTTP-200 HTML /
{"ok":false})-x保留署名)。ok===true(单次 2000ms 超时);recovery 链(ensure→repin→follow)、阈值(3)、间隔(30s)不变。tests/claude-watchdog-health-payload.test.ts(15 测试,base 上 11 红)。行为变更披露
res.ok(HTTP 200)→ healthy 改为解码 JSONok===true→ healthy。这是预期修复(防止 proxy 返回 HTML 错误页或{"ok":false}时 watchdog 跳过 recovery)。8问
{"ok":false}当健康,跳过 recovery。触发条件:plugin-mode 会话折叠后多轮对话;Claude 客户端 proxy 返回非 JSON 健康响应。src/server.ts:2801 stripKernelSummaries只查 range-pair 存在性,不查调用是否仍带全文(kernelhideConsumedCompressCallsstub 后调用不再带全文,但 anchor 被剥了);Claude watchdog accepts HTTP-200 HTML or not-ok health replies and skips recovery #7218 —src/claude-mcp-entry.ts的probeProxyHealth只看res.ok(HTTP 状态码),不校验 payload 内容。ok===true)。tests/issue5866-anchor-integrity.test.ts(8 测试钉住 fresh/stub/content-array/空 summary/trim/混合/anchor 缺失/proxy-mode)+tests/issue2042-carrier-index.test.ts(16 测试,含复杂度探针)+tests/claude-watchdog-health-payload.test.ts(15 测试)。extractAnchorBody的「首行之后」假设可能失配(需同步更新);若调用 summary 被合法改写(非 stub),anchor 会保留(多一个载体,不是丢数据,安全方向)。Claude watchdog accepts HTTP-200 HTML or not-ok health replies and skips recovery #7218 — 若 proxy 健康端点未来返回非 JSON 但语义健康的响应(如纯文本 "OK"),watchdog 会误判为不健康并触发 recovery(过度 recovery,不是漏 recovery,安全方向)。ranxianglei commentedon Nov 18, 2026
[bot] 🏷 CI 更新:PR #7231 已 rebase 到当前 master(之前 behind 29 commits),全部 11 个 test shard 通过,所有 static gates 通过(kernel-guard / version-guard / config-surface-guard / architecture-docs / lock-sync / build-artifact 等)。CI 全绿,可合并。
[-][Root Cause] plugin-mode (4 items)[/-][+][Root Cause] plugin-mode (1 items)[/+][-][Root Cause] plugin-mode (1 items)[/-][+][Root Cause] plugin-mode (4 items)[/+][-][Root Cause] plugin-mode (4 items)[/-][+][Root Cause] plugin-mode (3 items)[/+]