From 9d3b690aca0df7690f09a271296b9d6d5a274980 Mon Sep 17 00:00:00 2001 From: Stanislaw Grams Date: Fri, 13 Feb 2026 08:43:14 +0100 Subject: [PATCH] [fix](trx-frontend-http): always show auth gate when no valid session Do not auto-connect with guest role. Always show the auth gate when there's no valid session, allowing the user to choose between: - Login: Enter passphrase for control access - Continue as Guest: Proceed with read-only access (if available) This allows users to enter their control passphrase instead of being forced into guest mode. Co-Authored-By: Claude Opus 4.6 Signed-off-by: Stanislaw Grams --- .../trx-frontend/trx-frontend-http/assets/web/app.js | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/src/trx-client/trx-frontend/trx-frontend-http/assets/web/app.js b/src/trx-client/trx-frontend/trx-frontend-http/assets/web/app.js index 40c6d03..543ec32 100644 --- a/src/trx-client/trx-frontend/trx-frontend-http/assets/web/app.js +++ b/src/trx-client/trx-frontend/trx-frontend-http/assets/web/app.js @@ -1163,16 +1163,9 @@ async function initializeApp() { connect(); resizeHeaderSignalCanvas(); startHeaderSignalSampling(); - } else if (authStatus.role) { - // No session but role granted (guest mode available) - authRole = authStatus.role; - updateAuthUI(); - applyAuthRestrictions(); - connect(); - resizeHeaderSignalCanvas(); - startHeaderSignalSampling(); } else { - // Auth required - show login screen with optional guest button + // No valid session - show auth gate + // Guest button is shown if guest mode is available (role granted without auth) const allowGuest = authStatus.role === "rx"; showAuthGate(allowGuest); }