Watch
0
0
Fork
You've already forked hyperhive
0

hive-runtime: TurnStop replaces the subagent daemon's Stopper

TurnStop is the enum over hive-claude's Cancel and the ACP Canceller, with
stop() -> bool (false when no turn was in flight). It signals SIGINT only and
never waits. The subagent daemon tracks a TurnStop per turn, so interrupt has
one stop path; whether the name stays claimed afterwards (claude) or is freed
(ACP) still follows the runtime.
This commit is contained in:
atlas 2026-10-11 02:54:00 +02:00 • committed by mara
commit 496f85c8c6
5 changed files with 147 additions and 36 deletions

View file

@ -32,7 +32,8 @@ The crate depends on no hyperhive binary crate, so `hive-agent` and
## ACP backend: stopping a turn
A turn is stopped with `session/cancel`: by the `Canceller` handle, or by the
A turn is stopped with `session/cancel`: by the `Canceller` handle (`TurnStop`
wraps it, and claude's cancel handle, for callers that run either), or by the
idle watchdog once no `session/update` has arrived for
`Config::idle_timeout`. An agent that has not answered the prompt 10s later
is sent SIGINT, and the next turn respawns it. A watchdog stop fails the turn