Repository navigation
fix(layout-owner): Send review notes waits for main's tab, trimmed rename, switch-on fixtures (A6-A8, D1) - #51738
Merged
Merged
Conversation
Runs ORCA_LAYOUT_OWNER=main on PRs that touch layout, tabs, session, persistence, PTY or terminal code: the units whose imports reach a switch-reading file plus restored layout invariants, checked against a list of known switch-on failures, and 34 restored layout e2e specs in three shards. Known switch-on failures are marked expected-fail with their census row.
Seed the worktree-cards notice as seen, skip orcad oracle cases when out/orcad is not built, mark the layout-compat baseline drift (L311), keep A3 marked on darwin only, retry once in CI, and rebalance shards.
…c that fails both modes
… on hook and unhandled errors - Drop the path filter: the lane lives on the dev branch and switch reads are spread too widely. - Keep Vitest's exit status (stop on a crash) and record module-level and unhandled errors with a reporter; the check fails on them unless the known-failure list names the unhandled error. - Move the seeded PRNG into the command test fixture and delete the restored fuzz-stream module. - Close the no-window wake test's database in afterEach, since the expected failure throws first.
…in trims a terminal rename; fit switch-on fixtures (A6-A8, D1)
…o layout-owner-small-rows # Conflicts: # config/scripts/ci/layout-owner/switch-on-known-unit-failures.json
…er-small-rows # Conflicts: # config/scripts/ci/layout-owner/switch-on-known-unit-failures.json
…re announces session writes
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
With the new layout path switched on, main draws tabs a moment after a window asks for them. One shortcut gave up before main had drawn its tab, one CLI rename skipped the trimming the old path does, and a handful of tests still set things up the old way. This fixes the two real gaps and updates the tests so the switch-on lane checks them.
Census rows: A6, A7, A8, D1.
Before / after
terminal renamestored" name "untrimmed in main's layout, and a blank name was saved as spaces instead of clearing the namepane_unbound_at_registrationMechanism
ui-slice-agent-actions.ts): if the Changes tab is still waiting on main, the Send menu request is queued withafterPendingEntityTabsand the shortcut counts as handled. With the switch off nothing is ever pending, so it runs right away as before.main-layout-renames.ts):title?.trim() || nullis what goes into main's layout and the terminal record. The reply still returns the title as asked, matching the switch-off reply.layout.applystand-in anddrawTabsFromMain, and wait for main's frame after each open.registerBoundPty(bind first, then register). Inrestart-agent-pane-in-place, the pane starts bound and the saved layout changes afterwards. With the switch on, main's layout is the saved layout, so a terminal it gives away holds no pane: the restart is refused asnot_local, and nothing is stopped in either mode. The account-switch count case cannot happen with the switch on, so it is skipped there.runtime-terminal-namesreads the name from the phone rows (listMobileSessionTabs) in both modes. Its fixture now announces session writes as the Store does, so main merges a rename into the rows phones and older desktops read.switch-on-known-unit-failures.json, so those tests must now pass.How it was tested
ORCA_LAYOUT_OWNER=main): all 7 touched test files pass (23 passed, 2 skipped), and the lane's run-errors reporter records no unhandled or module errors. With the product change reverted, the A7 test fails. The rename trim has no test of its own: phone rows normalize the name either way, and the trim keeps main's saved layout, and what desktop windows draw from it, the same as the switch-off path.slept-agent-wake.slept-agent-wakewith the switch on still shows only its 12 listed B1 failures.tc:web,tc:node, oxlint and oxfmt pass on the touched files.Performance
None, because the only product changes are a one-time wait on an already pending tab and a string trim on rename.
Visible changes
orca terminal renametrims the name and clears it when the name is blank, as it already does with the switch off.T1 and T2: closed
T1 (
live-background-terminal-mount-authority) and T2 (editor-tab-selection-restore) are closed, not restored. Main deleted both specs on purpose: #43047 retired the first in its suite cleanup and #43017 removed the second as low-value. Neither is in the switch-on lane, so no expected-fail mark needs removing.