Skip to content

Add syntax and read-only viewer lifetimes to editor tabs - #28400

Closed
nwparker wants to merge 1 commit into
nwparker/plugin-app-15-desktop-transportfrom
nwparker/plugin-app-16-editor
Closed

nwparker wants to merge 1 commit into
nwparker/plugin-app-15-desktop-transportfrom
nwparker/plugin-app-16-editor

Conversation

@nwparker

@nwparker nwparker commented Oct 13, 2026 •

Copy link
Copy Markdown
Contributor
Files Added Deleted Net
Test 41 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​4006 $\color{#cf222e}{\Huge{\mathbf{−}}}$​11 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​3995
Prod 137 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​7705 $\color{#cf222e}{\Huge{\mathbf{−}}}$​213 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​7492

ELI5

A file tab can use an installed syntax pack or a read-only viewer, recover when that plugin stops working, and reopen with the same file and host identity.

What Changed

Connects strict data packs to the language, icon and appearance stores. Syntax tokenization runs through bounded workers and a slot pool. File opening preserves source-versus-viewer intent, per-file selection and host-qualified identity; separate editor panes own separate viewer leases. Closed or disconnected guests retire their original authority. Dedicated iframe/table/canvas surfaces render bounded parser output, and the build emits checked viewer assets and a sandboxed preload.

Why

Extends the existing editor opening and session flows so choosing a plugin does not create a second file identity or lose normal restoration behavior. Host-owned documents and worker tokenization keep language data and file parsing out of the app renderer's authority.

Linked Issue

Maintainer-requested plugin work. Draft layer 16, based on desktop transport #28390. No new issue created.

Visual Proof

Disabled included packs → active Typst syntax, plus two folder-viewer panes. These are actual hidden Electron captures from the cumulative layer-17 tree. Its editor, syntax-worker and viewer surface files are identical to this layer; its new catalog/settings UI is an additional integration dependency, not part of this diff. These are workflow states, not screenshots of an older release.

bundled-data-disabled-recovery.png
bundled-data-typst-worker.png
viewer-folder-split.png

Testing

  • Automated tests added/updated.
  • Exact layer-16 tree: 106 tests/16 files, Node and renderer typing, production desktop build pass.
  • Cumulative layer-17 integration: catalog install and included-pack disable/restore/override journeys pass; the separate folder viewer journey verifies independent split leases, hide/reload, source intent and restart.
  • Current source's 355 focused tests and changed-code checks pass; these selections overlap with layer checks and are not added into a unique total.
  • Native evidence uses macOS, isolated profiles and owned Git/CLI fixtures. No Windows or corporate-backend qualification is claimed.

Review

Data packs cannot add executable permissions through manifest edits. File viewers keep selected-file grants, pinned resource revisions and host ownership. Unsupported remote hosts fail closed. A viewer disconnect cannot switch to desktop files; reopening explicitly obtains new authority. The later catalog UI remains separately reviewable.

Agent skill upstream boundary

  • Not applicable; no upstream skill-installer source copied.

Checklist

  • Editor opening, runtime lifetime and restoration form one layer.
  • Before/after workflow captures attached with their cumulative-tree scope stated.
  • Reviewed file, process, host and approval boundaries.
  • Folder workspaces, SSH/paired-host refusal and background launch considered.
  • CI and remaining platform/release checks pass.

@nwparker

Copy link
Copy Markdown
Contributor Author

Superseded. This 90-PR stack was replaced by two smaller stacks rebuilt on current main: machines (#30670 → #30793, plus #30708) and plugins (#30636 → #30773). Remote/Node control hosts and the managed-workspace gateway were deferred. Closing; branches are left in place for reference.

@nwparker nwparker closed this Oct 20, 2026
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