Skip to content

fix(ui): apps/loopover-ui's vite preview is broken for the Cloudflare Workers build target#7625

Merged
JSONbored merged 1 commit into
mainfrom
claude/fix-ui-preview-cloudflare-target
Jul 21, 2026
Merged

fix(ui): apps/loopover-ui's vite preview is broken for the Cloudflare Workers build target#7625
JSONbored merged 1 commit into
mainfrom
claude/fix-ui-preview-cloudflare-target

Conversation

@JSONbored

Copy link
Copy Markdown
Owner

Closes #7621

Summary

  • apps/loopover-ui's preview script (vite preview) 500s on every request after any build --
    reproduced directly on main: Error [ERR_MODULE_NOT_FOUND]: Cannot find module '.../dist/server/server.js'. Root cause: @tanstack/start-plugin-core's preview integration derives
    the expected filename from the vite-level server entry (server.js), but this app's pinned nitro
    cloudflare-module preset repackages the build as dist/server/index.mjs instead -- confirmed via a
    real build, and confirmed no upstream fix exists yet (identical logic between the installed
    @tanstack/start-plugin-core@1.171.19 and latest 1.171.24). Fixes apps/loopover-ui's own preview
    script to use wrangler dev against the real built Worker instead -- the same mechanism
    deploy:built/version:built already use, and what the root's existing ui:preview script already
    does for the full monorepo build.

Scope

  • The PR title follows type(scope): short summary Conventional Commit format, for example fix(api): restore profile access checks.
  • 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.
  • I linked a currently open issue this PR resolves (e.g. Closes #123) — a linked open issue is required for every contributor PR.

Validation

  • git diff --check
  • npm run actionlint
  • npm run typecheck
  • npm run test:coverage locally; codecov/patch requires ≥99% coverage of the lines AND branches you changed (aim for 100% on your diff so CI variance does not fail near the threshold). Global coverage is a non-blocking trend with a loose 90% backstop, not the gate.
  • npm run test:workers
  • npm run build:mcp
  • npm run test:mcp-pack
  • npm run ui:openapi:check
  • npm run ui:lint
  • npm run ui:typecheck
  • npm run ui:build
  • npm audit --audit-level=moderate
  • New or changed behavior has unit/integration tests for new branches, fallback paths, and sanitizer boundaries

If any required check was skipped, explain why:

  • The fix is a package.json script value + a test/** regression test + a docs update, none under
    src/**, so it owes no Codecov patch-coverage number. Verified end-to-end, not just asserted: built the
    real app, ran the fixed preview script, and confirmed a genuine 200 with real SSR-rendered HTML
    (correct <title>, meta tags, asset references) via a direct HTTP request — both the raw failure and
    the fix were reproduced against a real build, not inferred.

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.
  • API/OpenAPI/MCP behavior is updated and tested where needed.
  • UI changes use live API data or real empty/error/loading states, not production mock/demo fallbacks.
  • Visible UI changes include a UI Evidence section below with JPG/JPEG or PNG screenshots arranged as organized, captioned, clickable thumbnails. SVG screenshots are not used as review evidence. Review-only screenshots or recordings are not committed to the repository.
  • Public docs/changelogs are updated where needed; changelogs are only edited for release-prep PRs.

UI Evidence

Not applicable — fixes a broken local verification command, no change to the deployed app itself.

Notes

apps/loopover-ui's preview script (vite preview) 500s on every
request after any build: Error [ERR_MODULE_NOT_FOUND]: Cannot find
module '.../dist/server/server.js'. Reproduced directly on main.

vite.config.ts pins nitro's cloudflare-module preset, which
repackages the server build as dist/server/index.mjs (confirmed via
a real build). @tanstack/start-plugin-core's vite preview integration
derives the file it imports from the vite-level server entry
(tanstackStart.server.entry: "server" -> server.js), with no
awareness of nitro's repackaging -- server.js is never produced.
Confirmed identical logic between the installed
@tanstack/start-plugin-core@1.171.19 and latest 1.171.24: no
upstream fix exists yet for a nitro-repackaged deploy target.

Use wrangler dev against the real built Worker instead -- the same
mechanism deploy:built/version:built already use just above this
script, and what the root's existing ui:preview already does for the
full monorepo build. apps/loopover-miner-ui's own vite preview is
unaffected (plain Node preset, no nitro repackaging) and left
untouched.

Verified end-to-end: built the real app, ran the fixed preview
script, confirmed a genuine 200 with real SSR-rendered HTML via a
direct HTTP request. Added a regression test asserting the script's
exact value, and documented the root cause + correct verification
command in the contributing skill docs.

Closes #7621
@superagent-security

Copy link
Copy Markdown
Contributor

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

@JSONbored JSONbored self-assigned this Jul 21, 2026
@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 4256d93 Commit Preview URL

Branch Preview URL
Jul 21 2026, 04:27 AM

@codecov

codecov Bot commented Jul 21, 2026

Copy link
Copy Markdown

Bundle Report

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

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

✅ Suggested Action - Approve/Merge

  • safe to merge

Review summary
This PR fixes apps/loopover-ui's preview script by switching from vite preview (broken due to a mismatch between @​tanstack/start-plugin-core's expected server.js filename and nitro's cloudflare-module preset actually producing dist/server/index.mjs) to wrangler dev against the real built Worker, mirroring the existing deploy:built/version:built pattern. The change is a single-line, well-scoped script fix with a regression test asserting the exact script string and documentation explaining the root cause and workaround. The fix is at the correct layer since it works around an upstream limitation rather than patching a symptom, and the added test, while trivial (just checking a string match), does correctly guard against reverting to the broken vite preview.

Nits — 4 non-blocking
  • The added test in test/unit/loopover-ui-preview-script.test.ts merely asserts the exact script string rather than verifying the underlying behavior (that wrangler dev actually serves the built Worker), so it only guards against accidental reversion, not against a similar future breakage.
  • The regression test and doc comment are heavily duplicated (nearly identical prose in both the test file and reference.md), which could drift out of sync if the workaround needs updating later.
  • Consider extracting the shared explanation into a single source (e.g., link the test comment to the reference.md section) to avoid maintaining two copies of the same rationale.
  • If wrangler CLI options change in the future, the hardcoded string match in the test will need manual updates — consider a more resilient check if that's a concern.

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 #7621
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 ℹ️ Insufficient signal risk: clean · value: insufficient-signal · LLM: moderate
Linked issue satisfaction

Addressed
The PR changes apps/loopover-ui/package.json's preview script to the exact wrangler dev command specified, adds a regression test asserting that exact script value, and documents the root cause and correct verification command in the contributing skill docs.

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

@JSONbored
JSONbored merged commit 8bcbee5 into main Jul 21, 2026
18 checks passed
@JSONbored
JSONbored deleted the claude/fix-ui-preview-cloudflare-target branch July 21, 2026 04:38
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): apps/loopover-ui's vite preview is broken for the Cloudflare Workers build target

1 participant