Skip to content

fix(ui): render dark theme attrs on SSR html to stop hydration mismatch#7622

Merged
loopover-orb[bot] merged 1 commit into
mainfrom
claude/interesting-lamport-980e23
Jul 21, 2026
Merged

fix(ui): render dark theme attrs on SSR html to stop hydration mismatch#7622
loopover-orb[bot] merged 1 commit into
mainfrom
claude/interesting-lamport-980e23

Conversation

@JSONbored

Copy link
Copy Markdown
Owner

Summary

  • Every page load in apps/loopover-ui logged a React hydration-mismatch console error for the <html> element's className="dark" / style={{color-scheme:"dark"}} (SSR rendered neither; a pre-hydration no-flash script added both client-side before React ever hydrated, so React always detected a mismatch on first paint).
  • RootShell (apps/loopover-ui/src/routes/__root.tsx) now renders className="dark" and style={{ colorScheme: "dark" }} directly on the server-rendered <html> tag, so SSR output already matches what the client needs.
  • The app is dark-mode-only (the toggle itself was already removed), so the now-redundant THEME_NOFLASH_SCRIPT no-flash script and its theme-toggle.tsx module are deleted — nothing else imported them.

No behavioral or visual change: the app already always rendered dark; this only fixes how the dark class/style attributes get onto <html>, removing the console error and the (harmless but noisy) hydration patch-up work React did on every load.

Scope

  • The PR title follows type(scope): short summary Conventional Commit format.
  • This PR is focused and does not mix unrelated backend, UI, MCP, docs, dependency, and deploy changes.
  • This follows CONTRIBUTING.md and does not reintroduce GitHub Pages, VitePress, site/, or CNAME.
  • Linked issue: Closes fix(ui): SSR/CSR html className mismatch causes hydration-mismatch console error on every page load #7618 (opened for this fix; as the repo's sole maintainer the contributor-only linked-issue hard-close rule doesn't bind owner PRs, but a tracking issue is still good hygiene).

