Watch
0
0
Fork
You've already forked hyperhive
0

hive-agent: correct doc comments that describe sentinel files, session flags and outcomes the code no longer has

This commit is contained in:
damocles 2026-10-21 22:13:54 +02:00 • committed by mara
commit ac0bed47e9
11 changed files with 40 additions and 38 deletions

View file

@ -717,8 +717,9 @@ fn claude_config(bus: &Bus, files: &TurnFiles) -> Config {
/// Map a `hive_claude::Error` onto the harness's `TurnOutcome`. The recognized
/// sentinels become their matching outcomes; a residual `SessionNotFound`
/// (create path itself missed — shouldn't happen) settles as `Ok`; genuine
/// failures become `Failed` (converting the typed lib error into `anyhow`).
/// (create path itself missed — shouldn't happen) stays `Err(SessionNotFound)`
/// for `handle_turn_error_recovery` to requeue; genuine failures become
/// `Failed` (converting the typed lib error into `anyhow`).
fn error_to_turn(err: hive_claude::Error) -> TurnOutcome {
use hive_claude::Error;
match err {