Repository navigation
hosted Macs: the four held-off e2e groups (terminal, c7, browser, transcript), each cause fixed - #172
Merged
Merged
Conversation
…ain before it hides On GitHub's hosted Macs, e2e:browser's cover case (browser.spec.ts:363) found no placeholder <img> after the palette opened in 1 of 3 runs. A diagnostic run that traced main's stills showed why: capturePage rejected at once with UnknownVizError for the page on screen, placeholderOf turned that into null, and still() hid the page anyway, so the pane showed nothing under the palette (cua #90's hole). 16 other first-palette covers in that run captured in 27 to 88 ms. A refused copy is now told apart from an empty or oversized one, and a page still kept up for its still is copied again every 16 ms, at most 4 times, before it hides; a cover lifted meanwhile stops the retries. An empty or too-large still hides the page at once, as before. Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…the reload leaves it On GitHub's hosted Macs terminal.spec.ts:508 read 10044 lines against 10047 after a reload. A diagnostic run that traced the registry's sizes found the re-adopt exact: the attach restored all 10047 lines at the pty's 55x47. The loss came after it. load()'s maximize before the scene ran over an empty surface stack, which UX2 docks, so the terminals were sized in the docked panel (55x47); the reload's load() then maximized the panel, now holding them, and a maximized panel on the #panel page sits below its toolbar, 3 rows shorter (143x44). With the scrollback full, xterm keeps scrollback plus rows lines, so the 3 oldest went, as on any resize that shortens the viewport. The mini passed because it read its snapshot within the 50 ms resize debounce, before that fit landed (traced: maximize at 177 ms, snapshot at 229 ms, no fit between). reloadScene now maximizes the panel once Terminal exists, so the terminals have before the reload the size they have after it, and the re-adopt case waits for the screen to settle after the reload and checks the size before the line count, so a size change fails as one instead of as lost lines. Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…rossing it mid-change is not lost On GitHub's hosted Macs transcript.spec.ts:1299 found the sidebar's hover card still shown 5 s after the pointer left its row, in 1 of 3 runs. A diagnostic loop of the same click-and-leave (300 rounds on a hosted Mac, 2 shown) traced the card's events in both: the 300 ms open delay ran out (changeOpen true), the pointer left 2 ms later, and the open rendered 24 ms after that; no close followed. Radix's controlled HoverCard checks each change against the open it last rendered (useControllableState's setValue compares with the prop it closed over), so the close the leave scheduled, from the render before the open, read the card as closed already and did nothing. Playwright's click takes about 300 ms there, so the test's move away lands on the open delay's end. SidebarHoverCard's changeOpen now renders the change with flushSync, so the handlers any later event reaches already know the card is open, or closed: the leave's close closes, and a pointer back on the row as a close lands opens the card again (the same race the other way). Both cases are pinned in HoverCard.test.tsx and fail without the change. Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…where it went On GitHub's hosted Macs composer.spec.ts:772 (c7's W2) found the user row's Time, Copy and Edit at opacity 0 after its Copy button took the focus, 3 of 3. It was not the window's system focus (document.hasFocus() read true). A diagnostic run that traced every focus with its stack showed the editor taking the focus back: the send settled 75 ms after Enter with the focus on the page (going read-only for the flight drops it), setDoc focused the editor at once and also ran Tiptap's focus command, whose deferred view.focus() waits for the next frame; that frame came 223 ms later, after the test had focused Copy, and took the focus back. On the mini the send settled 28 ms after Enter and the frame came 10 ms later, both before the test reached Copy. setDoc now places the caret and focuses the editor itself, keeping Tiptap's command only for an editor the focus did not reach at once; and the return after a send takes the focus only if nothing else has it, so a focus the person moved while the send was in flight (a transcript row's Copy, another pane) stays there. Three Editor tests pin it: a focus moved during the flight, a focus moved in the frame after the caret came back (both fail without the change), and the caret's return when going read-only left the focus on the page. Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…ocus Review of 07c2265: setDoc asked ProseMirror to scroll with the selection, before focusing the editor, and ProseMirror scrolls only to a selection inside the editor. A long prefill arriving while another control held the focus (a transcript row's Edit) was left unscrolled; Tiptap's deferred focus used to scroll after its focus. The scroll is now asked for after the focus is in the editor. An Editor test records, for each transaction that asks to scroll, whether the editor had the focus; it fails on 07c2265 and passes on master and here. Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
Owner
Author
|
Gates on head d894ad3:
The earlier head 07c2265, before the review fix, was also green: hosted 40329706264 and 40329803249, mini 40329853275, all with the same counts. Review (doperpowers:reviewer-medium) found one P2 in 07c2265. Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook) |
SSFSKIM
added a commit
that referenced
this pull request
Oct 26, 2026
…n the hosted Macs, fixed: PR #172); gate-offload Decision Log 118 (terminal, c7, browser and transcript meet the hosting rule); tracker: c7, browser, transcript rows closed, terminal's guest half and two follow-ups logged Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
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.
Four e2e groups were held off the hosted Macs (terminal, c7, browser, transcript). Each one failed only there. Throwaway diagnostic branches traced each failure to its cause. Three causes are product defects and are fixed in the product. One was a test that compared two different panel sizes. One commit per cause:
browser.spec.ts:363, no cover still after the palette opened): on a page that was on screen,capturePagerejected at once withUnknownVizError. The cover then hid the page without a still, which left a hole under the palette. Now a refused copy is retried every 16 ms, up to 4 times, while the page is still up. An empty or oversized still still hides the page at once.terminal.spec.ts:508, 10044 lines against 10047): the re-adopt was exact (10047 lines restored at 55x47). The loss came afterwards. The reload's maximize shrank the terminal by 3 rows (143x44), and with the scrollback full xterm dropped the 3 oldest lines. The panel had been docked before the reload because UX2 docks an empty surface stack. The mini passed only because it read its snapshot inside the 50 ms resize debounce. Fixed in the test: the scene maximizes once Terminal exists, and the case checks the size before the line count.transcript.spec.ts:1299, hover card still shown 5 s after the pointer left): the pointer left 2 ms after the card's open delay ran out, before React committed the open. Radix's controlled HoverCard compares each change with theopenit last rendered, so the scheduled close found the card already closed and did nothing. Fixed in the product:changeOpenrenders withflushSync. Reproduced 2 times in 300 rounds on a hosted Mac before the fix.composer.spec.ts:772, the user row's actions stayed at opacity 0 after Copy took focus): this was not window focus;document.hasFocus()read true. When the send settled,setDocfocused the editor at once and also ran Tiptap's focus command. That command's deferredview.focus()ran 223 ms later on the hosted Mac and took the focus back from Copy. Fixed in the product:setDocfocuses the editor itself and keeps Tiptap's command only as a fallback, and the caret comes back after a send only if nothing else holds the focus.Each product fix has unit tests that fail without it. Gates and the review are in the comments.
Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)