fix: stale auth token causes Unauthorized + invisible error text

background.js checkHealth() never refreshed authToken from /health responses,
so when the browse server restarted with a new token, all sidebar-command
requests got 401 Unauthorized forever.

Also: error placeholder text was #3f3f46 on #0C0C0C (nearly invisible).
Now shows in red to match the error border.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Garry Tan
2026-04-02 20:03:59 -07:00
parent 629a618736
commit 8a6222f7f5
2 changed files with 72 additions and 23 deletions

View File

@@ -689,6 +689,10 @@ body::after {
border-color: var(--error);
animation: shake 300ms ease;
}
.command-input.error::placeholder {
color: var(--error);
opacity: 0.8;
}
@keyframes shake {
0%, 100% { transform: translateX(0); }
25% { transform: translateX(-4px); }