Repository navigation
feat(editor,editormcp): show live agent edits in viewport and scene tree (#1013) - #1225
Merged
Merged
Conversation
houko
force-pushed
the
feat/editor-agent-live-edits-1013
branch
2 times, most recently
from
November 26, 2026 12:17
4e84483 to
8d44bd6
Compare
…gration, viewport-only pulse, theme reactivity, and MCP step guards
houko
force-pushed
the
feat/editor-agent-live-edits-1013
branch
from
November 26, 2026 12:52
8d44bd6 to
6973e14
Compare
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.
Closes #1013
Summary
packages/game/editor/agent_live.go,agent_live_ui.go): Pending agent turns compute a structural baseline diff and render inspectable overlays (ViewportLiveOverlays/VisibleViewportLiveOverlays) in both 2D and 3D viewports usingSpecPalettetokens (docs/design/editor/Spec.dc.html,Working.dc.html,Main.dc.html):+ <name>mono pill.<field> <old> → <new>mono pill (also synced into the Inspector's review change markers).<name> removedpill.resolvePillRect) prevents adjacent or stacked pills from overlapping.BeginAgentStep/editormcp.Server.BeginStep), selection keeps its 2D/3D handles while the agent outline sits 3 px further out (OutsetPx: 6). Manual edits on touched objects are refused withErrAgentTouchingObjectacross viewport drags, 2D/3D gizmos/handles/shapes, inspector (with a violet read-only banner), scene tree (rename/reparent), context menu, and directEditormutation methods untilEndAgentStep, while untouched objects stay editable.NEW,MOD, struck-throughDELghost rows, and the violet agent-working dot untilKeepAgentTurn(collapsing to one undo step) orRevertAgentTurn. The toolbar header pill tracks Working, Waiting, and Pending Review (with Keep/Revert) states and hides when Idle.OverlayLegendOpen()is true); each row (Selection,Agent working,Added,Changed,Removed,Problem) is an interactiveRoleSwitchpersisted per-user inEditorSettings.HiddenOverlayKinds(editor.yaml/apps/website/public/schemas/editor-settings.v1.json).editormcpnorEditormoves the 2D or 3D viewport camera on the agent's behalf.docs/en/editor.mdanddocs/zh/editor.md, addedchangelog.d/editor-agent-live-edits-1013.md, and recorded.agents/notes/implemented/feature/2026-11-26-editor-agent-live-edits.md.Verification
env -u GOROOT go tool nsgo check(macOS and-target ios) on./editor,./editor/editormcp,./editor/editorcmd— passed.TMPDIR=/tmp env -u GOROOT go tool nsgo test ./editor(TestAgent*,TestOpenFromTheFileBrowserOpensTabs,TestDiscardFollowsTheProjectBack,TestLightingHandlesAlignOnParallaxLayer,TestLocaleCatalogsComplete,TestDesktopMenuBarMatchesRegistryAndExecutesActions,TestEditorSystemAppearanceLiveSwitchWithoutRestart,TestSpec*) — 18/18 passed.env -u GOROOT go tool nsgo test ./editor/editormcp— 39/39 passed (includingTestMCPLiveTurnOverlaysLegendReadOnlyAndKeepRevert).TMPDIR=/tmp env -u GOROOT go tool nsgo test -target macos -run TestAgentLiveEditsMacOSScreenshots ./editor/editorcmd— captured and visually inspected Dark Working, Light Working, and Dark Pending Review native macOS screenshots (temporary PNGs removed before commit).env -u GOROOT go tool nsgo test . -run TestFormat— 63/63 passed.env -u GOROOT go run ./cmd/gameschema -check,env -u GOROOT go run ./tools/changelog check, andbun run verify-notes— all passed.