-
Notifications
You must be signed in to change notification settings - Fork 1.1k
fix(gui): never ask a local dashboard for an admin token #3492
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -2141,6 +2141,7 @@ export function startServer(port?: number, deps: StartServerDeps = {}): Server<W | |
| undefined, | ||
| guiSessionCandidate ?? undefined, | ||
| config.runtimeRole ?? "standalone", | ||
| isApiAuthRequired(config), | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
This new argument controls whether deployed dashboards can recover by entering an admin token, but the added GUI tests manually construct the meta tag and no server-side test asserts that AGENTS.md reference: src/AGENTS.md:L24-L24 Useful? React with 👍 / 👎. |
||
| ); | ||
| if (guiFile) return guiFile; | ||
| if (url.pathname === "/" && req.method === "GET") { | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
When a loopback session bootstrap receives a definitive 4xx, this path suppresses all later authentication resolution and dispatches an event, but no production code listens for
SESSION_UNAVAILABLE_EVENT(the only production occurrences are the declaration and this emitter). Consequently, the promised actionable Host/Origin notice never appears and the dashboard continues failing with 401 responses without explaining how to recover; add a shell-level listener that renders a localized alert before settingpromptCancelledpermanently.Useful? React with 👍 / 👎.