From b77fb3000154cf90a3f48cde0eeb626b6cb52926 Mon Sep 17 00:00:00 2001 From: Jeff Emmett Date: Tue, 3 Mar 2026 11:50:49 -0800 Subject: [PATCH] fix: persist light/dark theme preference across sessions Restore canvas-theme from localStorage on page load with a blocking script before first paint (body) and a fixup for header/tab-row. Applied to all three shell renderers. Co-Authored-By: Claude Opus 4.6 --- server/shell.ts | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) diff --git a/server/shell.ts b/server/shell.ts index a53d0ab..a44602c 100644 --- a/server/shell.ts +++ b/server/shell.ts @@ -82,7 +82,9 @@ export function renderShell(opts: ShellOptions): string { ${escapeHtml(title)} - + + + - -
+ +
@@ -113,7 +115,7 @@ export function renderShell(opts: ShellOptions): string {
-
+
@@ -123,7 +125,9 @@ export function renderShell(opts: ShellOptions): string { ${renderWelcomeOverlay()} +
@@ -510,6 +515,7 @@ export function renderExternalAppShell(opts: ExternalAppShellOptions): string { +
@@ -738,6 +745,7 @@ export function renderModuleLanding(opts: ModuleLandingOptions): string { ${bodyContent}