From 469a252051b140f8cf4e8a8babcbdb12cdca26b2 Mon Sep 17 00:00:00 2001 From: Illia Polosukhin Date: Fri, 6 Mar 2026 21:44:14 +0000 Subject: [PATCH] feat(gateway): show IronClaw version in status popover [skip-regression-check] (#636) Add version field to gateway status API response (from Cargo.toml via env!("CARGO_PKG_VERSION")) and display it at the top of the hover popover on the "Connected" indicator. Co-authored-by: Claude Opus 4.6 --- src/channels/web/server.rs | 2 ++ src/channels/web/static/app.js | 6 ++++++ 2 files changed, 8 insertions(+) diff --git a/src/channels/web/server.rs b/src/channels/web/server.rs index 1cde7e70..e456febd 100644 --- a/src/channels/web/server.rs +++ b/src/channels/web/server.rs @@ -2319,6 +2319,7 @@ async fn gateway_status_handler( .unwrap_or(false); Json(GatewayStatusResponse { + version: env!("CARGO_PKG_VERSION").to_string(), sse_connections, ws_connections, total_connections: sse_connections + ws_connections, @@ -2340,6 +2341,7 @@ struct ModelUsageEntry { #[derive(serde::Serialize)] struct GatewayStatusResponse { + version: String, sse_connections: u64, ws_connections: u64, total_connections: u64, diff --git a/src/channels/web/static/app.js b/src/channels/web/static/app.js index 1086019f..0b69662d 100644 --- a/src/channels/web/static/app.js +++ b/src/channels/web/static/app.js @@ -3294,6 +3294,12 @@ function fetchGatewayStatus() { var popover = document.getElementById('gateway-popover'); var html = ''; + // Version + if (data.version) { + html += ''; + html += '
'; + } + // Connection info html += ''; html += '
SSE' + (data.sse_connections || 0) + '
';