UI: auth banner — add re-auth hint for multi-user context

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 <noreply@anthropic.com>
This commit is contained in:
Scott Idem
2026-03-17 23:09:11 -04:00
parent 48a6734ec3
commit 2ca02006dd
3 changed files with 18 additions and 4 deletions

View File

@@ -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');