Skip to content

feat(workspace): float the thread summary and keep files in the panel - #710

Merged
nixuuu merged 2 commits into
devfrom
feat/workspace-v3-1
Nov 14, 2026
Merged

nixuuu merged 2 commits into
devfrom
feat/workspace-v3-1

Conversation

@nixuuu

@nixuuu nixuuu commented Nov 14, 2026 •

Copy link
Copy Markdown
Member

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.

  • A fixed 20 rem card in the thread area's top-right corner. It is no longer the right panel's empty state, so it never changes width with the panel and never jumps between threads.
  • It collapses to a pill showing the branch, the newest pull request with its checks, and the subagent count. Expanded or collapsed is one device-wide choice (threadPanelCollapsed in the device view).
  • It again has everything the summary had at hand before feat(workspace): open thread files in persistent tabs #640:
    • placement: computer, directory or worktree, branch, Manage worktree;
    • pull requests with state, checks and the current branch's PR highlighted, plus Link and Create;
    • background tasks, and schedules with pause/resume/cancel plus "Schedule a task";
    • connectors with availability plus Manage;
    • secrets, fork, lineage and subagents.
  • The duplicate title row is gone.
  • The chat column centres left of the card's lane (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.

  • One top-bar Files toggle (a sheet on narrow screens).
  • Removed: the icon rail, the module dropdown, the panel +, 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.
  • Files open state and width (256–480 px) are device-wide. The old per-thread values are no longer read.

Motion.

  • The workspace grid eases the Files column (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.
  • The summary grows from its pill (t-summary, --duration-fast, from --scale-large) and shrinks back on --duration-quick.
  • The double "rise" on module switches is gone.
  • prefers-reduced-motion makes 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 nice and temp in /var/tmp, on the stack head:

  • bun install, gen:check, full typecheck, lint, format:check, the web production build and both mobile exports pass. iOS and Android fingerprints are identical to dev.
  • Focused test: tests/integration/device-view.test.ts now also covers the Files width bounds.
  • Full check:tmp passed 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:

  • The card sits in its lane at 1440 and floats over the column at 1100. The pill shows branch, PR and checks, and subagents. The sheet opens at phone width.
  • Mid-animation frames show the Files column easing (for example 1013/138 px → 885/266 px) while the panel content fades inside it.
  • Switching threads with Files open keeps the grid at 864px 288px and the card at the same x and width on every sample, so nothing jumps.

Copy audit (§8)

Before After Reason
Collapse panel / Show panel / Open modules (top bar), Collapse panel / Close modules (panel) Files toggle (pressed state) One control. The label names the panel, like the sidebar toggles.
Thread details (top-bar info button) Show thread details (pill), Collapse thread details (card) Verb first. The pill and the card each have one action.
Toggle thread details (palette) Toggle thread details, Toggle Files One command per element.
Resize workspace panel Resize Files Names what resizes.
Working directory (tree header) Files + directory name Says what the panel is and whose files they are.
Open module, Open sidebar module, Open in tab, Close module, Thread details ▾ removed Mechanisms removed.
Open Tasks to choose another task. Choose another task in Thread details. The Tasks module no longer exists.
(none) This tab is no longer available / Close it to continue. Empty state for a restored tab of a removed module: a title plus one sentence with the action.

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.

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
nixuuu added this pull request to stack #713 November 14, 2026 11:54
@nixuuu
nixuuu marked this pull request as ready for review November 14, 2026 12:39
@nixuuu
nixuuu merged commit 509bd51 into dev Nov 14, 2026
11 checks passed
@nixuuu
nixuuu deleted the feat/workspace-v3-1 branch November 14, 2026 12:40
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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant