Repository navigation
feat(workspace): float the thread summary and keep files in the panel - #710
Merged
Merged
Conversation
The thread summary is its own fixed-width card in the thread area's top-right corner. It no longer lives in the right panel, keeps its width on every thread and collapses to a pill with the branch, the newest pull request with its checks and the subagent count. Expanded or collapsed is one choice on the device. The card again has everything the summary had at hand before the workspace modules, so pull requests with Link and Create, background tasks, schedules, connectors, secrets, fork and lineage. The duplicate title row is gone. The chat column centres left of the card's lane, so toggling the card never moves text. The right panel shows only Files, toggled by one Files button. The icon rail, module menu, extra plus, pop-out, both collapse buttons and the info button are removed, with the Pull requests, Tasks and Connectors modules. Files width and visibility are device-wide. The column eases open and shut again while the panel content keeps its width and fades. Related: #640
nixuuu
marked this pull request as ready for review
November 14, 2026 12:39
nixuuu
added a commit
that referenced
this pull request
Nov 14, 2026
## Change User feedback on #710: the summary card pushed the chat column around. - With the sidebar open, the column was shifted until it touched the card. - At narrower widths, opening the card moved and resized the column. - Below the lane threshold, the card covered message text with the composer misaligned under it. The cause was the `chat-column` lane from #710. It shifted the column whenever the card could fit and left-aligned it when it could not. That lane is removed: - **The chat column never moves or resizes for the summary.** It is centred in the thread area with its own max width again (`mx-auto max-w-(--chat-width)` in `VirtualFeed`), as when the summary is collapsed. Messages and composer always share one column width and alignment. The sidebar and Files panel only change the area width. - **The card only takes free space.** `SummaryLayout.docked` is true when the right gutter beside the centred column holds the 20 rem card plus its 1 rem inset and a 1 rem gap. Then the device-wide choice (`threadPanelCollapsed`) decides between the card and the pill. - **Elsewhere the summary is always the pill**, whatever the stored choice. The pill opens the card as a popover anchored under it: - a stronger shadow in light and a lighter surface in dark, with scroll inside; - it closes on Escape (focus returns to the pill), `Close thread details`, a click outside (focus stays on the clicked target), a thread change or a layout change; - it never changes the stored choice, so text is never left covered. - Below 32 rem the pill still opens a sheet. - The effective state depends only on the stored choice and the available space, so switching threads or resizing never jumps. - Motion is unchanged: `t-summary` grows the card from the pill's corner (`--duration-fast`) and shrinks it back (`--duration-quick`), with no layout shift. Reduced motion is instant. `docs/workspace.md` (Polish) describes the dock, popover and sheet rules and the always-centred column. Mobile does not use this layout, so it is unaffected. Fixes: #710 ## Verification - `bun install`, full `typecheck`, `lint`, `format:check` and the web production build pass (with `nice`, temp in `/var/tmp`). - **Review host, light and dark, bench stack.** The seed had a long Polish title, a long branch (`feature/sso-gakko-security-review-with-a-very-long-branch-name`), PR #412 with checks, 19 subagents and 2 schedules. For widths 1100, 1280, 1440, 1600 and 1920, with the sidebar open and closed and Files open and closed (20 layouts per theme), a script measured the message column, the composer and the card before and after toggling: - **Column fixed:** in all 40 runs the message column and composer keep the same x and width when the card opens or closes, and their x and width always match each other. - **Docked:** the card docks only at 1600 (sidebar closed) and 1920 (except sidebar open with Files open). It always sits right of the column with a visible gap; at 1920 with the sidebar closed the column ends at x 1357 and the card starts at x 1584. - **Popover:** everywhere else the pill shows, and the popover opens under it and closes on an outside click. - Escape closes the popover and returns focus to the pill. Switching threads closes it. - **Screenshots, described:** - **1440 light, sidebar and Files open:** the pill sits top-right and the column is centred. The popover opens under the pill with a clear shadow over the right part of the messages and ends just above the composer. - **1100 dark:** the same popover uses a lighter surface than the canvas, so it reads as raised. - **1920 light, sidebar closed:** the docked card sits in the empty right gutter. The column is centred exactly as with the pill, and nothing overlaps. ## Copy audit (§8) | Before | After | Reason | | --- | --- | --- | | (none) | `Close thread details` (popover close button) | The popover closes and does not change the stored choice. The docked card keeps `Collapse thread details`. | No other text changes.
nixuuu
added a commit
that referenced
this pull request
Nov 15, 2026
## Change Collapsing thread details could leave the visible pull request checks spinner paused. Both the card and pill stay mounted, and changing their `inert` state does not notify the activity observer. Refresh activity state after the card or pill changes visibility so visible spinners resume and hidden decorations remain paused. Reduced-motion preferences continue to apply. The workspace-copy ownership test also starts each expected-to-fail request only when its rejection handler is attached. This removes a race where another request could reject before the sequential assertions reached it. Fixes: #710 ## Verification - Web package typecheck: passed, with no errors or warnings. - Lint and formatting of the edited component: passed. - Browser verification using the real components: reproduced the paused spinner before the fix; checked repeated collapse/expand, short and long branch names, desktop and phone widths, light and dark themes, and reduced motion after the fix. - Focused workspace-copy integration suite through `check:tmp`: 6 passed, 0 failed; no test temp directories left behind. - Lint and formatting of the edited integration test: passed. - Full repository checks and builds remain with CI. - UI copy is unchanged; no copy audit is required.
This was referenced Nov 16, 2026
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.
Change
Stage 1 of the workspace v3 redesign (option C, approved by the user), based on the workspace stack #640–#648.
Thread summary is its own element.
threadPanelCollapsedin the device view).chat-column,--chat-lane). The lane depends only on the area width, so toggling the card never moves text. Where both do not fit, the column keeps left and the card floats over it with a shadow. Below 32 rem the pill opens a sheet. Escape in the card collapses it and returns focus to the pill.The right panel holds Files only.
Filestoggle (a sheet on narrow screens).+, pop-out, both extra collapse buttons and the top-bar info button, together with the Pull requests, Tasks and Connectors panel modules. PR and task rows still open full tabs.Motion.
t-panel-column, 400 ms open / 350 ms close,--ease-smooth-out). The panel content stays mounted at a fixed width and only fades (t-panel), clipped by the shrinking column.t-summary,--duration-fast, from--scale-large) and shrinks back on--duration-quick.prefers-reduced-motionmakes all of it instant; resizing disables the column transition.docs/workspace.md(Polish) describes the v3 model: the summary is a separate element, not part of the panel.Related: #640
Verification
Run with
niceand temp in/var/tmp, on the stack head:bun install,gen:check, fulltypecheck,lint,format:check, the web production build and both mobile exports pass. iOS and Android fingerprints are identical todev.tests/integration/device-view.test.tsnow also covers the Files width bounds.check:tmppassed on the stack head (see feat(mobile): restore thread details and keep files in its own sheet #712).Browser checks used a private bench stack seeded with a long branch, PR #412 with checks, 19 subagents, schedules and a long Polish title, in light and dark at 1440, 1100 and 390 px:
1013/138 px→885/266 px) while the panel content fades inside it.864px 288pxand the card at the same x and width on every sample, so nothing jumps.Copy audit (§8)
Collapse panel/Show panel/Open modules(top bar),Collapse panel/Close modules(panel)Filestoggle (pressed state)Thread details(top-bar info button)Show thread details(pill),Collapse thread details(card)Toggle thread details(palette)Toggle thread details,Toggle FilesResize workspace panelResize FilesWorking directory(tree header)Files+ directory nameOpen module,Open sidebar module,Open in tab,Close module,Thread details ▾Open Tasks to choose another task.Choose another task in Thread details.This tab is no longer available/Close it to continue.Glossary terms are unchanged ("thread", "subagent", "worktree"). No new error texts. No text relies on colour alone: PR state and checks have accessible labels. Checked with short and long titles and branches at desktop and phone widths.