You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 3602a38
Browse filesBrowse the repository at this point in the historyBrowse files
refactor(web): document appearance and title are applied from app start
The root route mounted four null components (ContrastAppearanceSync,
GlassAppearanceSync, FontAppearanceSync, DocumentTitleSync) whose only job
was to copy client settings and the primary server version onto the
document from seven useEffects. They re-rendered on every subscribed
setting change, wrote the DOM a commit late, and were only mounted on some
root branches.
appInit.tsx now owns app-start work: startAppServices() runs the provider
auth handoff, builds the router, sets the Electron document classes, and
subscribes once to the client settings store and primaryServerConfigAtom,
writing only the attribute groups that changed. main.tsx calls it.
Effects removed: 7 in routes/__root.tsx (14 -> 7). Kept: BrowserChromeThemeSync
(samples the painted surface per route, honestly post-paint), the theme
sync, tracing, hosted-static bootstrap and EventRouter, which move in their
own units.
Behavior change: appearance settings (contrast, glass, fonts, chat width,
diff colors, redesign flag) now also apply on /pair, /connect,
/connect-agent, hosted prompt-link landings, the signed-out shell and the
guest page, where those components were not mounted. The document title
now also updates on the guest page. Both are set before the first render
instead of after the first commit.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
0 commit comments