Skip to content

feat(editor,editormcp): add review notes and second-round redo for agent turns (#1031) - #1240

Merged
houko merged 1 commit into
mainfrom
feat/editor-review-notes-second-round-1031
Nov 26, 2026
Merged

houko merged 1 commit into
mainfrom
feat/editor-review-notes-second-round-1031

Conversation

@houko

@houko houko commented Nov 26, 2026

Copy link
Copy Markdown
Contributor

Closes #1031

Summary

Adds change-scoped author notes and multi-round redo to the NSGo Game Editor's agent turn Review screen (docs/design/editor/Review.dc.html), built exclusively on Spec tokens (SpecPalette) in both Dark and Light appearances:

  • Turn-scoped notes (packages/game/editor/review.go, review_ui.go):
    • C on a focused change (or clicking its note button) opens an inline note composer under the card ("Note for the agent · not sent") with Add note, Revert and redo with this note, and Cancel.
    • Saved notes render on the change card (with Edit and Remove) and as pins beside noted objects in both the Review stage and the paused 2D viewport.
    • Notes live strictly in memory on the turn and are never written to any scene, prefab, or data file; a note added and removed before sending never reaches the agent.
  • MCP handoff & second-round redo (packages/game/editor/editormcp/review.go):
    • Send N notes dispatches all unsent notes to the agent over MCP (review_notes_get), naming each change's change_id, file, object, field, kind, and note.
    • review_redo atomically refuses un-noted changes, advances the same turn to Round 2+, marks redone changes unseen again with "Redone from your note: …" as their Why, and keeps earlier rounds intact and read-only.
  • Round tabs, banner, filters, paused card, and single-step Undo:
    • Round 1 | Round 2 switcher in the header (Round 1 read-only, Round 2 latest) and round banner beneath the filters ("Round 2 · the agent redid only the N changes you left notes on. Both rounds keep and undo as one step.").
    • Keep (⌘↵) always applies the latest round as one History command so a single Undo (⌘Z) restores every touched file to its exact pre-request bytes.
    • Notes filter chip, paused review card in the Agent panel showing unsent note counts, and Revert all dialog warning that unsent notes are dropped.
  • Docs, changelog, agent note & tests:
    • Updated docs/en/editor.md, docs/zh/editor.md, docs/en/mcp.md, docs/zh/mcp.md, added changelog.d/editor-review-notes-second-round-1031.md, and recorded .agents/notes/implemented/feature/2026-11-26-editor-review-notes-second-round.md.
    • Added unit, MCP acceptance, and real macOS nsgotest screenshot tests (packages/game/editor/review_test.go, packages/game/editor/editormcp/review_test.go, packages/game/editor/editorcmd/review_notes_screenshot_test.go).

Verification

  • env -u GOROOT go tool nsgo check ./editor & -target ios ./editor — passed
  • env -u GOROOT go tool nsgo check ./editor/editormcp & -target ios ./editor/editormcp — passed
  • env -u GOROOT go tool nsgo check ./editor/editorcmd & -target ios ./editor/editorcmd — passed
  • TMPDIR=/tmp env -u GOROOT go tool nsgo test ./editor -run 'TestReview|TestLocaleCatalogsComplete|TestAgent|TestDesktopMenuBarMatchesRegistryAndExecutesActions' — 14 passed, 0 failed
  • env -u GOROOT go tool nsgo test ./editor/editormcp — 47 passed, 0 failed
  • env -u GOROOT go tool nsgo test -run 'TestReviewNotesAndRoundsMacOSScreenshots|TestOpen|TestProjectRoot|TestRun|Example' ./editor/editorcmd — 9 passed, 0 failed
  • env -u GOROOT go tool nsgo test -target macos -run 'TestReviewNotesAndRoundsMacOSScreenshots' ./editor/editorcmd — 1 passed, 0 failed (5 Spec Dark/Light macOS screenshots visually inspected)
  • env -u GOROOT go run ./tools/changelog check — passed
  • bun run verify-notes — passed

@github-actions github-actions Bot added enhancement New feature or request size/XL conflict Conflicts with the target branch; resolve before merging documentation Improvements or additions to documentation pkg/editor area/agents labels Nov 26, 2026
@houko
houko force-pushed the feat/editor-review-notes-second-round-1031 branch from ff72b5a to d5147be Compare November 26, 2026 11:30
@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-review-notes-second-round-1031 branch 2 times, most recently from 7811cdd to 61fb797 Compare November 26, 2026 11:59
@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-review-notes-second-round-1031 branch from 61fb797 to 95a87f2 Compare November 26, 2026 12:14
@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-review-notes-second-round-1031 branch 2 times, most recently from 24cac61 to 09e87f2 Compare November 26, 2026 12:49
@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-review-notes-second-round-1031 branch from 09e87f2 to c588ff6 Compare November 26, 2026 12:59
@github-actions github-actions Bot removed the conflict Conflicts with the target branch; resolve before merging label Nov 26, 2026
@houko
houko merged commit 94fc822 into main Nov 26, 2026
51 checks passed
@houko
houko deleted the feat/editor-review-notes-second-round-1031 branch November 26, 2026 17:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/agents documentation Improvements or additions to documentation enhancement New feature or request pkg/editor size/XL

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Editor: notes on changes in a review, and a second round that redoes only those

1 participant