Validation

  • git diff --check
  • npm run actionlint (via npm run test:ci)
  • npm run typecheck (via npm run test:ci)
  • npm run test:coverage locally — full suite green (1036 files / 19,563 tests); this is a UI-only change under apps/loopover-ui/**, which Codecov's codecov/patch does not measure (only src/** is measured), so there's no patch-coverage obligation here.
  • npm run test:workers (via npm run test:ci)
  • npm run build:mcp / npm run test:mcp-pack (via npm run test:ci)
  • npm run ui:openapi:check (via npm run test:ci) — no API/schema changes, N/A but ran clean
  • npm run ui:lint
  • npm run ui:typecheck
  • npm run ui:build (also verified with vite build + a production preview — see below)
  • npm audit --audit-level=moderate — 0 vulnerabilities
  • New or changed behavior has unit/integration tests for new branches, fallback paths, and sanitizer boundaries — N/A, no new logic branches; this is a static JSX attribute change with no conditional paths to test, verified instead by manual before/after console inspection (see Notes).

Manual verification: reproduced the hydration-mismatch console error on npm --workspace @loopover/ui run dev before the fix (every page load, e.g. /docs/quickstart), confirmed it is gone after the fix on a fresh page load in both npm run dev and a production build (vite build, served via wrangler dev --config dist/server/wrangler.json against the built Worker output — vite preview itself has an unrelated, pre-existing breakage in this repo, tracked separately). Confirmed document.documentElement still carries class="dark" / style="color-scheme: dark" correctly post-fix.

Safety

  • No secrets, wallet details, hotkeys, coldkeys, user PATs, private keys, raw trust scores, private rankings, or private maintainer evidence are exposed.
  • Public GitHub text stays sanitized, low-noise, and does not imply compensation guarantees or optimization tactics.
  • Auth, cookie, CORS, GitHub App, Cloudflare, or session changes include negative-path tests. N/A — no auth/session/CORS changes.
  • API/OpenAPI/MCP behavior is updated and tested where needed. N/A — no API/OpenAPI/MCP changes.
  • UI changes use live API data or real empty/error/loading states, not production mock/demo fallbacks. N/A — static JSX attributes only.
  • Visible UI changes include a UI Evidence section — not applicable: this fix produces zero pixel/visual difference (the app already always rendered dark; only how the dark attributes reach <html> changed). The actual evidence is the browser console, not the rendered page, so a page screenshot would show nothing different before/after. See Notes for the console evidence instead.
  • Public docs/changelogs are updated where needed; changelogs are only edited for release-prep PRs. N/A.

Notes

Console evidence (before → after), reproduced on /docs/quickstart:

Before:

A tree hydrated but some attributes of the server rendered HTML didn't match the client properties. This won't be patched up. ...
  <html
    lang="en"
    ref={function ref}
-   className="dark"
-   style={{color-scheme:"dark"}}
  >

After: no console errors on a fresh page load; document.documentElement reports {"className":"dark","colorScheme":"dark"} as expected, sourced from the SSR HTML rather than a post-hydration script.

RootShell rendered <html> with no className/style, while the no-flash
script added class="dark" and color-scheme:dark to the client before
hydration -- causing a hydration-mismatch console error on every page
load. Render both attributes server-side instead, since the app is
dark-mode-only, and drop the now-redundant no-flash script.

Closes #7618
@JSONbored JSONbored self-assigned this Jul 21, 2026
@superagent-security

Copy link
Copy Markdown
Contributor

Superagent didn't find any vulnerabilities or security issues in this PR.

@cloudflare-workers-and-pages

Copy link
Copy Markdown

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Preview URL Updated (UTC)
✅ Deployment successful!
View logs
loopover-ui 0751070 Commit Preview URL

Branch Preview URL
Jul 21 2026, 04:21 AM

@codecov

codecov Bot commented Jul 21, 2026

Copy link
Copy Markdown

Bundle Report

Changes will decrease total bundle size by 106 bytes (-0.0%) ⬇️. This is within the configured threshold ✅

Detailed changes
Bundle name Size Change
loopover-ui 7.66MB -106 bytes (-0.0%) ⬇️

Affected Assets, Files, and Routes:

view changes for bundle: loopover-ui

Assets Changed:

Asset Name Size Change Total Size Change (%)
assets/add-scalar-classes-BTDjLvjx.js (New) 2.17MB 2.17MB 100.0% 🚀
assets/tanstack-vendor-BQKpuazM.js (New) 823.66kB 823.66kB 100.0% 🚀
assets/docs.fumadocs-spike-api-reference-h7E_yPFh.js (New) 442.94kB 442.94kB 100.0% 🚀
assets/AgentScalarChatInterface.vue-DkdihULo.js (New) 201.71kB 201.71kB 100.0% 🚀
assets/modal-Dm49RdPH.js (New) 184.28kB 184.28kB 100.0% 🚀
assets/client-BlryoD-V.js (New) 146.06kB 146.06kB 100.0% 🚀
assets/maintainer-panel-BVYMw5mi.js (New) 78.53kB 78.53kB 100.0% 🚀
assets/ui-vendor-_lZUvUVT.js (New) 57.04kB 57.04kB 100.0% 🚀
assets/routes-BRVw-rCI.js (New) 34.83kB 34.83kB 100.0% 🚀
assets/owner-panel-Br8-ds0n.js (New) 27.2kB 27.2kB 100.0% 🚀
assets/app-BjB3_lcH.js (New) 25.65kB 25.65kB 100.0% 🚀
assets/app.runs-Dq26NfEg.js (New) 23.55kB 23.55kB 100.0% 🚀
assets/miner-panel-BWf1MkxS.js (New) 20.25kB 20.25kB 100.0% 🚀
assets/docs-source-1EnCK6_M.js (New) 19.46kB 19.46kB 100.0% 🚀
assets/api._op-CyM5rTnx.js (New) 17.55kB 17.55kB 100.0% 🚀
assets/self-hosting-docs-audit-fEjnMvd4.js (New) 16.73kB 16.73kB 100.0% 🚀
assets/app.index-DP5rcxVM.js (New) 15.62kB 15.62kB 100.0% 🚀
assets/playground-panel-BTjVjUwv.js (New) 14.49kB 14.49kB 100.0% 🚀
assets/app.audit-CEvaKGu6.js (New) 10.11kB 10.11kB 100.0% 🚀
assets/extension-DhotZqat.js (New) 10.04kB 10.04kB 100.0% 🚀
assets/app.config-generator-Ts9CWQ8G.js (New) 9.88kB 9.88kB 100.0% 🚀
assets/fairness-uw8BFqlL.js (New) 8.34kB 8.34kB 100.0% 🚀
assets/maintainers-BV4u_tdP.js (New) 8.03kB 8.03kB 100.0% 🚀
assets/miners-DXBKcCe9.js (New) 7.85kB 7.85kB 100.0% 🚀
assets/agents-C9rtE_S_.js (New) 7.76kB 7.76kB 100.0% 🚀
assets/commands-panel-DGhw9F8k.js (New) 6.65kB 6.65kB 100.0% 🚀
assets/maintainer-workflow-BW-UG9XT.js (New) 6.61kB 6.61kB 100.0% 🚀
assets/roadmap-RWDiQktP.js (New) 6.33kB 6.33kB 100.0% 🚀
assets/digest-panel-DKp3wXs_.js (New) 6.18kB 6.18kB 100.0% 🚀
assets/repos._owner._repo.quality-COQ85K5v.js (New) 6.14kB 6.14kB 100.0% 🚀
assets/docs.index-gB8ss_wy.js (New) 5.55kB 5.55kB 100.0% 🚀
assets/api.index-CGjoNl1q.js (New) 4.7kB 4.7kB 100.0% 🚀
assets/api-xp5FWtLr.js (New) 2.69kB 2.69kB 100.0% 🚀
assets/docs-DRAf2cJC.js (New) 2.67kB 2.67kB 100.0% 🚀
assets/app.workbench-x2PxfJTx.js (New) 1.58kB 1.58kB 100.0% 🚀
assets/session-ihkze32d.js (New) 1.45kB 1.45kB 100.0% 🚀
assets/tooltip-ED7qVnky.js (New) 1.45kB 1.45kB 100.0% 🚀
assets/tabs-nOUSe0gb.js (New) 1.39kB 1.39kB 100.0% 🚀
assets/app.repos-Bd-6Pbrr.js (New) 1.07kB 1.07kB 100.0% 🚀
assets/input-B-VKwf8L.js (New) 796 bytes 796 bytes 100.0% 🚀
assets/file-cog-DWCQxwR4.js (New) 758 bytes 758 bytes 100.0% 🚀
assets/docs.ai-summaries-CtMeQ1wE.js (New) 506 bytes 506 bytes 100.0% 🚀
assets/app.maintainer-CQE_WI6T.js (New) 502 bytes 502 bytes 100.0% 🚀
assets/docs.branch-analysis-BgdnMMPt.js (New) 499 bytes 499 bytes 100.0% 🚀
assets/docs.scoreability-DmkjqMJh.js (New) 499 bytes 499 bytes 100.0% 🚀
assets/docs.upstream-drift-CgfZNznc.js (New) 499 bytes 499 bytes 100.0% 🚀
assets/docs.federated-fleet-intelligence-B2Ffvuul.js (New) 498 bytes 498 bytes 100.0% 🚀
assets/docs.maintainer-install-trust-CYgXPpXU.js (New) 498 bytes 498 bytes 100.0% 🚀
assets/docs.self-hosting-ai-providers-dUx-88qR.js (New) 498 bytes 498 bytes 100.0% 🚀
assets/docs.self-hosting-backup-scaling-CdwwROqH.js (New) 498 bytes 498 bytes 100.0% 🚀
assets/docs.self-hosting-configuration-BRjVIqrt.js (New) 498 bytes 498 bytes 100.0% 🚀
assets/docs.self-hosting-docs-audit-bwd3NHGn.js (New) 498 bytes 498 bytes 100.0% 🚀
assets/docs.self-hosting-github-app-Eyf4lHAE.js (New) 498 bytes 498 bytes 100.0% 🚀
assets/docs.self-hosting-quickstart-Bokrg7Z4.js (New) 498 bytes 498 bytes 100.0% 🚀
assets/docs.self-hosting-rag-BpApEhtr.js (New) 498 bytes 498 bytes 100.0% 🚀
assets/docs.self-hosting-rees-DYJulf88.js (New) 498 bytes 498 bytes 100.0% 🚀
assets/docs.self-hosting-rees-analyzers-DPyWkS0o.js (New) 498 bytes 498 bytes 100.0% 🚀
assets/docs.self-hosting-release-checklist-ByXDJuT2.js (New) 498 bytes 498 bytes 100.0% 🚀
assets/docs.self-hosting-releases-DT1sglfw.js (New) 498 bytes 498 bytes 100.0% 🚀
assets/docs.self-hosting-security-BaFVni-j.js (New) 498 bytes 498 bytes 100.0% 🚀
assets/docs.self-hosting-troubleshooting-TFYiGJMM.js (New) 498 bytes 498 bytes 100.0% 🚀
assets/docs.self-hosting-unified-ams-orb-DW60Y3Dw.js (New) 498 bytes 498 bytes 100.0% 🚀
assets/docs.ams-config-precedence-Bevexq0T.js (New) 497 bytes 497 bytes 100.0% 🚀
assets/docs.ams-deployment-CaRA_zZU.js (New) 497 bytes 497 bytes 100.0% 🚀
assets/docs.ams-discovery-plane-CTKiM9dh.js (New) 497 bytes 497 bytes 100.0% 🚀
assets/docs.ams-env-reference-Ci-XcnuZ.js (New) 497 bytes 497 bytes 100.0% 🚀
assets/docs.ams-fleet-manifest-DcZGLzVJ.js (New) 497 bytes 497 bytes 100.0% 🚀
assets/docs.ams-goal-spec-DcvEiAWn.js (New) 497 bytes 497 bytes 100.0% 🚀
assets/docs.ams-kill-switch-incident-IjEnArVP.js (New) 497 bytes 497 bytes 100.0% 🚀
assets/docs.ams-observability-BvR_6t0p.js (New) 497 bytes 497 bytes 100.0% 🚀
assets/docs.ams-operations-runbook-rYvJQMgD.js (New) 497 bytes 497 bytes 100.0% 🚀
assets/docs.ams-sizing-DCjX6T87.js (New) 497 bytes 497 bytes 100.0% 🚀
assets/docs.ams-unattended-scheduling-F9Qisx-Z.js (New) 497 bytes 497 bytes 100.0% 🚀
assets/docs.beta-onboarding-BBf9DSyO.js (New) 497 bytes 497 bytes 100.0% 🚀
assets/docs.capacity-C31lYQMz.js (New) 497 bytes 497 bytes 100.0% 🚀
assets/docs.maintainer-self-hosting-BsrtBHUT.js (New) 497 bytes 497 bytes 100.0% 🚀
assets/docs.mcp-clients-DMJs-8Ia.js (New) 497 bytes 497 bytes 100.0% 🚀
assets/docs.owner-checklist-DD5hbMht.js (New) 497 bytes 497 bytes 100.0% 🚀
assets/docs.quickstart-D329HKFo.js (New) 497 bytes 497 bytes 100.0% 🚀
assets/docs.github-app-BisWyU9V.js (New) 495 bytes 495 bytes 100.0% 🚀
assets/docs.maintainer-workflow-D4qp7_o-.js (New) 495 bytes 495 bytes 100.0% 🚀
assets/docs.privacy-security-DeI65zwk.js (New) 495 bytes 495 bytes 100.0% 🚀
assets/docs.troubleshooting-Yv5Ao5i9.js (New) 495 bytes 495 bytes 100.0% 🚀
assets/docs.tuning-CKKSkpZC.js (New) 495 bytes 495 bytes 100.0% 🚀
assets/docs.loopover-commands-DO34b8Eg.js (New) 494 bytes 494 bytes 100.0% 🚀
assets/sparkles-PWCKNiLQ.js (New) 494 bytes 494 bytes 100.0% 🚀
assets/docs.how-reviews-work-BfSob6aS.js (New) 493 bytes 493 bytes 100.0% 🚀
assets/app.owner-CBB0Ocok.js (New) 474 bytes 474 bytes 100.0% 🚀
assets/app.commands-BmaG_k0a.js (New) 455 bytes 455 bytes 100.0% 🚀
assets/app.playground-lpKDGEpk.js (New) 442 bytes 442 bytes 100.0% 🚀
assets/reveal-BN4Fb5lG.js (New) 442 bytes 442 bytes 100.0% 🚀
assets/index-XrZPN124.js (New) 438 bytes 438 bytes 100.0% 🚀
assets/app.digest-CnwCCftY.js (New) 430 bytes 430 bytes 100.0% 🚀
assets/eye-off-DWh6eqhv.js (New) 430 bytes 430 bytes 100.0% 🚀
assets/app.miner-DIer-c5V.js (New) 422 bytes 422 bytes 100.0% 🚀
assets/key-round-Hh610B8p.js (New) 355 bytes 355 bytes 100.0% 🚀
assets/bot-C3GE3R7y.js (New) 328 bytes 328 bytes 100.0% 🚀
assets/trash-2-DcR0wI9B.js (New) 328 bytes 328 bytes 100.0% 🚀
assets/save-AfZdAQsE.js (New) 327 bytes 327 bytes 100.0% 🚀
assets/git-pull-request-arrow-Di8xoqNW.js (New) 321 bytes 321 bytes 100.0% 🚀
assets/wrench-CEO91Lml.js (New) 303 bytes 303 bytes 100.0% 🚀
assets/list-checks-BOjfc_CU.js (New) 279 bytes 279 bytes 100.0% 🚀
assets/shield-HUw5BTR8.js (New) 272 bytes 272 bytes 100.0% 🚀
assets/workflow-CKVrGsPj.js (New) 265 bytes 265 bytes 100.0% 🚀
assets/compass-BoGHbvT5.js (New) 251 bytes 251 bytes 100.0% 🚀
assets/history-L9PBPmX9.js (New) 237 bytes 237 bytes 100.0% 🚀
assets/activity-CIQC1C9r.js (New) 234 bytes 234 bytes 100.0% 🚀
assets/message-square-CJ1IJJBt.js (New) 233 bytes 233 bytes 100.0% 🚀
assets/lock-CUCFcWdX.js (New) 206 bytes 206 bytes 100.0% 🚀
assets/rotate-cw-BTK-7lAv.js (New) 201 bytes 201 bytes 100.0% 🚀
assets/play-CxVwVK-b.js (New) 190 bytes 190 bytes 100.0% 🚀
assets/circle-check-tFqHTxCR.js (New) 178 bytes 178 bytes 100.0% 🚀
assets/search-Bszo9HG3.js (New) 174 bytes 174 bytes 100.0% 🚀
assets/maintainer-workflow-WpOapaXz.js (New) 155 bytes 155 bytes 100.0% 🚀
assets/self-hosting-docs-audit-DkcS_D5z.js (New) 141 bytes 141 bytes 100.0% 🚀
assets/circle-DrjOC6Jn.js (New) 130 bytes 130 bytes 100.0% 🚀
assets/modal-jX6-sC83.js (New) 115 bytes 115 bytes 100.0% 🚀
assets/add-scalar-classes-B0WDyWwA.js (Deleted) -2.17MB 0 bytes -100.0% 🗑️
assets/tanstack-vendor-Bl0w0SrS.js (Deleted) -823.76kB 0 bytes -100.0% 🗑️
assets/docs.fumadocs-spike-api-reference-DcMmXqPa.js (Deleted) -442.94kB 0 bytes -100.0% 🗑️
assets/AgentScalarChatInterface.vue-CtDiEmEC.js (Deleted) -201.71kB 0 bytes -100.0% 🗑️
assets/modal-sxTiKAJd.js (Deleted) -184.28kB 0 bytes -100.0% 🗑️
assets/client-DU6ZBOTj.js (Deleted) -146.06kB 0 bytes -100.0% 🗑️
assets/maintainer-panel-Bazoo7-1.js (Deleted) -78.53kB 0 bytes -100.0% 🗑️
assets/ui-vendor-DtI8OCuE.js (Deleted) -57.04kB 0 bytes -100.0% 🗑️
assets/routes-DbUX_aZ6.js (Deleted) -34.83kB 0 bytes -100.0% 🗑️
assets/owner-panel-2OV9QePF.js (Deleted) -27.2kB 0 bytes -100.0% 🗑️
assets/app-BqohjiDo.js (Deleted) -25.65kB 0 bytes -100.0% 🗑️
assets/app.runs-CCDDleMx.js (Deleted) -23.55kB 0 bytes -100.0% 🗑️
assets/miner-panel-CV6U1PQP.js (Deleted) -20.25kB 0 bytes -100.0% 🗑️
assets/docs-source-CrCqFpBR.js (Deleted) -19.46kB 0 bytes -100.0% 🗑️
assets/api._op-DEM-mvOl.js (Deleted) -17.55kB 0 bytes -100.0% 🗑️
assets/self-hosting-docs-audit-Co1MnEBe.js (Deleted) -16.73kB 0 bytes -100.0% 🗑️
assets/app.index-DOj03IS-.js (Deleted) -15.62kB 0 bytes -100.0% 🗑️
assets/playground-panel-D56LY9-k.js (Deleted) -14.49kB 0 bytes -100.0% 🗑️
assets/app.audit-B-oXnINK.js (Deleted) -10.11kB 0 bytes -100.0% 🗑️
assets/extension-DqIw3_To.js (Deleted) -10.04kB 0 bytes -100.0% 🗑️
assets/app.config-generator-Dfr_VUmJ.js (Deleted) -9.88kB 0 bytes -100.0% 🗑️
assets/fairness-ChAW43aE.js (Deleted) -8.34kB 0 bytes -100.0% 🗑️
assets/maintainers-CFZLvq69.js (Deleted) -8.03kB 0 bytes -100.0% 🗑️
assets/miners-CDC37Y6W.js (Deleted) -7.85kB 0 bytes -100.0% 🗑️
assets/agents-CzaGwEV-.js (Deleted) -7.76kB 0 bytes -100.0% 🗑️
assets/commands-panel-DQyjHGLS.js (Deleted) -6.65kB 0 bytes -100.0% 🗑️
assets/maintainer-workflow-DE3SW-bZ.js (Deleted) -6.61kB 0 bytes -100.0% 🗑️
assets/roadmap-DJoTIJSe.js (Deleted) -6.33kB 0 bytes -100.0% 🗑️
assets/digest-panel-W4aUhBMs.js (Deleted) -6.18kB 0 bytes -100.0% 🗑️
assets/repos._owner._repo.quality-DSCI1cBa.js (Deleted) -6.14kB 0 bytes -100.0% 🗑️
assets/docs.index-D25w6dZg.js (Deleted) -5.55kB 0 bytes -100.0% 🗑️
assets/api.index-DrJs_xfo.js (Deleted) -4.7kB 0 bytes -100.0% 🗑️
assets/api-CACvbtej.js (Deleted) -2.69kB 0 bytes -100.0% 🗑️
assets/docs-DdmVBunr.js (Deleted) -2.67kB 0 bytes -100.0% 🗑️
assets/app.workbench-DP-AkLKI.js (Deleted) -1.58kB 0 bytes -100.0% 🗑️
assets/session-Cl3UXx9P.js (Deleted) -1.45kB 0 bytes -100.0% 🗑️
assets/tooltip-BxxHsvMa.js (Deleted) -1.45kB 0 bytes -100.0% 🗑️
assets/tabs-VhZKNjdh.js (Deleted) -1.39kB 0 bytes -100.0% 🗑️
assets/app.repos-DuRtED8T.js (Deleted) -1.07kB 0 bytes -100.0% 🗑️
assets/input-DS_EoX-F.js (Deleted) -796 bytes 0 bytes -100.0% 🗑️
assets/file-cog-C0GaoE6p.js (Deleted) -758 bytes 0 bytes -100.0% 🗑️
assets/docs.ai-summaries-Bh0Y5Hyc.js (Deleted) -506 bytes 0 bytes -100.0% 🗑️
assets/app.maintainer-_H1gKNox.js (Deleted) -502 bytes 0 bytes -100.0% 🗑️
assets/docs.branch-analysis-D-UwAqmL.js (Deleted) -499 bytes 0 bytes -100.0% 🗑️
assets/docs.scoreability-9FB0V6xD.js (Deleted) -499 bytes 0 bytes -100.0% 🗑️
assets/docs.upstream-drift-BCjtkN1Y.js (Deleted) -499 bytes 0 bytes -100.0% 🗑️
assets/docs.federated-fleet-intelligence-Ci4oM_SD.js (Deleted) -498 bytes 0 bytes -100.0% 🗑️
assets/docs.maintainer-install-trust-3fGMLDdj.js (Deleted) -498 bytes 0 bytes -100.0% 🗑️
assets/docs.self-hosting-ai-providers-DQarDG52.js (Deleted) -498 bytes 0 bytes -100.0% 🗑️
assets/docs.self-hosting-backup-scaling-DBOET0NF.js (Deleted) -498 bytes 0 bytes -100.0% 🗑️
assets/docs.self-hosting-configuration-BHnnjlxH.js (Deleted) -498 bytes 0 bytes -100.0% 🗑️
assets/docs.self-hosting-docs-audit-Dij3FOo2.js (Deleted) -498 bytes 0 bytes -100.0% 🗑️
assets/docs.self-hosting-github-app-C7XPzv_R.js (Deleted) -498 bytes 0 bytes -100.0% 🗑️
assets/docs.self-hosting-quickstart-BTnqZFMk.js (Deleted) -498 bytes 0 bytes -100.0% 🗑️
assets/docs.self-hosting-rag--Hn7_zsG.js (Deleted) -498 bytes 0 bytes -100.0% 🗑️
assets/docs.self-hosting-rees-OM4dqADP.js (Deleted) -498 bytes 0 bytes -100.0% 🗑️
assets/docs.self-hosting-rees-analyzers-CFLNeLcB.js (Deleted) -498 bytes 0 bytes -100.0% 🗑️
assets/docs.self-hosting-release-checklist-BCtU2Moa.js (Deleted) -498 bytes 0 bytes -100.0% 🗑️
assets/docs.self-hosting-releases-BBjNAk_Q.js (Deleted) -498 bytes 0 bytes -100.0% 🗑️
assets/docs.self-hosting-security-B9FzdzRQ.js (Deleted) -498 bytes 0 bytes -100.0% 🗑️
assets/docs.self-hosting-troubleshooting-BEd8alDM.js (Deleted) -498 bytes 0 bytes -100.0% 🗑️
assets/docs.self-hosting-unified-ams-orb-sbMfbpLN.js (Deleted) -498 bytes 0 bytes -100.0% 🗑️
assets/docs.ams-config-precedence-B7ll_IQr.js (Deleted) -497 bytes 0 bytes -100.0% 🗑️
assets/docs.ams-deployment-fs1zsw0t.js (Deleted) -497 bytes 0 bytes -100.0% 🗑️
assets/docs.ams-discovery-plane-WCRledaL.js (Deleted) -497 bytes 0 bytes -100.0% 🗑️
assets/docs.ams-env-reference-DOBNlhd1.js (Deleted) -497 bytes 0 bytes -100.0% 🗑️
assets/docs.ams-fleet-manifest-C5Sspf4T.js (Deleted) -497 bytes 0 bytes -100.0% 🗑️
assets/docs.ams-goal-spec-DH68Prfm.js (Deleted) -497 bytes 0 bytes -100.0% 🗑️
assets/docs.ams-kill-switch-incident-DvrUZ_46.js (Deleted) -497 bytes 0 bytes -100.0% 🗑️
assets/docs.ams-observability-GgMStrr3.js (Deleted) -497 bytes 0 bytes -100.0% 🗑️
assets/docs.ams-operations-runbook-BSSVeS3g.js (Deleted) -497 bytes 0 bytes -100.0% 🗑️
assets/docs.ams-sizing-SQXGAaKp.js (Deleted) -497 bytes 0 bytes -100.0% 🗑️
assets/docs.ams-unattended-scheduling-CS-4EVyW.js (Deleted) -497 bytes 0 bytes -100.0% 🗑️
assets/docs.beta-onboarding-DRAYM9HU.js (Deleted) -497 bytes 0 bytes -100.0% 🗑️
assets/docs.capacity-CnfAhmMh.js (Deleted) -497 bytes 0 bytes -100.0% 🗑️
assets/docs.maintainer-self-hosting-BsP6Ik4Y.js (Deleted) -497 bytes 0 bytes -100.0% 🗑️
assets/docs.mcp-clients-kYcJ-2Ue.js (Deleted) -497 bytes 0 bytes -100.0% 🗑️
assets/docs.owner-checklist-vJTeHgpm.js (Deleted) -497 bytes 0 bytes -100.0% 🗑️
assets/docs.quickstart-DY1Ayh3j.js (Deleted) -497 bytes 0 bytes -100.0% 🗑️
assets/docs.github-app-DPtvidV-.js (Deleted) -495 bytes 0 bytes -100.0% 🗑️
assets/docs.maintainer-workflow-CGQvcVtf.js (Deleted) -495 bytes 0 bytes -100.0% 🗑️
assets/docs.privacy-security-BPSIPDGv.js (Deleted) -495 bytes 0 bytes -100.0% 🗑️
assets/docs.troubleshooting-pc9UTWdg.js (Deleted) -495 bytes 0 bytes -100.0% 🗑️
assets/docs.tuning-B1KJxshw.js (Deleted) -495 bytes 0 bytes -100.0% 🗑️
assets/docs.loopover-commands-DtGep9It.js (Deleted) -494 bytes 0 bytes -100.0% 🗑️
assets/sparkles-CqPCbJFa.js (Deleted) -494 bytes 0 bytes -100.0% 🗑️
assets/docs.how-reviews-work-DtwdQxem.js (Deleted) -493 bytes 0 bytes -100.0% 🗑️
assets/app.owner-D45MYISU.js (Deleted) -474 bytes 0 bytes -100.0% 🗑️
assets/app.commands-CfAnRiIN.js (Deleted) -455 bytes 0 bytes -100.0% 🗑️
assets/app.playground-jCqtRHuL.js (Deleted) -442 bytes 0 bytes -100.0% 🗑️
assets/reveal-CK3StjG7.js (Deleted) -442 bytes 0 bytes -100.0% 🗑️
assets/index-fSG1s6VM.js (Deleted) -438 bytes 0 bytes -100.0% 🗑️
assets/app.digest-ivOTDW9w.js (Deleted) -430 bytes 0 bytes -100.0% 🗑️
assets/eye-off-CuhRsQN9.js (Deleted) -430 bytes 0 bytes -100.0% 🗑️
assets/app.miner-BHMvoocr.js (Deleted) -422 bytes 0 bytes -100.0% 🗑️
assets/key-round-mtnKj0_D.js (Deleted) -355 bytes 0 bytes -100.0% 🗑️
assets/bot-BduZcC3q.js (Deleted) -328 bytes 0 bytes -100.0% 🗑️
assets/trash-2-YexQ2E9t.js (Deleted) -328 bytes 0 bytes -100.0% 🗑️
assets/save-bzQcRanV.js (Deleted) -327 bytes 0 bytes -100.0% 🗑️
assets/git-pull-request-arrow-BDvwGub3.js (Deleted) -321 bytes 0 bytes -100.0% 🗑️
assets/wrench-DEhgxAEi.js (Deleted) -303 bytes 0 bytes -100.0% 🗑️
assets/list-checks-3zSIZ9az.js (Deleted) -279 bytes 0 bytes -100.0% 🗑️
assets/shield-BQVIMTqO.js (Deleted) -272 bytes 0 bytes -100.0% 🗑️
assets/workflow-fa2dKZHS.js (Deleted) -265 bytes 0 bytes -100.0% 🗑️
assets/compass-BTG7lxkg.js (Deleted) -251 bytes 0 bytes -100.0% 🗑️
assets/history-BFMLBpcB.js (Deleted) -237 bytes 0 bytes -100.0% 🗑️
assets/activity-Dq9fyrqV.js (Deleted) -234 bytes 0 bytes -100.0% 🗑️
assets/message-square-CxSS3gkX.js (Deleted) -233 bytes 0 bytes -100.0% 🗑️
assets/lock-sjjBI6Im.js (Deleted) -206 bytes 0 bytes -100.0% 🗑️
assets/rotate-cw-DlZml6Ob.js (Deleted) -201 bytes 0 bytes -100.0% 🗑️
assets/play-Bgmc_0uD.js (Deleted) -190 bytes 0 bytes -100.0% 🗑️
assets/circle-check-eg-9G1a5.js (Deleted) -178 bytes 0 bytes -100.0% 🗑️
assets/search-DZEthPCU.js (Deleted) -174 bytes 0 bytes -100.0% 🗑️
assets/maintainer-workflow-B_sY2rRD.js (Deleted) -155 bytes 0 bytes -100.0% 🗑️
assets/self-hosting-docs-audit-CxrFtLVX.js (Deleted) -141 bytes 0 bytes -100.0% 🗑️
assets/circle-7FSUpA9e.js (Deleted) -130 bytes 0 bytes -100.0% 🗑️
assets/modal-BsQ7ViqO.js (Deleted) -115 bytes 0 bytes -100.0% 🗑️

@loopover-orb loopover-orb Bot added the gittensor:bug Gittensor-scored bug fix — scores a 0.05x multiplier. label Jul 21, 2026
@loopover-orb

loopover-orb Bot commented Jul 21, 2026

Copy link
Copy Markdown

Tip

✅ LoopOver review result - approve/merge recommended

Review updated: 2026-07-21 04:22:44 UTC

2 files · 1 AI reviewer · no blockers · readiness 100/100 · CI green · clean

✅ Suggested Action - Approve/Merge

  • safe to merge

Review summary
This is a clean, well-targeted fix: it renders className="dark" and style={{colorScheme:"dark"}} directly on the server-rendered <html> element so SSR output matches the client's expected state, eliminating the hydration-mismatch console error. Since the no-flash script's only job was to apply those same attributes client-side before hydration, it's now correctly identified as redundant and removed along with its now-unused theme-toggle.tsx module. The change is verified not to break anything else (grep-checked: no other imports of THEME_NOFLASH_SCRIPT exist per the diff), and CI passed fully.

Nits — 5 non-blocking
  • No test coverage was added for this SSR/hydration fix; since apps/loopover-ui isn't measured by patch coverage, a manual/E2E note in the PR would still help future contributors trust the fix (apps/loopover-ui/src/routes/__root.tsx).
  • The removed theme-toggle.tsx comment claimed the file 'now only ships the no-flash script' — worth double-checking no other file in the app still expects a ThemeToggle export from this path (unrelated miner-ui component of the same name is a separate app, so not a concern here).
  • Consider adding a lightweight SSR snapshot test (e.g. rendering RootShell and asserting the <html> tag's className/style) to lock in this fix and prevent regression if the no-flash script or dark-mode-only assumption ever comes back.
  • PR author also opened the linked issue — Link an issue that was opened by a different contributor, or provide a rationale for why this self-authored issue represents genuine discovery work.
  • Code changes lack test evidence — Add focused regression tests or explain why existing coverage is sufficient.

Decision drivers

  • ✅ Code review — No blockers (1 reviewer)
  • ✅ Gate result — Passing (No configured blocker found.)
Context & advisory signals — never blocks the verdict
Signal Result Evidence
Linked issue ✅ Linked #7618
Related work ✅ No active overlap found No same-issue or scoped active PR overlap found.
Change scope ✅ 20/20 Low review scope from cached public metadata (1 linked issue).
Validation posture ✅ 25/25 PR body includes validation/test evidence.
Contributor workload ✅ 10/10 Author activity: 23 registered-repo PR(s), 16 merged, 358 issue(s).
Contributor context ✅ Confirmed Gittensor contributor JSONbored; Gittensor profile; 23 PR(s), 358 issue(s).
Improvement ℹ️ None detected risk: low · value: none · LLM: minor
Linked issue satisfaction

Addressed
The diff renders className="dark" and style={{ colorScheme: "dark" }} directly on the SSR <html> tag in RootShell and removes the now-redundant THEME_NOFLASH_SCRIPT and its theme-toggle.tsx module, matching exactly what the issue's fix section asked for.

Review context
  • Author: JSONbored
  • Role context: owner (maintainer lane)
  • Public audience mode: oss maintainer
  • Lane context: Repository is configured for direct PR review.
  • Public profile languages: Python, TypeScript, Ruby, Go, JavaScript, MDX, Shell, Solidity
  • Official Gittensor activity: 23 PR(s), 358 issue(s).
  • PR-specific overlap: none found.
Contributor next steps
  • Start here: Treat this as maintainer-lane context rather than normal contributor-lane activity.
Signal definitions
  • Related work = same linked issue, overlapping active PRs, or title/path similarity.
  • Change scope = cached public metadata such as size labels, draft state, and review-burden hints.
  • Validation posture = whether the PR provides enough public validation/test evidence for maintainer review.
  • Contributor workload = public contributor activity and cleanup pressure, not a repo-wide quality failure.
  • Contributor context = public GitHub/Gittensor identity context; non-Gittensor status is not a blocker.
🧪 Chat with LoopOver

Ask LoopOver a question about this PR directly in a comment — grounded only in the same cached, public-safe facts shown above, never a new claim.

  • @loopover ask &lt;question&gt; answers contribution-quality Q&A with source citations and freshness.
  • @loopover chat &lt;question&gt; answers in natural prose from cached decision-pack facts via local inference (maintainer/collaborator; read-only).
  • A plain-language @loopover mention with a real question is routed to the closest matching read-only command automatically — no exact syntax required.

Full command reference: https://loopover.ai/docs/loopover-commands

🧪 Experimental — new and may change.

Visual preview
Route Viewport Before (production) After (this PR's preview) Diff
/ desktop before /
before /
after /
after /
/ mobile before / (mobile)
before / (mobile)
after / (mobile)
after / (mobile)

Click any thumbnail to open the full-size screenshot. Before = production · After = this PR's preview deploy.

Scroll preview
Route Before (production) After (this PR's preview)
/ before / (scroll)
before / (scroll)
after / (scroll)
after / (scroll)

A short scroll-through clip (desktop) — click either thumbnail to open the full animation. Evidence for scroll-linked behavior a single screenshot can't show.

🟩 Safe / merged · 🟦 Advisory · 🟨 Held for review · 🟥 Blocked / closed


💰 Earn for open-source contributions like this. Gittensor lets GitHub contributors earn for the work they already do — register to start earning →.

Checked by LoopOver, a quiet PR intelligence layer for OSS maintainers.

  • Re-run LoopOver review

@loopover-orb loopover-orb Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LoopOver approves — the gate is satisfied and CI is green.

@loopover-orb
loopover-orb Bot merged commit 785938f into main Jul 21, 2026
13 checks passed
@loopover-orb
loopover-orb Bot deleted the claude/interesting-lamport-980e23 branch July 21, 2026 04:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

gittensor:bug Gittensor-scored bug fix — scores a 0.05x multiplier.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

fix(ui): SSR/CSR html className mismatch causes hydration-mismatch console error on every page load

1 participant