Repository navigation
Conversation
…s stretch of a face - A pane restored onto a view whose plugin is gone now shows a selected, amber 'Unavailable view' tab with a close button, and the pane offers 'Close this view', returning to 3D (2D when the other pane already shows 3D). - Wall face scripts take an optional u0/u1 stretch along the wall. author_scene builds a room's wallCode only on that room's stretch, so a bathroom's tile no longer runs on into the bedrooms along a shared wall; rooms sharing one code share one build. Wet-room, room and default-finish readings and the paint refusal follow the stretch. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…stered their views A restored tab flashed 'unavailable' while the project loaded: its install list is empty until then, and a plugin registers its views as it loads. The tab bar and the pane now wait for the project to load plus a short settle window, showing the pane as loading meanwhile. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… and MCP One shared contract and core planner/operation: a room's walls (only the room's own stretch of each face, optionally to toHeight), a room's floor, one wall face or a slab's top. Hosts compile the module once per surface (the chat in the editor tab, the MCP through its script host). A face another room's script covers is skipped and named; remove takes a finish off. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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 9f0340e. Configure here.
…piled Each compile now carries the inputs it was built for; the operation compares them with the replanned surface and refuses scene_changed, so tiles built for a wall's old length never land on its new one. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A server wraps its script host (hostFinishCompiler); a page can pass its own sandbox, so an in-page agent compiles finishes as the chat does. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This branch has not been deployed
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 does this PR do?
u0/u1stretch.author_scenebuilds a room'swallCodeonly on that room's stretch of each wall, so a bathroom's tile no longer runs into the bedrooms along a shared wall; rooms with the same code share one build. Wet-room, room and default-finish readings, the paint refusal and the skirting gap follow the stretch. Old scenes load unchanged (no stretch = whole face).set_finish_script(chat and MCP, one contract): builds a three.js finish on what already stands — a room's walls (only its own stretch, optionally totoHeight), a room's floor, one wall face or a slab's top. Core plans each surface and its module inputs; the host compiles once per surface. A face another room's script covers is skipped and named;remove: truetakes a finish off.How to test
set_finish_scripton the bathroom withsurface: 'walls', a tile module andtoHeight: 2.1. The tile stops at the partition and at 2.1 m; the bedroom keeps its paint.remove: truetakes it off.author_scenewith a roomwallCodeon a wall that runs past the room: the build covers only that room's stretch.Ran:
bun testin core (src, 7317 pass), mcp (full, 1532 pass),editorviews tests;tsgo --noEmitfor core, editor, geometry-script and mcp;bun run i18n:check.Screenshots / screen recording
Not added yet.
Checklist
bun devbun checkto verify)mainbranch🤖 Generated with Claude Code
Note
Medium Risk
Changes how wall finishes are authored, compiled, and applied across author-scene, agent/MCP tools, and geometry refresh; behavior is covered by new tests but affects shared-wall scenes.
Overview
Adds
set_finish_scriptend-to-end (coreplanFinishScript/setFinishScript, agent tool, MCP compile-and-patch flow) so tiles and other three.js finishes can target a room's walls (per-face stretches), floor, a single wall face, or a slab top, with skip/remove semantics andscene_changedwhen geometry shifts during compile.Wall face scripts now support
u0/u1along the wall plus optional height;author_sceneapplies each room'swallCodeonly on that room's stretch (shared walls stop at partitions; matching codes merge), and downstream readers (wet room layers, finish readings, paint refusal, skirting) respect partial scripts. Legacy scenes without stretches still mean the full face.The editor waits ~600ms after hydration before treating a layout's missing plugin view as unavailable: an amber tab and pane actions call
leaveUnavailableViewto return to 3D (or 2D if the other pane is 3D), with i18n for the new copy.Reviewed by Cursor Bugbot for commit 400e4b1. Bugbot is set up for automated code reviews on this repo. Configure here.