Skip to content

fix: /btw 隔离 fork 代理对齐基准 Claude Code(runSideQuestion 语义) - #447

Merged
liuqihonggit merged 3 commits into
mainfrom
w2
Oct 21, 2026
Merged

liuqihonggit merged 3 commits into
mainfrom
w2

Conversation

@liuqihonggit

Copy link
Copy Markdown
Owner

Summary

  • /btw 从 ChatService 共享管道改为隔离轻量 fork 代理(照抄基准 runForkedAgent 语义):AgentBase + InitialMessageList(主历史副本 + system-reminder 包裹问题)+ MaxIterations=1 + ContextManager 不注入(天然隔离不写回主上下文)
  • 修复背景:共享管道受主对话会话态影响偶发空响应(CLI/探针实证链路健康,共享态为架构 gap)
  • Host 探针保留 WaitTurnCompleteAsync helper(多回合场景诊断能力)
  • 验证:CLI 真机 2510 字符完整回答 + composition.tests 278 全绿(3 新测试:fork 聚合/reminder 包裹/空参用法)+ Host selftest 通过

@liuqihonggit
liuqihonggit enabled auto-merge (squash) October 21, 2026 19:47
liuqihonggit added a commit that referenced this pull request Oct 21, 2026
….SendMessageAsync 被调(旧共享管道语义),fork 改造后走 IQueryEngine(对齐基准 runForkedAgent)不再调 ChatService——改断言 fork 调用计数+prompt 捕获(CaptureQueryEngine 假体),异常路径用例改 QueryEngine 抛异常仍 Continue;非回归是预期行为变化(CI 日志实证唯一失败项)
…btw 空响应复现调查实证——CLI 同命令链正常(209字符)+TUI 探针先主对话再 /btw 也正常(513字符),链路无确定性 bug;疑似偶发流式取消(TASK043 白名单已知)或主对话回合边界态污染,暂不改引擎,基准差异(fork 隔离代理 vs 共享管道)已向用户汇报待决策
…义——AgentBase+InitialMessageList(主历史副本+system-reminder包裹问题)+MaxIterations=1(对齐maxTurns:1)+ContextManager不注入(天然隔离不写回主上下文),替代原 ChatService 共享管道路径(受主对话会话态影响偶发空响应的架构gap);system-reminder 模板照抄基准(隔离代理身份/无工具约束/单次回复);CLI 真机实证 2510 字符完整回答+composition 278 全绿
….SendMessageAsync 被调(旧共享管道语义),fork 改造后走 IQueryEngine(对齐基准 runForkedAgent)不再调 ChatService——改断言 fork 调用计数+prompt 捕获(CaptureQueryEngine 假体),异常路径用例改 QueryEngine 抛异常仍 Continue;非回归是预期行为变化(CI 日志实证唯一失败项)
@liuqihonggit
liuqihonggit merged commit eee620f into main Oct 21, 2026
28 checks passed
@liuqihonggit
liuqihonggit deleted the w2 branch October 21, 2026 20:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant