Skip to content

feat(editor,editormcp): add Agent panel live steps, permission cards, and Stop (#1012) - #1223

Open
houko wants to merge 1 commit into
mainfrom
feat/editor-agent-live-steps-1012
Open

houko wants to merge 1 commit into
mainfrom
feat/editor-agent-live-steps-1012

Conversation

@houko

@houko houko commented Nov 26, 2026

Copy link
Copy Markdown
Contributor

Closes #1012.

Summary

  • Agent panel & right-rail tabs (RightRailView, AgentPanelView): Adds Spec-styled Agent (⌘1) / Inspector (⌘2) right-rail tabs, header status chip (Waiting for you · M:SS / Working / Connected · MCP), and status-bar live agent activity (manual edits stay available) while manual scene editing stays available.
  • Live steps & agent_report_step MCP tool: Streams plain-words steps from editormcp.Server (immediate gray placeholder within 300 ms, single active violet spinner, green done checks) and adds agent_report_step so agents can report steps in their own words along with touched object IDs and receive queued "Add to this request" follow-ups.
  • Permission cards & .nsgo/permissions.yaml (editor.PermissionsVersion = 1): Adds strict versioned YAML permission profiles (cautious, balanced, autonomous) and first-match-wins rules with JSON Schema (editor-permissions.v1.json) and format conformance tests. Gated tool calls pause on the MCP goroutine and render a Spec RoleAlertDialog (LiveRegionPolite) permission card that never steals focus outside the Agent panel (Spec rule 05), supports ⌘↵ (Allow once), ⌥↵ (Always — persists to .nsgo/permissions.yaml with Undo toast), ⌘⌫ (Deny — never retried automatically in the same request, shows "You denied … · continued without it" + Allow now, and records unchecked items in the summary), ↑/↓, and Esc (leaves card unanswered while the agent keeps waiting).
  • Stop & global ⌘.: Stop and ⌘. from anywhere (modal dialogs included) cancel the active request, keep completed steps/edits pending for review, and display the "Agent stopped" toast with Review. Esc never stops the agent.

Verification

  • env -u GOROOT go run ./cmd/gameschema -check
  • env -u GOROOT go tool nsgo check (macOS + -target ios) on ., ./editor, ./editor/editormcp, ./editor/editorcmd
  • env -u GOROOT go tool nsgo test -run TestFormatsPage .
  • env -u GOROOT go tool nsgo test ./editor/editormcp (41 passed)
  • TMPDIR=/tmp env -u GOROOT go tool nsgo test on all new Agent/Permissions/Stop tests, Spec focus/contrast tests, and regression tests (TestOpenFromTheFileBrowserOpensTabs, TestDiscardFollowsTheProjectBack, TestLightingHandlesAlignOnParallaxLayer, TestLocaleCatalogsComplete, TestDesktopMenuBarMatchesRegistryAndExecutesActions) (20 passed)
  • env -u GOROOT go tool nsgo test -target macos -run TestAgentWorkingScreenshots ./editor/editorcmd — captured and visually inspected Dark & Light macOS screenshots (Working + permission card, Denied + Not playtested summary, Stopped + "Agent stopped" toast)
  • bun run verify-notes & env -u GOROOT go run ./tools/changelog check

@github-actions github-actions Bot added documentation Improvements or additions to documentation pkg/cmd pkg/editor area/website pkg/game area/agents conflict Conflicts with the target branch; resolve before merging enhancement New feature or request size/XL labels Nov 26, 2026
@houko
houko force-pushed the feat/editor-agent-live-steps-1012 branch 2 times, most recently from cef28e6 to 350741f Compare November 26, 2026 12:16
@github-actions github-actions Bot added conflict Conflicts with the target branch; resolve before merging and removed conflict Conflicts with the target branch; resolve before merging labels Nov 26, 2026
@houko
houko force-pushed the feat/editor-agent-live-steps-1012 branch from 350741f to 2a7dcb0 Compare November 26, 2026 12:52
@github-actions github-actions Bot added conflict Conflicts with the target branch; resolve before merging and removed conflict Conflicts with the target branch; resolve before merging labels Nov 26, 2026

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/agents area/website conflict Conflicts with the target branch; resolve before merging documentation Improvements or additions to documentation enhancement New feature or request pkg/cmd pkg/editor pkg/game size/XL

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Editor: the agent's live steps, permission cards and Stop in the Agent panel

1 participant