Files
coder/coderd/x
Hugo Dutka a3fb196ce4 fix(coderd/x/chatd): replace interrupted ACP tool output (#31362)
When interruption arrives after `acp_wait_agent` publishes its result
but before the step commits, the model can receive the user's full
sub-agent transcript, including reasoning.

Keep a list of tools whose buffered output is replaced for the model on
interruption, initially `acp_wait_agent`. Preserve the transcript for
the user and give the model `{"error":"tool call was interrupted"}`. A
completed answer may need to be collected by calling the wait tool
again.

Alternative to #31345.
2026-10-27 19:31:51 +00:00
..