Files
openclaw/src
Masato Hoshino c0b6b846ac fix(acp): record cancelled background turns as cancelled, not succeeded (#101245)
* fix(acp): record cancelled background turns as cancelled, not succeeded

A cancelled parented ACP turn resolves without throwing (only failed turns
throw), so the turn-runner success path recorded the detached task as
succeeded. Thread the terminal status out of consumeAcpTurnStream and branch
at the runner; widen markBackgroundTaskTerminal to accept cancelled, routed
through the existing failTaskRunByRunId sink. The runTurn fallback infers
cancellation from done.stopReason, mirroring the acpx adapter.

* fix(acp): narrow cancelled task status handling

Co-authored-by: masatohoshino <g515hoshino@gmail.com>

---------

Co-authored-by: Vincent Koc <vincentkoc@ieee.org>
2026-07-06 19:32:40 -07:00
..