Repository navigation
fix(ui): hall boot crash, hydration clock, 404 page - #64
Merged
Merged
Conversation
added 4 commits
September 21, 2026 06:33
- scene.ts: add HallScene.ready set at the end of create() and null-guard setTruthState for objects that don't exist until the scene finished booting. React held a scene ref the moment the bridge existed, then called setTruthState before create() assigned oracleEye/oracleGlow — the boot crash (TypeError: ... 'setTint') everyone hit on the hall. - keep-hall.tsx: restoreSeals + quarantine effects now wait for scene.ready (retry window up to ~12s) instead of racing create(). - duty.tsx: drop the SSR-rendered HH:mm:ss clock, which could never match hydration and forced a React tree mismatch on every board load. - __root.tsx: add notFoundComponent so unknown routes stop rendering TanStack's bare '<p>Not Found</p>'. - vite.config.ts: optimizeDeps.include the heavy client stack (react, react-dom, router, start, query, sonner, better-auth) so a fresh page load doesn't compile the whole graph on first request. Live-measured (headless Chromium on the box): first load was ~12-13.5MB of raw JS across 110-220 module requests; the optimizer prebundling plus the ready-gate removes the crash and the hydration re-render, and cuts the request path substantially on cool starts.
Forcing @tanstack/react-start into the pre-bundled deps pulls node:async_hooks into the browser (AsyncLocalStorage shim isn't a constructor), crashing every client page. TanStack Start's plugin manages its own opt-in list; a custom replace-list overrides it. Keep only the allowedHosts addition.
…erver) The box serves the app directly from .output/server/index.mjs instead of vite dev. 'build:box' builds the runnable server; plain 'build' keeps the vercel deploy contract.
jasandroidx
changed the base branch from
jules/keep-live-duty-panel
to
ravenstack
September 21, 2026 07:22
This was referenced Sep 21, 2026
jasandroidx
added a commit
that referenced
this pull request
Sep 21, 2026
Co-authored-by: jasandroidx <77057656+jasandroidx@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Kills the two boot-time errors measured on the live Keep and prettifies 404s. Stacked on the A1 board branch.
Fixes (all verified live on the box with headless Chromium)
TypeError: Cannot read properties of undefined (reading 'setTint')atscene.tsevery page load on/.HallScene.readyis set at the end ofcreate();keep-hall.tsxnow waits forscene.ready(retries up to ~12s) beforerestoreSeals/setTruthState/ quarantine-flare, instead of racing Phaser's async boot.setTruthStatenull-guards objects that don't exist until boot.HH:mm:ssclock (server/client copies can never match).notFoundComponenton__root: custom "This path is not in the keep" page instead of TanStack's bare<p>Not Found</p>.optimizeDeps.include(incl.@tanstack/react-start) broke client boot (AsyncLocalStorage is not a constructor); TanStack Start's plugin manages its own list. Nothing custom is kept; onlyallowedHostsremains.Verified live (headless Chromium, on the box)
/: canvas renders (1280x663), zero console/page errors (previously: setTint crash)./duty: zero errors, board paints client-side (Workplaces grid, Duty roster, @raziel row)./nonexistent: custom 404 page.vite buildexit 0.Not done here
Serving the production build instead of
vite devis still open (needs a runnable self-host preset — the vercel output isn't locally previewable) and remains the main lever for the ~12MB dev-mode payload on the hall.