Repository navigation
Conversation
houko
force-pushed
the
feat/editor-agent-rewind-1021
branch
from
November 26, 2026 04:13
78f8342 to
098eaf4
Compare
houko
force-pushed
the
feat/editor-agent-rewind-1021
branch
2 times, most recently
from
November 26, 2026 04:51
e8fc9ad to
732c84a
Compare
houko
force-pushed
the
feat/editor-agent-rewind-1021
branch
from
November 26, 2026 11:16
732c84a to
1090fdb
Compare
houko
force-pushed
the
feat/editor-agent-rewind-1021
branch
from
November 26, 2026 11:58
1090fdb to
84bc8c5
Compare
houko
force-pushed
the
feat/editor-agent-rewind-1021
branch
from
November 26, 2026 12:19
84bc8c5 to
d8961bf
Compare
houko
force-pushed
the
feat/editor-agent-rewind-1021
branch
from
November 26, 2026 12:31
d8961bf to
d5338ed
Compare
houko
force-pushed
the
feat/editor-agent-rewind-1021
branch
from
November 26, 2026 13:00
d5338ed to
e65d63f
Compare
…h isolation, lifecycle, and focus stability
houko
force-pushed
the
feat/editor-agent-rewind-1021
branch
from
November 26, 2026 13:05
e65d63f to
3c3da4e
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.
Implements #1021 (
docs/design/editor/Checkpoints.dc.html— Rewind the conversation · visible undo) using exclusivelydocs/design/editor/Spec.dc.htmltokens in both Dark and Light appearances.Summary
packages/game/editor/agent_rewind.go,agent.go): captures symlink-safe pre-turn project file snapshots plus open scene /game.yamlsnapshots onSubmitAgentPrompt, compacts changed-file deltas on turn completion/stop (AgentTurn.ChangedFiles,SessionIDBefore,SessionIDAfter), and synchronizes clean disk updates immediately into the open scene.agent_ui.go,locales/{en,zh}.yaml): hovering or focusing any sent user message shows Rewind to here, opening the "Rewind to before this message" popover with:AgentRewindBoth,"Undo N files, drop the reply") — restores files from the turns' checkpoints, refreshes open scenes/tabs/files browser, drops later turns, and restoresAgentSessionIDtoSessionIDBeforeso subsequent requests continue from before the rewound message.AgentRewindFilesOnly) — restores files while keeping the conversation thread and session intact.AgentRewindConversationOnly) — drops later turns and rolls back session state while leaving files untouched.AgentComposerRewound), and displays a live-region status banner above the composer summarizing what was rewound with a Redo button (RedoAgentRewind) that restores files, thread turns, session ID, and prior composer draft.docs/en/editor.mdanddocs/zh/editor.md, addedchangelog.d/editor-agent-rewind-1021.md, and recorded the design note in.agents/notes/implemented/feature/2026-11-26-editor-agent-rewind.md.Verification
env -u GOROOT go tool nsgo check ./editor&-target ios ./editorenv -u GOROOT go tool nsgo check ./editor/editorcmd&-target ios ./editor/editorcmdTMPDIR=/tmp env -u GOROOT go tool nsgo test ./editor -run 'TestAgentRewind' -count=3(15/15 passed)TMPDIR=/tmp env -u GOROOT go tool nsgo test ./editor -run 'TestAgent|TestOpenFromTheFileBrowserOpensTabs|TestDiscardFollowsTheProjectBack|TestLightingHandlesAlignOnParallaxLayer|TestLocaleCatalogsComplete|TestDesktopMenuBarMatchesRegistryAndExecutesActions'TMPDIR=/tmp env -u GOROOT go tool nsgo test ./editor/editormcp(41/41 passed)nsgo test -target macos -run TestAgentRewindMacOSScreenshots ./editor/editorcmdcaptured and visually inspected in both Dark and Light Spec appearances besideCheckpoints.dc.htmlbun run verify-notes&env -u GOROOT go run ./tools/changelog checkCloses #1021