Watch
0
0
Fork
You've already forked hyperhive
0

remove the agent's live terminal page and the endpoints only it used

This commit is contained in:
iris 2026-11-16 04:31:36 +01:00 • committed by mara
commit 6289b8d64b

View file

@ -557,17 +557,10 @@ async fn serve_main<S: Surface>(socket: &Path, poll_ms: u64) -> Result<()> {
// at a dir the agent user can't write) vanishes — leaving an
// operator with no log line and no socket, debuggable only by
// staring at lifecycle.rs.
let web_ui_args = (
label.clone(),
port,
login_state.clone(),
bus.clone(),
socket.to_path_buf(),
interrupted.clone(),
);
let web_ui_args = (label.clone(), port, bus.clone());
tokio::spawn(async move {
let (label, port, login_state, bus, socket, interrupted) = web_ui_args;
if let Err(e) = web_ui::serve(label, port, login_state, bus, socket, interrupted).await {
let (label, port, bus) = web_ui_args;
if let Err(e) = web_ui::serve(label, port, bus).await {
tracing::error!(error = %e, "web_ui::serve exited with error");
}
});
@ -658,14 +651,11 @@ fn open_reminders() -> Option<Arc<reminders::Reminders>> {
}
}
/// Hand the bus the session's handles the web UI reads from outside a turn.
/// Hand the bus the handle to stop a turn from outside it.
fn share_session_handles(bus: &Bus, session: &turn::AgentSession) {
if let Some(canceller) = hive_runtime::Runtime::canceller(session) {
bus.set_turn_canceller(canceller);
}
if let Some(choices) = hive_runtime::Runtime::choices(session) {
bus.set_session_choices(choices);
}
}
/// When the serve loop may send its next `Recv`: at once while `Recv`s