From fc3490086b9a3ae614421eeab61c81847091b060 Mon Sep 17 00:00:00 2001 From: iris Date: Thu, 21 May 2026 20:23:26 +0200 Subject: [PATCH] agent page: assemble forge URL backend-side MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Per review: build the full forge profile URL in the harness instead of the client. /api/state now returns forge_url: Option (assembled from the request Host header — resolves against whatever host the operator reached the page on), replacing the forge_present bool. The JS just links forge_url when present — no client-side URL construction. --- docs/web-ui.md | 6 +++--- hive-ag3nt/assets/app.js | 8 ++++---- hive-ag3nt/src/web_ui.rs | 34 ++++++++++++++++++++++++++-------- 3 files changed, 33 insertions(+), 15 deletions(-) diff --git a/docs/web-ui.md b/docs/web-ui.md index 99326942..f1bbea9f 100644 --- a/docs/web-ui.md +++ b/docs/web-ui.md @@ -359,9 +359,9 @@ Layout, top to bottom: - Banner (gradient shimmer while state=thinking). - Title with `↑ DASHB04RD` back-link (new tab) + `↻ R3BU1LD`. - Meta links row: `📊 stats →`, `🖥 screen →` (shown when - `gui_enabled`), and `⬡ forge ↗` (shown when `forge_present` — - links to the agent's Forgejo profile at `:3000/