Watch
0
0
Fork
You've already forked hyperhive
0

hive-agent: the per-agent page has no message box; its send route and the broker's operator message are removed

The page's composer (its input, slash commands and completion), POST /send in
hive-agent, the OperatorMsg request of the agent socket and its handler in
hive-c0re, and the broker-error helper only the send route used are deleted:
writing to an agent is the swarm UI's terminal. cancel turn, new session and
log out stay in the state badge's menu; POST /api/compact stays, with nothing
on the page calling it. The request-line limit keeps its size, and its comment
says it is a generous bound now. The docs describe the actions in place of the
footer and the prompt.
This commit is contained in:
iris 2026-11-06 01:07:57 +01:00
commit 23f4f1823b

View file

@ -9,11 +9,10 @@ use std::time::Duration;
use tokio::io::{AsyncBufRead, AsyncBufReadExt, AsyncReadExt};
/// Longest request line accepted, newline included. The largest request a
/// client sends is an `OperatorMsg` from the agent web UI's `/send`
/// (`hive-agent/src/web_ui/actions.rs:21`), whose body axum's default limit
/// caps at 2 MiB; JSON escaping can roughly double that to 4 MiB, and this is
/// 4× that.
/// Longest request line accepted, newline included. A generous bound, not
/// tuned to one request: it was sized for an operator message from the agent web
/// UI (a body of up to 2 MiB, up to 4 MiB once JSON-escaped, with 4× headroom),
/// and no client sends anything near it now.
pub const REQUEST_LINE_MAX_BYTES: usize = 16 * 1024 * 1024;
/// Default for [`LineDeadlines::line`] and [`LineDeadlines::idle`] on the