Watch
0
0
Fork
You've already forked hyperhive
0
hyperhive/hive-runtime/src
Repository files (latest commit first)
Filename Latest commit message Latest commit date
atlas fa56931a99 hive-runtime: respawn the ACP agent when its provider key changed after a failed turn
The provider key was resolved once, at spawn. A provider rejecting it
shows only as an empty end_turn or an idle timeout, neither of which
drops the agent, so a key rotated in the store never reached a running
opencode until the process died for another reason.

After a turn fails with EmptyEndTurn or IdleTimeout, the runtime now
resolves the key once more. When that yields a key that differs from
the one the agent was spawned with, the agent is dropped (SIGINT to its
process group, as every other respawn) and the next turn spawns it with
the new key and reloads the recorded session. No key read (inherited
env value, no store, a failed or timed-out read, nothing stored) keeps
the running agent. The failed turn's error is returned unchanged.

Part of #5017 (slice A).
2026-10-13 08:07:38 +02:00
..
acp hive-runtime: respawn the ACP agent when its provider key changed after a failed turn 2026-10-13 08:07:38 +02:00
claude.rs hive-agent: export ACP-reported cost and context fill over OTLP 2026-09-30 22:24:06 +02:00
lib.rs hive-runtime: TurnStop replaces the subagent daemon's Stopper 2026-10-11 09:56:33 +02:00
spec.rs hive-runtime: read the ACP provider key from bao 2026-09-30 22:55:03 +02:00
stop.rs hive-runtime: TurnStop replaces the subagent daemon's Stopper 2026-10-11 09:56:33 +02:00