Skip to content

feat(editor): agent threads per line of work, grouped by scene - #1226

Merged
houko merged 1 commit into
mainfrom
feat/editor-agent-threads-1019
Nov 26, 2026
Merged

houko merged 1 commit into
mainfrom
feat/editor-agent-threads-1019

Conversation

@houko

@houko houko commented Nov 26, 2026

Copy link
Copy Markdown
Contributor

Closes #1019

Summary

  • Strict versioned thread format under .nsgo/threads/<id>.yaml: added AgentThread (AgentThreadVersion = 1, JSON Schema https://game.nsgo.dev/schemas/agent-thread.v1.json) storing thread metadata, scenePath, external agent sessionId, timestamps, and chronological requests with steps, review outcome (pending, kept, reverted), change counts, changed objects/files, and historyStep links. Writing threads automatically creates .nsgo/.gitignore (*) and enforces symlink containment within the project root.
  • Scene-grouped thread switcher, search, and ⌘N (ScopeAgent): groups threads under <OPEN_SCENE> · OPEN SCENE, other scenes (<SCENE>), and PROJECT · NO SCENE, with relative age and state lines (now · 3 changes to review, 1 h ago · kept 5 of 6, yesterday · reverted, or file names). Opening or switching scenes enters that scene's most recent thread (or a fresh draft) and never carries a thread across scenes.
  • Folded earlier requests, History link, and Jump to latest: earlier reviewed requests fold to one line each, expand to show prompt/detail/steps and Open this step in History (opening the unified History view highlighted on that step), and display a floating Jump to latest pill while expanded.
  • Empty-thread view: lists what the agent reads with every request (<scene> · whole scene, brief.yaml, AGENTS.md, Viewport image) and starter prompts safely read from brief.yaml (FROM YOUR BRIEF).
  • Inspector footer attribution: pins Changed in “<request>” · <age> at the bottom of the Inspector for the latest non-reverted request touching the selected object (including automatic attribution from editormcp's scene_edit) and opens/expands that request on click.
  • Spec tokens, localization, schemas, and docs: built purely with SpecPalette tokens (verified on macOS in both Dark and Light appearances), localized in en.yaml and zh.yaml, documented in docs/{en,zh}/editor.md and docs/{en,zh}/formats.md, with JSON schema, changelog fragment, and DeepSeek note.

Verification

  • go run ./cmd/gameschema -check
  • go tool nsgo check + go tool nsgo check -target ios on ./editor, ./editor/editormcp, ./editor/editorcmd
  • go tool nsgo test -run TestFormatsPage .
  • go tool nsgo test ./editor/editormcp (all 39 tests including TestProxyFindsTheEditor, TestServerListsToolsAndResources, and TestSceneEditRecordsAttributionOnActiveAgentThread)
  • TMPDIR=/tmp go tool nsgo test on ./editor covering all new TestAgentThread* tests, TestAgentThreadFormatConformance, and regressions (TestOpenFromTheFileBrowserOpensTabs, TestDiscardFollowsTheProjectBack, TestLightingHandlesAlignOnParallaxLayer, TestLocaleCatalogsComplete, TestDesktopMenuBarMatchesRegistryAndExecutesActions, TestShortcuts*, TestInspector*, TestF6*, TestDialogTraps*, TestFocusStability*)
  • Real macOS nsgotest screenshots via go tool nsgo test -target macos -screenshots .nsgo/test/screenshots/macos -run TestAgentThreadsMacOSScreenshots ./editor/editorcmd visually verified across Dark & Light themes (temporary PNGs deleted before commit)
  • go run ./tools/changelog check and bun run verify-notes

@github-actions github-actions Bot added conflict Conflicts with the target branch; resolve before merging enhancement New feature or request size/XL documentation Improvements or additions to documentation pkg/cmd pkg/editor area/website pkg/game area/agents labels Nov 26, 2026
@houko
houko force-pushed the feat/editor-agent-threads-1019 branch from d84fb6c to 2e0c56a Compare November 26, 2026 11:24
@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-threads-1019 branch from 2e0c56a to 84eecc7 Compare November 26, 2026 11:58
@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-threads-1019 branch from 84eecc7 to 67ac163 Compare November 26, 2026 12:14
@github-actions github-actions Bot removed the conflict Conflicts with the target branch; resolve before merging label Nov 26, 2026
@houko
houko force-pushed the feat/editor-agent-threads-1019 branch from 67ac163 to 63abf28 Compare November 26, 2026 12:15
@github-actions github-actions Bot added the conflict Conflicts with the target branch; resolve before merging label Nov 26, 2026
@houko
houko force-pushed the feat/editor-agent-threads-1019 branch from 63abf28 to ebabc01 Compare November 26, 2026 12:33
@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-threads-1019 branch from ebabc01 to 05b0709 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-agent-threads-1019 branch from 05b0709 to 4f87997 Compare November 26, 2026 17:43
@github-actions github-actions Bot removed the conflict Conflicts with the target branch; resolve before merging label Nov 26, 2026
@houko
houko force-pushed the feat/editor-agent-threads-1019 branch from 4f87997 to 0a4c9b4 Compare November 26, 2026 17:44
@houko
houko merged commit e43f976 into main Nov 26, 2026
47 of 51 checks passed
@houko
houko deleted the feat/editor-agent-threads-1019 branch November 26, 2026 17:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Editor: agent threads per line of work, grouped by scene

1 participant