From 2ca02006dd985b0fa436280f5d62564710be5f14 Mon Sep 17 00:00:00 2001 From: Scott Idem Date: Tue, 17 Mar 2026 23:09:11 -0400 Subject: [PATCH] =?UTF-8?q?UI:=20auth=20banner=20=E2=80=94=20add=20re-auth?= =?UTF-8?q?=20hint=20for=20multi-user=20context?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Banner now shows a second line explaining how to fix it: SSH to the Cortex host, run `claude`, follow the login prompt, restart Cortex. Co-Authored-By: Claude Sonnet 4.6 --- cortex/static/app.js | 4 ++-- cortex/static/index.html | 5 ++++- cortex/static/style.css | 13 ++++++++++++- 3 files changed, 18 insertions(+), 4 deletions(-) diff --git a/cortex/static/app.js b/cortex/static/app.js index 5755156..ca14976 100644 --- a/cortex/static/app.js +++ b/cortex/static/app.js @@ -919,8 +919,8 @@ if (!d.warning) return; const msg = d.expired - ? '✕ Claude CLI token has expired — run `claude` in a terminal to re-authenticate' - : `⚠ Claude CLI token expires in ${d.hours_remaining}h — run \`claude\` in a terminal to re-authenticate`; + ? '✕ Claude CLI token has expired' + : `⚠ Claude CLI token expires in ${d.hours_remaining}h`; authBannerMsg.textContent = msg; authBanner.classList.toggle('expired', !!d.expired); authBanner.classList.add('show'); diff --git a/cortex/static/index.html b/cortex/static/index.html index 62d55e0..cc628af 100644 --- a/cortex/static/index.html +++ b/cortex/static/index.html @@ -110,7 +110,10 @@
- +
+ + To fix: SSH into the Cortex host and run claude — follow the login prompt, then restart Cortex. +
diff --git a/cortex/static/style.css b/cortex/static/style.css index 30f44a1..504810a 100644 --- a/cortex/static/style.css +++ b/cortex/static/style.css @@ -917,7 +917,18 @@ color: var(--error-text); } - #auth-banner-msg { flex: 1; } + #auth-banner-text { flex: 1; display: flex; flex-direction: column; gap: 2px; } + #auth-banner-msg { font-weight: 500; } + #auth-banner-hint { + font-size: 0.76rem; + opacity: 0.8; + } + #auth-banner-hint code { + font-family: 'Courier New', monospace; + background: rgba(0,0,0,0.2); + border-radius: 3px; + padding: 0 4px; + } #auth-banner-close { background: none;