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 b8ec0f4f85 hive-runtime: replace the session when an ACP compact command fails
A `compact` command that errors, or sends nothing, used to leave the
session as full as before: `compacted` stayed false, so every following
turn ran the checkpoint and another `/compact` again, each one waiting
out the 600s turn idle window when the command was silent.

- The `/compact` turn gets its own idle bound, COMPACT_IDLE (3 min, or
  the turn's idle window if shorter), through the turn's existing
  watchdog, so a silent command is cancelled (or killed) like any
  stalled turn.
- When the command fails or hits that bound, compaction falls back to
  the no-command path: the session is archived and the next turn starts
  a new one. The checkpoint turn runs there only if it has not already
  run in this compaction.
- Compaction returns early when attaching produced a new session (a
  failed `session/load` or a never-answered first prompt): there is
  nothing in it to compact.

Refs #4391
2026-09-30 07:41:47 +02:00
..
acp hive-runtime: replace the session when an ACP compact command fails 2026-09-30 07:41:47 +02:00
claude.rs hive-runtime: cancel and idle watchdog for ACP turns 2026-09-29 23:22:50 +02:00
lib.rs hive-runtime: compact ACP sessions through the agent's compact command 2026-09-30 07:41:47 +02:00
spec.rs hive-runtime: shared runtime crate with claude and acp backends 2026-09-29 22:29:36 +02:00