Repository navigation
Description
Finding
Several other Console account replies are still bare HTML fragments or plain text. They have no stylesheet and no data-theme, so the browser shows them in its default colours. The /set-password/code page had the same problem before #1166 fixed it:
POST /set-passwordwith a wrong or expired code: a 401 with the barePassword not set. Check your code or <a href="/set-password">request another</a>.(src/console/auth/password.rs:139).POST /set-passwordwithout a Resend key: a 503 with the plain-textOWNERnotice (password.rs:140). Its text also repeatssrc/console/password_off.html.POST /sign-inrefused, and in slowdown: bare fragments,Sign-in failed. <a href="/sign-in">Try again</a>.(src/console/auth.rs:265,271).
ADR 0018 says the Console has one layout with Themes, so these replies don't match the rest of it.
Evidence
This test, added to tests/console/password_codes.rs, fails on the #1166 branch. The response body is the bare Password not set… fragment:
#[test]
fn a_wrong_code_reply_uses_the_console_theme() {
let home = configured();
let resend = ResendStandIn::replying(200, "{}");
let console = start(home.path(), &resend, true);
let response = post(&console, "/set-password",
&[("email", EMAIL), ("code", "000000"), ("password", PASSWORD)]);
assert_eq!(response.status(), 401);
let html = response.text().unwrap();
assert!(html.contains("data-theme=\"focus-auto\""), "{html}");
}Run it with cargo test --test console a_wrong_code_reply_uses_the_console_theme.
Raised by
The Standards review (finding #6) and the Spec review of #1166, which fixed #1054.
Why this wasn't decided there
#1054 asks only for the /set-password/code page to follow the system's light or dark mode. Theming the other routes' replies is a scope decision for the Day shift. It also raises design choices #1054 doesn't settle. One is whether failures should render a page or redirect back to the form with a message. Another is whether the sign-in replies should change together with the set-password ones.
Activity
JacobStephens2 commentedon Oct 25, 2026
Agent Brief
Category: bug
Summary: The Console's remaining sign-in and set-password error replies render as themed pages
Current behavior:
Some auth replies are still bare: a wrong code on POST /set-password (401 HTML fragment), the password-off notice (503 plain text), and sign-in refused (401) and slowdown (429) on POST /sign-in.
Desired behavior:
Each of these replies renders as a full page with the Console theme, using the same template chrome as the set-password code page from #1166. Status codes, the
Retry-Afterheader, message text and links are kept. The 503 reuses the existing password-off page.Key interfaces:
Acceptance criteria:
a_wrong_code_reply_uses_the_console_themetest passesRetry-After) and password off (503), each asserting the themed page (data-theme)Out of scope: