Repository navigation
feat(editor,editormcp): persistent per-turn checkpoints under .nsgo/checkpoints and History panel - #1224
Open
houko wants to merge 1 commit into
Open
feat(editor,editormcp): persistent per-turn checkpoints under .nsgo/checkpoints and History panel#1224houko wants to merge 1 commit into
houko wants to merge 1 commit into
Conversation
houko
force-pushed
the
feat/editor-turn-checkpoints-1018
branch
3 times, most recently
from
November 26, 2026 11:37
6bb8596 to
863a23c
Compare
houko
force-pushed
the
feat/editor-turn-checkpoints-1018
branch
from
November 26, 2026 12:00
863a23c to
138e5fb
Compare
houko
force-pushed
the
feat/editor-turn-checkpoints-1018
branch
2 times, most recently
from
November 26, 2026 12:36
170a128 to
43dd6ff
Compare
…go/checkpoints and History panel (#1018)
houko
force-pushed
the
feat/editor-turn-checkpoints-1018
branch
from
November 26, 2026 12:48
43dd6ff to
b2e4f01
Compare
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.
Closes #1018
Summary
.nsgo/checkpoints/:BeginAgentTurn/RunAgentTurn,RecordCheckpointFile,WriteAgentFile,DeleteAgentFile,History.beforeExecute, and automatic wrapping ofeditormcpActionEditcalls)—covering scenes, prefabs, data tables,game.yaml, Go code, and verbatim binary media alike.manifest.yaml,editor.CheckpointVersion = 1, JSON Schemacheckpoint.v1.json) per checkpoint alongside raw saved files underfiles/<path>, writes.gitignorefiles automatically, and enforces a configurable byte cap (Editor.CheckpointMaxBytes, defaulting to 128 MiB) that drops the oldest completed checkpoints.TakeCheckpointBeforeTask,RunTaskWithCheckpoint) and automations (TakeCheckpointBeforeAutomation,RunAutomationWithCheckpoint,game_playtest, and automation-registered MCP edit tools) always persist a checkpoint before they start.⌘Y) with read-only preview and one-step undoable Restore:HistoryPanelView(Spec Dark & Light tokens matchingCheckpoints.dc.htmlandSpec.dc.html) lists persisted checkpoints reloaded onOpenProjectalongside current-session edits and Git milestones, grouped by day withAll/You/Agentfilters.Previewing … · editing is off;Escor Now exits preview) without mutatingDocorHistory.RestoreCheckpoint) atomically restores all touched files on disk, reloads open tabs andgame.yaml, and records the restore as one undoablefallibleCommandsoUndo(⌘Z) puts the entire turn back byte-for-byte.checkpoint_list(ActionRead) andcheckpoint_restore(ActionEdit) ineditormcp.docs/en/{editor,formats}.md,docs/zh/{editor,formats}.md,apps/website/public/schemas/checkpoint.v1.json,changelog.d/editor-turn-checkpoints-1018.md, and.agents/notes/implemented/feature/2026-11-26-editor-turn-checkpoints.md.Verification
env -u GOROOT go run ./cmd/gameschema -checkenv -u GOROOT go tool nsgo check ./editor,./editor/editormcp,./editor/editorcmd(desktop &-target ios)env -u GOROOT TMPDIR=/tmp go tool nsgo test ./editor/editormcp(39/39 passed)env -u GOROOT TMPDIR=/tmp go tool nsgo test ./cmd/gameschema(24/24 passed)env -u GOROOT TMPDIR=/tmp go tool nsgo test -run TestFormatsPage .(passed)env -u GOROOT TMPDIR=/tmp go tool nsgo teston./editorcheckpoint, history, format conformance, locale, shortcut, command, save/revert, disk watch, and regression suites (all passed)env -u GOROOT TMPDIR=/tmp go tool nsgo test -target macos -run TestHistoryCheckpointsMacOSScreenshots ./editor/editorcmd(real macOS screenshots captured and visually verified for Dark preview, Dark restored, and Light preview)bun run verify-notes&env -u GOROOT go run ./tools/changelog check