Repository navigation
Conversation
…ption, and first-person UI issues
…t locale bootstrap
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes using high effort and found 1 potential issue.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit 8f78bdf. Configure here.
| // the current 2D draft, run reference, and typed fields intact. | ||
| return | ||
| } else { | ||
| nextStart = createdWall ? (createdWall.end as WallPlanPoint) : publishedNextStart |
There was a problem hiding this comment.
2D-only chaining ignores double-click
Medium Severity
Removing the !wallDraftIsRun() stop makes 2D-only Walls mode keep chaining, but handleWallPlacementPoint never checks detail. The 3D tool stops a run on a double-click; in 2D-only that second click is just a too-short segment and is ignored, so the draft stays live until Escape, a T-junction, or a room close.
Additional Locations (1)
Reviewed by Cursor Bugbot for commit 8f78bdf. Configure here.
Aymericr
left a comment
There was a problem hiding this comment.
Thanks @saadmooh. Continuous chaining and collinear transit are both things people ask for. Some context first: #1249 landed typed wall length and angle (including the angle work from your #1207), so this branch now conflicts with main in the wall tool and floor-plan panel.
To get this reviewable:
- Split it into three PRs. This bundles wall chaining, collinear transit, and a startup/bundle refactor (lazy
bootstrap, dynamic plugin imports, lazy locale loading,SuspensearoundFloorplanPaneland first-person). They touch different owners and carry different risks, and most of Bugbot's open findings are in the lazy-loading half. I'd start with chaining on its own, then transit, then the startup work. - Rebase onto current
mainand reuse theusePlacementTyping/useSegmentDraftChainstate that's there now rather than adding a parallel path. - Open Bugbot findings worth fixing in the chaining PR: split-view draft surviving a 3D chain stop (high), split view desyncing on a failed create, 2D-only chaining ignoring double-click, and the 2D transit using a stale origin. For the startup PR: one failed plugin chunk blocking all plugins (
Promise.allplusexternalsKickedOffset before await), the first-person HUD disappearing during lazy load, stale/failed locale loads winning, andzh-Hans-CNaliases no longer resolving. - Screen recording of chaining in 3D, 2D and split view, plus a transit along an existing wall.
Happy to review each piece quickly once it's split.


What does this PR do?
Wallsmode (3D and 2D/split): Removes the early!wallDraftIsRun()stop inpackages/nodes/src/wall/tool.tsxandpackages/editor/src/components/editor/floorplan-panel.tsxso consecutive walls chain directly from the previous wall's exact resolved endpoint (createdWall.end). Chains still terminate cleanly on room close, T-junctions, double-click, orEscape.wallSegmentsCoverSegmentfrom@pascal-app/core(packages/core/src/systems/wall/wall-topology.tsandpackages/core/src/index.ts) and handles collinear segments covered by existing walls in 3D and 2D drafting (gating the 2D collinear transit check to 2D-only mode in split view). Moving along an existing wall centerline advances the draft origin without duplicating the wall, so perpendicular partition walls start strictly on the host centerline and T-join cleanly.apps/editor/lib/bootstrap.ts) out ofRootLayout(apps/editor/app/client-bootstrap.tsx) into 3D/scene entrypoints (scene-loader.tsx,embed-viewer.tsx,import-client.tsx) so non-3D routes (/,/login,/settings,/setup) do not load Three.js,@pascal-app/viewer,@pascal-app/editor,@pascal-app/nodes, or external 3D plugins.apps/editor/lib/bootstrap.tsto dynamicimport(...)scheduled viarequestIdleCallback, and isolates@webxr/pluginbehindReact.lazyinwebxr-feature-gate.tsx,webxr-enabled-runtime.tsx, andscene-loader.tsx.@pascal-app/editor/locales/lazy(packages/editor/src/i18n/lazy-locales.ts) and updatesapps/editor(layout.tsx,client-bootstrap.tsx,dev-locales.ts) to register English upfront and load non-English locales (es,fr,ja,zh-CN) and deven-XAonly on demand.GLB,USDZ,IFC,STL,OBJ,3MF, Manifold) insidepackages/editor/src/components/editor/export-manager.tsx, and code-splitsFloorplanPanel,FirstPersonControls/FirstPersonOverlay,RiserDiagramPanel, andSnapshotCaptureOverlayinsidepackages/editor/src/components/editor/index.tsx.dev:fastscript in rootpackage.jsonand suppresses thenode:sqliteExperimentalWarningin Next.js dev scripts.@react-three/drei<Html>unmount patch: Addspatches/@react-three%[email protected]viapatchedDependenciesso<Html>reuses itsReactDOMroot across effect re-runs (StrictMode / target changes) and defers real unmounts viaqueueMicrotask, fixing React 19 synchronous unmount errors andNotFoundError: removeChild.wallSegmentsCoverSegmentinpackages/core/src/systems/wall/wall-topology.test.tsand integration tests for chained off-grid typed walls and collinear transit T-junctions inpackages/nodes/src/wall/tool-chaining.test.tsx.How to test
bun run dev:fast(orbun dev) and open/— confirm it renders cleanly without loading 3D plugin chunks or showing thenode:sqlitedev overlay warning./project/<id>) and verify the 3D scene loads cleanly with no<Html>synchronous-unmount orremoveChildconsole errors, and that 2D floorplan, plugins, and exports still load and work on demand.Grid (0.5 m)snapping mode (in 3D, 2D, or split view). Click a start point, type3.2and press Enter to place Wall 1 — verify the tool automatically chains from[3.2, 0]without a manual re-click, and closing a 4-wall room leaves zeroNot joinedgaps.2.3along its length and press Enter — verify no duplicate wall is created and the draft origin advances2.3 malong the host wall; turn 90° and place a partition wall to verify a clean T-junction.bunx biome checkon all changed/added files (0 errors)bun --cwd packages/editor check-types(tsgo --noEmit, 0 errors)bun test packages/editor/src/i18n(5 pass, 0 fail)bun --cwd apps/editor test(76 pass; 2 pre-existing Windows path failures inlib/css-build.test.ts)GET http://localhost:3002/returns HTTP 200 on a fresh.nextcache withbun run dev:fastScreenshots / screen recording
Not added yet.
Checklist
bun devbun checkto verify)mainbranchNote
Medium Risk
Broad changes to bootstrap, plugin discovery, i18n hydration, and wall authoring logic; failures in lazy loading or chain sync could affect first paint or drafting in split view.
Overview
This PR shrinks editor cold start by deferring heavy work: the 3D node registry bootstrap moves from the root layout into 3D entry routes (
scene-loader,embed-viewer,import), external plugins load via dynamicimport()onrequestIdleCallback, WebXR/UI chunks useReact.lazy, non-English locales and deven-XAload on demand, and large export pipelines plus floorplan/riser/snapshot panels code-split. Plugin discovery is hardened with per-loader error handling andPromise.allSettledinextendPluginDiscovery. A@react-three/drei<Html>patch anddev:fast/ExperimentalWarningtweaks support React 19 dev ergonomics.Wall drafting chains consecutive segments from exact resolved endpoints in both 3D and 2D/split view, supports collinear transit along existing walls via exported
wallSegmentsCoverSegment, and addswallOutcome: 'refused'on the segment draft chain so split view stays synced when a commit is rejected.Reviewed by Cursor Bugbot for commit 8f78bdf. Bugbot is set up for automated code reviews on this repo. Configure here.