Repository navigation
Conversation
…ack final card The stdout-runner CLIs (mira/mir/dsh) address their daemon fallback card back to the dispatching bot so orchestration resumes. In a topic opened by `botmux dispatch` the brief already asks the worker to `botmux report --dispatch-root`, which reaches the dispatcher's own session; the extra @ only starts a fresh dispatcher session in the sub-topic without the dispatch context. Skip it when the topic carries a verified report binding. Fixes deepcoldy#1887
|
你好,这个 PR 的自动评审群已建,麻烦点击链接加入群聊、查看评审意见并跟进后续修改: 另外你暂时不在自动拉群名单里,也可以把 GitHub 账号和飞书信息补进名单文档,补好后后续评审会自动拉你进群:https://bytedance.larkoffice.com/wiki/WJ1nwWbtxi89erkNGNbcgkt9nUe (本条为自动流程发出的提示消息) |
自动评审初步意见(最终以维护者复审为准)改动方向正确:mira/mir/dsh 两条 footer 分支复用 但有一个 issue 里明确报告、本 PR 未覆盖的路径: P2:zero-injection 的 structured-bridge / transcript CLI(issue 里点名的 antigravity 就在此类)仍会 @ 派单 bot#1887 原文除 dsh 外还写了「antigravity 也观察到同样现象」。antigravity / cursor 在
我在本 PR 树上加了一条临时探针测试(antigravity ds + 建议修法(与 runner 分支同一口径):在 zero-prompt 选择 initiator 时,若 P3(不阻断)
已验证
|
复审补充(双审已收敛:建议修改)维护者复审已完成,与初审结论一致(0 P1 / 1 P2),并对 P2 补充了一个我初审时只点到、未展开的硬后果,请一并处理: P2 补充:只抑制 @ 会让 zero-prompt CLI 的结果彻底静默,修法必须同时处理回报通道
而 antigravity/cursor 这类 zero-prompt CLI:
所以如果只按初审建议在 initiator 路径抑制 @,结果会变成:子话题里一张没人被 @ 的卡片 + 主编排什么都收不到。修法需要二选一或组合:
对修法锚定信号的说明复审建议过「在 registry entry 上落 P3 勘误
即:本次需要作者处理的实质项只有 P2 一个——覆盖 zero-prompt initiator 路径,并保证结果回报通道不被一起掐断;其余为非阻断测试/性能建议。 |
…d of @-ing the dispatcher Review follow-up: zero-injection CLIs pick the recipient from the turn initiator, not the runner branch, so they still @-ed the dispatching bot. When the initiator is a bot and the topic carries a verified report binding, drop that @ and let the automatic dispatch report (previously suppressed for bot initiators) return the result. Failed turns fall back to the bot admin. Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
感谢两轮评审。P2 已按推荐方案(选项 1)改完,提交 P2:zero-prompt initiator 路径
新增用例(与具体 CLI 无关的断言,用 antigravity 形状的 zero-prompt 会话)
验证
P3①(registry 按 rootMessageId 做 memo)这次没有做。现在每张 final 卡片最多读一次,按复审说的影响面不大,想留到后续单独处理;如果希望并进这个 PR,告诉我就补。 — Claude |
|
你好,这个 PR 的自动评审群已建,麻烦点击链接加入群聊、查看评审意见并跟进后续修改: 另外你暂时不在自动拉群名单里,也可以把 GitHub 账号和飞书信息补进名单文档,补好后后续评审会自动拉你进群:https://bytedance.larkoffice.com/wiki/WJ1nwWbtxi89erkNGNbcgkt9nUe (本条为自动流程发出的提示消息) |
|
🚀 Released in v3.47.0 |
deepcoldy#2001 只在 daemon 代发的兜底/零注入卡片上按验签绑定去掉对派单 bot 的 @。 派单话题里执行方模型自己发的最终回复卡走的是 botmux send,页脚仍会把派单 bot 作为 --mention-back / 显式 --mention 的收件人 @ 出去,这个 @ 会在同一 子话题里另起一个没有派单上下文的会话(deepcoldy#1887)。 现在 botmux send 在动手发消息前先解一次本话题的 report 绑定: - 绑定验签通过,且收件人 open_id 解析到绑定里的 targetLarkAppId → 去掉该 @, 并在 stderr 说明原因; - 绑定缺失、损坏、验签不过、或 open_id 解析不出来 → 行为与改动前逐字一致。 人发送者、其它 bot、非派单话题的判断都不受影响:只过滤「绑定证明的派单 bot 本 app 视角 open_id」。 Fixes deepcoldy#1887
botmux dispatch开出的子话题里,stdout-runner 类 CLI(mira / mir / dsh)由 daemon 代发的最终回复卡片,页脚会 @ 派单的主 bot(daemonCardFooterRecipientOpenId为这几种 CLI 把收件人设成creatorOpenId,/repo预置的派单则是 bot owner)。而 dispatch 追加给执行 bot 的「完成回报」协议要求用botmux report --dispatch-root把结果交回主编排会话,并明确说不要在子话题里 @ 主 bot:主 bot 的会话不在这个话题,这个 @ 只会在子话题里另起一个没有派单上下文的新会话。本次改动:子话题根消息在
orchestrate-dispatch.json里有验签通过的 report 绑定时,上面两条分支都不再把派单 bot 作为页脚收件人。判定复用resolveVerifiedDispatchReportTarget,和report --dispatch-root走同一份绑定;绑定不存在、验签失败或读取出错时维持原行为。代发卡片的失败兜底照旧:没有真人收件人时仍 @ bot 管理员。其它 CLI、zero-prompt 路径、botmux send的页脚逻辑都不变。验证
test/bridge-final-output-retry.test.ts的「in a topic opened by botmux dispatch」一组:mira / mir / dsh 不再 @ 派单 bot;/repo预置的 bot owner 同样不 @;失败轮次仍 @ 管理员;绑定验签不过时仍 @ 派单 bot。去掉源码改动时前 5 条失败。bunx vitest run test/bridge-final-output-retry.test.ts:194/194 通过bunx vitest run test/zero-prompt-terminal.test.ts test/zero-prompt-relay-integration.test.ts test/dispatch-report-binding.test.ts test/durable-lark-final-output.test.ts test/turn-terminal-receipt-card.test.ts:26/26 通过bunx tsc --noEmit -p tsconfig.json:通过Fixes #1887
— Claude
🤖 Generated with Claude Code