并行工具执行的前置:runOne 在 Execute 前把当前调用注入 ctx(WithToolCall/ToolCallFromContext,加法),宿主工具包装器据此按调用 ID 配对过程状态。附并行双调用各自读到自己 ID 的回归测试;go test ./... 全绿。
Refs: Dev 任务 feature/agent-e1-parallel-fixes(F5)。
并行工具执行的前置:runOne 在 Execute 前把当前调用注入 ctx(WithToolCall/ToolCallFromContext,加法),宿主工具包装器据此按调用 ID 配对过程状态。附并行双调用各自读到自己 ID 的回归测试;go test ./... 全绿。
Refs: Dev 任务 feature/agent-e1-parallel-fixes(F5)。
Why: With parallel tool execution the host-side tool wrapper can no
longer infer which invocation it is serving from a single in-flight
slot; tools need the call identity (ID/name/arguments) to pair process
state and per-call bookkeeping. Context injection keeps the tools
registry signature unchanged.
Evidence: go test ./... green; TestLoopToolSeesOwnCallInContext runs
two parallel calls and asserts each reads its own ID from ctx.
Impact: Additive WithToolCall/ToolCallFromContext helpers; runOne now
wraps the ctx before Execute. Callers that never inject keep ok=false
and are unaffected.
Refs: Dev task feature/agent-e1-parallel-fixes (F5 parallel wiring).
weichen
merged commit ef2fa75006 into main2026-10-10 08:50:13 +00:00
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
并行工具执行的前置:runOne 在 Execute 前把当前调用注入 ctx(WithToolCall/ToolCallFromContext,加法),宿主工具包装器据此按调用 ID 配对过程状态。附并行双调用各自读到自己 ID 的回归测试;go test ./... 全绿。
Refs: Dev 任务 feature/agent-e1-parallel-fixes(F5)。