remove agent-callable restart tool (blast radius in multi-user model)
Nightly Build / build (push) Successful in 6m37s

This commit is contained in:
2026-07-22 09:22:45 +01:00
parent 5d5c3ff2ff
commit 7e9127dc69
13 changed files with 14 additions and 128 deletions
-9
View File
@@ -227,15 +227,6 @@ pub async fn resolve_tool(
}));
}
// `restart` calls process::exit — mark done in DB first.
if tc_name == tn::RESTART {
chat_llm_tools::complete(db, tc_id, "Riavvio avviato.", "string").await?;
// Use _exit() to skip C atexit handlers (e.g. Metal GPU cleanup in
// whisper-rs/ggml, which aborts with SIGABRT and yields exit code 134
// instead of 255 — breaking the run.sh restart supervisor).
unsafe { libc::_exit(-1) }
}
// ── Live path: LLM loop is blocked waiting for approval ──────────────────
if ctx.approval
.resolve_for_tool_call(tc_id, ApprovalDecision::Approved)