Repository navigation
fix(desktop): reveal a workspace heading's controls with that heading - #1047
Merged
Merged
Conversation
The rail's conversation list is wrapped in an unnamed `group` — that is what the floating scrollbar reveals on — and a workspace heading's controls keyed off a bare `group-hover:` as well. A bare `group-hover:` is matched by *any* ancestor `group`, so the pointer anywhere over the list revealed every heading's actions menu and "new conversation" plus at once, and moving the pointer from heading to heading changed nothing. Measured on the real UI (headless Chrome against the harness, five headings): with the pointer resting on a conversation row, all five headings' controls were at computed opacity 1; afterwards only the heading actually under the pointer is. The heading's group is named (`group/workspace`) and its controls key off that name — the same rule the rows already follow with `group/thread` — so the list area's own group can no longer stand for a heading's hover. `revealOnHover` now expects to be drawn inside a workspace heading, which is the only place it is used; a caller outside one gets a visibly hidden control rather than half the list lighting up.
huichen
enabled auto-merge (squash)
October 14, 2026 00:34
huichen
added a commit
that referenced
this pull request
Oct 14, 2026
) `CollapsibleFileDiff`'s header button carried an unnamed `group` and its chevron keyed off a bare `group-hover:` — and a bare `group-hover:` is matched by *any* ancestor with `group`. The working-tree and last-run review lists are wrapped in an unnamed `group` themselves (what reveals their floating scrollbar on hover), so every file's chevron appeared as soon as the pointer was anywhere in the list, and moving the pointer from row to row changed nothing. The same mechanism as #1047 (the rail's workspace headings), found while fixing that one and measured here the same way: on the real UI, with the pointer on the second file's header row, the first row's chevron was at opacity 1 as well. The row's group is now named `group/file-row` — the name the file tree's rows already use for the same control in the same situation — and the chevron keys off `group-hover/file-row:` / `group-focus-visible/file-row:`. The list area's group can no longer stand for a row's hover.
huichen
added a commit
that referenced
this pull request
Oct 14, 2026
…#1076) Nine desktop fixes landed between 10-14 08:38 and 10-15 00:39 (#1047, #1050, #1065, #1066, #1067, #1068, #1070, #1072, #1074). Each was re-checked two ways: its own unit test, and the rendered app in the screenshot harness with an assertion about what the fix is supposed to look like. Every browser assertion was then re-run against the fix *reverted* — a check that cannot fail on the old code proves nothing, and two of them could not, which is what this PR fixes. Eight of the nine hold everywhere they were asked to. The ninth is #1074 and is reported below rather than changed: it is a layout decision, not a slip. ## The eight that hold, and what fails on the old code | fix | asserted in the rendered app | fails on the old code with | |---|---|---| | #1047 `rail-heading-hover` | pointer on a conversation row → all ten heading controls at opacity 0; pointer on one heading → its two visible, the other eight not | `10 of 10 heading controls are revealed while the pointer is only over a conversation row` | | #1050 `review-file-hover` | pointer on the second file's row → exactly that row's chevron at opacity 1 | `2 chevrons are visible while the pointer is on one row` | | #1065 `remote-draft-caret` | after "new conversation" the caret is in the composer and typed text lands in it | `the caret is on <body>, not in the composer` | | #1065 `remote-caret-settle` | while the host answers, focusing elsewhere is not stolen; the caret returns when the run settles | (the focus effect removed: the caret never arrives) | | #1066 `remote-draft-defaults` | a new draft opens at 中 — this app's default — not at the 高 the host's catalogue declares | `the draft started at the level the host catalogue declares` | | #1067 `remote-model-loading` | while the host's read is in flight the control says 读取中…, never its own label; then the host's value | `while the host is answering, the control shows its own label` | | #1068 `remote-host-settings` | the icon row's label is wider than 120px and its grid sits inside the card, aligned and below it | `the icon row leaves its label 0px wide` (also re-measured at 1024x720: label 670px, grid 17px inside the card) | | #1070 `remote-live-event-order` | a live event for a row in the chat section leaves the order alone | `the host row overtook this machine's rows on the strength of a live event` | | #1072 `remote-draft-remembers-pick` | a pick made on an existing conversation is where the next draft starts | `the new draft did not start from the last pick: model="DeepSeek V4 Pro"` | | #1074 `remote-hub` | with the pairing form folded the page does not scroll at its window | `the Remote page wants 37px more than the window has` | ## Two harness gaps that made #1066 and #1067 unfalsifiable - **The host declared the wrong level.** `list_models` answered with the fixture's own `thinkingLevel`, which is `medium` for every model — where the agent answers a *capability marker* (`high` for every reasoning model, `off` for the rest; `agent/src/rpc/commands/providers.rs`). A draft seeded from that field was therefore indistinguishable from a correct one here, and `?remoteSlowRead` did not matter either. The host's answer is now mapped to what the agent declares, which is the only reason the #1066 assertion can fail on the old code. - **A host answered in three milliseconds.** The state a reader is in *while* a read is in flight never reached a capture, and that state is the whole of #1067: a control that filled its own label into the value slot looked identical to one saying it was loading. `?remoteSlowRead=1` holds `get_state` and `list_models` back by 1.5s; nothing else about the host changes. `window.__shot.remoteSessionEvent(sessionId)` is the third addition: `?remoteStream=1` only pushes into the conversation a scenario opens, whose row is already the newest of its group — so #1070's jumping row needs an event pushed at a row *further down* the list, which is now expressible from a scenario step. ## #1074 at the smallest window the app allows The scenario's own window (1280x860) fits, and `remote-hub` proves it. At the window minimum (`minWidth: 1024`, `minHeight: 720`) the page still wants 85px of scrolling, and the second paired machine's row is clipped by the window bottom (captured at that size). The PR's own table recorded "37px over" there; the two cards come to 641px of content either way (host 249px, client 392px), so closing the last 85px means putting them side by side — a layout decision this PR does not make on its own. ## Checks - `desktop`: `vitest run` 303 files / 4105 tests pass; `eslint` + `tsc --noEmit` clean. - Harness: the eight new scenarios pass; all 27 remote scenarios and 4 unrelated ones (`rail-tree`, `settings-general`, `terminal`, `rail-pin-menu`) re-run against the changed fixture, all green.
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.
What was wrong
The rail's conversation list sits inside an unnamed
group— that is what the floating scrollbar reveals on (ActivityRail.tsx:852) — and a workspace heading's controls keyed off a baregroup-hover:too:ActivityRailMenus.tsx— the workspace heading's actions menu (local)RemoteWorkspaceMenu.tsx— the same menu on a peer's headingRailChrome.tsxRailHeaderButton revealOnHover— the "new conversation" plus on either headingA bare
group-hover:is matched by any ancestor with classgroup. So the pointer anywhere over the list revealed every heading's controls at once, and moving the pointer between headings changed nothing.Evidence (real UI, headless Chrome on the harness)
Five headings in the merged list, pointer resting on a conversation row — effective opacity of each heading's
...control:Pointer on one heading, after the change: that heading
1, the other four0. The screenshots agree (before: every heading shows...and+; after: none do, and the hovered row is highlighted).Change
The heading's group is named (
group/workspace) and its controls key off that name — the same rule the rows already follow withgroup/thread, which is why rows were never affected. Nothing inside the list may now be revealed by the list area's own group.revealOnHoverdocuments that it expects to be drawn inside a workspace heading (the only place it is used, on both the local and the peer heading); a caller outside one would get a permanently hidden control — visible at once, rather than silently half the list.Verification
clean; 302 files / 4023 tests pass.
New test (
ActivityRail.remote.test.tsx, merged list, both heading kinds): every reveal-on-hover control in the list keys offgroup-hover/workspace:and none uses a baregroup-hover:. Falsified once — restoring the old classes fails it. jsdom applies no styles, so the invariant is asserted on the classes that decide it; the behaviour itself is what the measurements above cover, and the commands are in the PR body so they can be replayed.Related, same pattern, not fixed here
CollapsibleFileDiff's header chevron uses a baregroup-hover:whileGitChangesReview/LastRunReviewwrap the file list in an unnamedgroup(for their floating scrollbar) — so hovering anywhere in that file list should reveal every file header's chevron, by the same mechanism this PR proves. Its own header is agroup, so the fix is the same one line (name the chevron's group). Not measured here: the harness has no review scenario.ArtifactsPanelandTerminalPaneluse baregroup-hover:too, but scoped to their own card/tab, with no other unnamedgroupabove them — those are correct as they are.