Repository navigation
Conversation
This was referenced Oct 10, 2026
Collaborator
|
Closing as superseded. Workspace activation, file and terminal routing on main now follow the selected workspace's owner (the D4 owner-routing stack: #27176, #27218, #27278, #27279, #27283), with the owner-routing lint gate at zero. This 3,500-line draft on an unmerged stack would re-plumb the same paths a second way. |
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.
ELI5
When paired hosts published checkouts with the same ID, opening one could select another host’s checkout and then read its files or terminals. The selected workspace now keeps its publisher, execution host and checkout instance through activation and session refresh.
What Changed
One optional checked owner extends the existing active-workspace state. Existing selectors, operation routes, watchers, persistence, reset paths and asynchronous focus guards carry that selection. Activation rechecks it before changing views or preparing terminals. Host notification, immediate inventory, subscriptions, request coalescing and bounded recovery use the existing exact identity selector and refuse a retired or ambiguous owner.
Older identity-less inventory frames remain compatible with a genuinely absent catalog or one current matching owner. Known unresolved rows cannot disappear during publisher filtering. Local structured chats use the existing local publisher mapping, and paired-status test rows now use the real catalog producer.
Why
The loss happened when readers reduced a checked selection back to a bare checkout ID or one host alias. Carrying the owner through the existing state and request boundaries repairs that loss while keeping published IDs, persistence keys and ownership stores intact.
Linked Issue
Stacked on host session ownership #27030. Internal reproducible audit; no new issue. The bounded related-work receipts and contributor ledger are retained with the review packet. No donor implementation was copied.
Visual Proof
N/A — this change adds checked selection and routing without changing renderer layout or styling. The proof exercises the actual Store and registered RPC path; no native app demo is claimed.
Testing
Tested tree
63eff378f106199b1b9859d1f3649f9f2a29257eis a normal stack on backendb991379fd31533b3402a785291f23e3cc30aa46e. All 29 backend files are retained exactly. Direct Node and Orca’s canonical Bun coordinator with registered Node-runtime boundaries each passed 125 suites and 1,320 checks. All three type checks, changed-file quality (98 paths, zero new findings), and diff checks passed. Web type checking used the private pinned Shiki closure with the canonical file list, compiler options and existing aliases preserved.A separate 11-check proof includes the actual automation open action with default host notification, real client Store/activation, registered backend/controller, SQLite sessions, immediate inventory and bounded recovery. It imports the frozen automation consumer read-only; that consumer remains a separate follow-up. Provider transports, initial terminal startup and external wake/resume edges are isolated. No native PTY, app launch or desktop focus was exercised. The direct Bun attempt refused five existing Node-runtime contracts as designed; the canonical launcher then passed them.
Review
The original selected-owner and transport changes, normal source unions and final production correction were reviewed. Independent review passed 16 meaningful owner controls and verified retained source; two later redundant fixture-cast removals preserve that production and those controls. Final immutable commit review precedes publication. Original failing controls and source witnesses are retained.
Agent skill upstream boundary
Notes
The selected owner and persisted field are optional. Unique legacy and folder-workspace behavior remain covered. Older hosts that reject the exact selector are not retried with a bare ID; missing-identity replies refuse known ambiguous owners. No new opcode, capability, ID migration, owner registry or transport-loss process-death inference is introduced.
Checklist