Watch
0
0
Fork
You've already forked hyperhive
0

docs: two comments no longer mention the removed agent login

This commit is contained in:
damocles 2026-11-07 08:01:12 +01:00 • committed by mara
commit 0c78ccbf84
2 changed files with 6 additions and 9 deletions

View file

@ -9,13 +9,10 @@
// visual language needed for the chrome itself.
// Measures its own rendered height via ResizeObserver, writes it to
// `--agent-header-real-h` (agent.css's downstream consumers —
// `.agent-status-overlay`, `.agent-main`'s scroll padding — prefer
// this over the static `--agent-header-h` guess). A static guess was
// the root cause of two "login card behind the header" reports on
// this PR (mara, live): any header content that can wrap an extra
// line breaks the guess at whatever width triggers it, and no width
// can be promised safe. Deliberately a SEPARATE var, not an overwrite
// `--agent-header-real-h` (`.agent-main`'s scroll padding, in agent.css,
// prefers this over the static `--agent-header-h` guess). A static guess
// broke whenever header content wrapped an extra line, at whatever width
// triggered it, and no width can be promised safe. Deliberately a SEPARATE var, not an overwrite
// of `--agent-header-h` in place: `.agent-header`'s own `min-height`
// also reads that var — overwriting it in place would make the
// header's own size react to its own just-measured height every

View file

@ -66,8 +66,8 @@ const PROXY_HEADER_BLOCK: &str = " proxy_http_version 1.1;
/// store dist. These load even while the agent daemon is restarting.
/// - Static assets (`/static/`) → `alias` from the nix store with cache
/// headers. Served by nginx directly, no agent socket round-trip.
/// - Everything else (all `/api/*`, `/events/*`, `/screen/ws`, `/icon`,
/// `/login/*`) → proxied to the agent daemon as before.
/// - Everything else (all `/api/*`, `/events/*`, `/screen/ws`, `/icon`)
/// → proxied to the agent daemon as before.
///
/// When `frontend_dir` is `None` (legacy) each agent gets a single
/// `location /agent/<name>/` proxy block.