Repository navigation
test(topology): allow Phase 3's headless editor-tab retirement in the boundary ratchet - #25823
Merged
OrcaWin merged 1 commit intoOct 6, 2026
Conversation
…'s boundary ratchet Main's #25329 added the ratchet; phase3's mobile-session-editor-projection.ts writes the host's own session through setWorkspaceSessionForWorktree, the same way the listed headless mobile-session tab writers do.
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.
Summary
Main's #25329 added a ratchet test,
terminal-topology-boundary-ratchet.test.ts, which allows only listed files to call terminal-layout writers. The main sync (#25729) brought it into phase3. Phase 3'ssrc/main/runtime/mobile-session-editor-projection.tscallssetWorkspaceSessionForWorktreewhen it closes an editor tab on a headless host, and that file isn't on the list. Sotest / tests node 24 3/5fails on every phase3 PR, for example #25802.Fix
Add that file to the ratchet's
setWorkspaceSessionForWorktreeallow-list with a one-line reason. It writes the host's own session exactly as the headless mobile-session tab writers already on that list do (orca-runtime-move-headless-mobile-session-tab.ts,orca-runtime-persist-headless-session-tab-props.tsand others). Routing it through the topology boundary instead would be a design change to Phase 3 code, beyond a sync fix.Verification
pnpm test src/main/persistence/terminal-topology: 2 files, 14 tests passpnpm tc: passes