hive-agent: drive turns through hive-runtime
AgentSession becomes hive_runtime::AgentRuntime, picked at startup from the environment. Unset HIVE_RUNTIME keeps the claude backend, built from the same title, store and PercentPolicy as before; drive_turn, the 401 retry and the error mapping see the claude errors unchanged. On acp the harness keeps the session id in the harness dir, answers permission requests like the claude built-in allow-list (no built-in shell, web fetch only with web_tools), maps runtime errors to Failed, and reports an operator /compact as skipped instead of done. Refs #4391
This commit is contained in:
parent
b0e26e7e44
commit
f0110be76c
4 changed files with 119 additions and 58 deletions
|
|
@ -659,9 +659,9 @@ async fn serve_loop<S: Surface>(
|
|||
) -> Result<()> {
|
||||
tracing::info!(socket = %socket.display(), "harness serve");
|
||||
S::requeue_inflight(socket).await;
|
||||
// The durable claude session, built once and reused for every turn +
|
||||
// The durable agent session, built once and reused for every turn +
|
||||
// idle compaction below (it's effectively stateless).
|
||||
let session = turn::make_session(&bus);
|
||||
let session = turn::make_session(&bus)?;
|
||||
// Tracks the last observed pause state so the transitions get logged
|
||||
// once each instead of twelve lines a minute while parked.
|
||||
let mut was_paused = false;
|
||||
|
|
|
|||
Loading…
Reference in a new issue