Repository navigation
feat(mobile): restore thread details and keep files in its own sheet - #712
Merged
Merged
Conversation
Thread details on mobile again has everything the summary had at hand, so connectors, pull requests with Link and Create, schedules and background tasks sit beside placement, secrets and lineage. The header opens Files directly instead of a modules sheet, and the module picker is gone. Pull request and task rows still open full tabs. The shared workspace model drops the per-thread panel state and the removed Files and Connectors module tabs. Saved layouts from older versions keep their tabs and ignore the old panel fields. Related: #640
nixuuu
force-pushed
the
feat/workspace-v3-3
branch
from
November 14, 2026 11:59
4bd3b2d to
bd1e4fd
Compare
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
…#710) ## 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 #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 #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.
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 3 of the workspace v3 redesign, with mobile parity. JS only, shipped over the air.
Thread details on mobile again has what it had before feat(workspace): open thread files in persistent tabs #640:
PR and task rows still open full tabs of the current thread.
The header opens Files directly (a sheet with the tree) instead of a Modules sheet. The module picker (
+),Open in tabandClose moduleare gone.Shared domain:
Workspacedrops the per-thread panel state (sidebar,panelCollapsed,panelWidth,setSidebar,collapsePanel,sizePanel). The module list keeps only the full-tab kinds (pull requests and tasks). Saved layouts from older versions keep their file and PR tabs and ignore the old fields and removed module tabs.docs/workspace.md: the mobile surfaces match the new model.Related: #640
Verification
bun install,gen:check, fulltypecheck(web and mobile),lint,format:checkand the web production build pass on this head.expo exportfor iOS and Android passes.@expo/fingerprintgives identical hashes for this head anddev: iOS138e0c6b…, Android906dc944…. The change is OTA-safe.check:tmppassed: 3002 pass, 175 skip, 0 fail across 570 files, with nothing left in the temp dir. It ran before two later fixes that touch only styles and a label (summary card height, "Delete file" without an ellipsis).Copy audit (§8)
Modules(header icon), sheet titleModulesFilesOpen module,Open sidebar module,Open in tab,Close moduleThis tab is no longer available. Close it to continue.No other text changes. Glossary terms are unchanged.