Skip to content

fix(hub): control=interrupt 回执诚实化(去掉假的 result_from:node_reply) - #3809

Merged
vansin merged 1 commit into
mainfrom
fix/control-interrupt-honest-result
Nov 23, 2026
Merged

vansin merged 1 commit into
mainfrom
fix/control-interrupt-honest-result

Conversation

@vansin

@vansin vansin commented Nov 23, 2026

Copy link
Copy Markdown
Contributor

Hub send_message(control="interrupt") 的回执诚实化(负责人选 A)。

问题(真机复现)

server/src/tools.ts:2596 把 accepted:true, result_from:"node_reply" 写死:control 行刚写进 inbox 就返回,
没等待、没读任何节点回执。真机上节点在回合结束后才取到这行,Hub 却已宣称 node_reply,调用方会以为「已停下」。
全仓 result_from 仅此一处 ⇒ 改名无其它读者(已 grep server / agent-network / agent-node / app / dashboard)。

改动

- 返回 { control:"interrupt", accepted:true, confirmation:"pending" }(去掉 result_from)
- 语义:accepted 只表示「已排入对方队列」;等节点写回 outcome 后再回 interrupted(后续 PR,需定回执通道)

调用方普查

App:turn-interrupt.test.ts 已断言「hub accepted alone is NOT proof」,只消费 accepted/control,不读 result_from
Dashboard / agent-network CLI:无引用;server 测试:仅本 PR 新增断言

测试

server/src/steer-send-message.test.ts +1:断言 accepted:true、confirmation:"pending"、响应不含 result_from(5 pass / 0 fail)。

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 23, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-23T08:47:53.991115Z 89de27a PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

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