Skip to content

A nested workflow's file, edited unsaved, previews in the views showing it - #65

Merged
endrix merged 1 commit into
mainfrom
feat/nested-view-editing
Oct 2, 2026
Merged

endrix merged 1 commit into
mainfrom
feat/nested-view-editing

Conversation

@endrix

@endrix endrix commented Oct 2, 2026

Copy link
Copy Markdown
Owner

Phase 3 of docs/proposals/single-editor-hierarchy.md (after #64).

Navigating in place, an editor can show a nested workflow defined in another file. Checking what editing such a view needs showed that most of it already held:

  • Undo and redo save whatever file they change (ReversibleWorkspaceEditCommand.persist), so a nested file is never left dirty by the diagram. The proposal's earlier claim that it was left unsaved was wrong; that section is corrected.
  • A save or an on-disk change (git, a formatter, the agent) already refreshes every open editor. Since One editor per workflow hierarchy: nested workflows in any file open in place #64, that refresh reloads the view shown at its trail. A test pins this.

What was missing: live preview. It fired only for an editor's own document, so typing in a nested file's text editor changed nothing in the view showing it until you saved. previewInViewsShowing now refreshes every editor whose shown file is the edited one, with that file's text. dispatchModelRefresh takes contentUri so it keeps content that belongs to the shown file, and still reloads from disk otherwise.

Chat: the turn context now also says the diagram's tools act on the view's file. The proposal's GLSP-MCP "root/view split" is settled that way: the tools act on what the user sees, and the agent is told which file that is.

Tests: live preview of the shown file, no preview for an editor not showing it, an on-disk change reloading the nested view at its trail, and the chat text. All workspaces pass, with neutrality 5/5 and typecheck 5/5.

https://claude.ai/code/session_015VK7fH1c4aKbexnq2QcuKU

…ng it

Navigating in place, an editor can show a nested workflow defined in
another file. Most of editing such a view already held: undo and redo save
whatever file they change, and a save or an on-disk change refreshes every
editor, which since in-place navigation reloads the view shown. Only live
preview did not reach it -- it fired for an editor's own document alone --
so typing in the nested file's text editor changed nothing until a save.
Now every editor showing that file is previewed with that file's text.

The chat's turn context also says the diagram's tools act on the view's
file, which is what the user sees. The proposal's section on editing nested
views is corrected: an earlier draft said undo left such a file unsaved.

Phase 3 of docs/proposals/single-editor-hierarchy.md.

Claude-Session: https://claude.ai/code/session_015VK7fH1c4aKbexnq2QcuKU
@endrix
endrix merged commit 4e204b7 into main Oct 2, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant