Repository navigation
feat(web): chats, files, terminals and PRs open as tabs in split panes - #28845
maria-rcks wants to merge 1103 commits into
Conversation
|
Macroscope skipped reviewing this pull request. Per-review cost limit exceeded (workspace setting). This review would cost an estimated $52.28, which exceeds your per-review limit of $15.00. The top 3 files driving up this estimate:
Tip To get this pull request reviewed, you can:
|
ApprovabilityVerdict: Needs Human Approval Macroscope's review found this PR requires human approval — The browser restoration changes add two explicit lint suppressions that require human review. Unanswered concerns also cover unintended prompt sends and terminal actions that can terminate sessions or attach to another client's shell. Needs human approval because:
Review your spending limits in Billing settings, or comment |
Thread transfer impact✅ Thread transfer remains within every enforced ceiling.
Other scenariosNo All 64 scenario measurements
Baseline: unavailable · PR result: Scenario and decoded snapshot size10 historical turns, 5 command tools per turn, 878.9 KiB retained MCP result per historical turn, and a 1.05 MiB retained result in the measured turn.
Updated in place by a trusted workflow. PR artifacts are strictly validated and never executed. |
f6f00d4 to
b653b87
Compare
|
Important Review skippedWe couldn't safely recover the incremental review. No full review was started, and the last reviewed checkpoint was preserved. Retry later, or explicitly request a full review by commenting You can disable this status message by setting the Use the checkbox below for a quick retry:
Walkthrough
Merge Risk:
|
b653b87 to
f0dd9b6
Compare
f0dd9b6 to
ba88740
Compare
ba88740 to
91b0851
Compare
91b0851 to
814c2e3
Compare
Main's b4b58d2, the move to General Translation v12 (#46460), through layer 5. The layer's own files were migrated with the codemod in /home/maria/fb/rb-1132/topup23/tools, layer 5's migration merged on top; the layer's translations were carried to their v12 keys. pnpm-lock.yaml: layer 5's lockfile plus layer 6's own patch hashes.
The rest of main up to 2321fcf through layer 5. Main's missing-workspace notice is a composer banner row on layer 6; the mention highlight keeps main's search-key rule (#47210) beside layer 6's kept results (#31529); focus returns after cancelling a PR/issue title or description edit (#47232, #47354) through layer 6's shared title editor; comments remember their expansion (#47284); the worktree repositories filter takes keyboard focus (#47181).
…h picker test to layer 6's handle
… menu when the composer is narrow
…e instead of breaking paths mid-word
…nd PR fold open state on layer 6
…oter and control of the dialogs around them The row editor goes back into its dialog from Settings > Appearance and leaves Settings > Layout as it was. The dialog keeps the inline pass's surfaces: the framed piece of sidebar with the card, shelf and samples. Its footer now matches the sibling dialogs (a secondary Reset and the dialog's action as Done, focused on open without a ring), and the Appearance row opens it with a well control like the selects around it. The card stays at 1.2x, where its title is not cut.
…m hidden The sample switches move into the dialog's footer, left of Reset and Done, as other dialogs keep a note there, so they no longer take a row of their own. The card's column is as wide as the dialog had it before the inline pass, so the hidden items wrap into fewer rows, and the shelf chips line up with the card's content.
…on lines included With Labs > Fold each turn's work on, a settled run that a scheduled task started folds with neighbouring wake-ups under the same rules: a typed prompt, failure, pending request, stop or the running run keeps a run in view. The closed row names the task and shows a calendar icon; the latest answer stays below it, as for wake-ups.
…of the wake-ups fold
…and the fold row shows their first line
…and closed folds keep a turn gap With Labs > Fold each turn's work on, a closed fold that hides its answer shows that answer's first line and then the scheduled tasks that ran; on a narrow row the tasks give way and the answer stays. A closed fold with nothing of its own under it, and a turn that ends without an answer above a fold, now sit a turn gap from the next row instead of reading as one block.
…ters of it fit, instead of showing a clipped first letter
…n instead of pinned under its newest work Since the layer 5 merge f311c89, a setup that ended after the agent started became its own timeline row while the working row still drew it too. The working window then put that row below the bar, so the setup's rows sat at the foot of the live turn, and the copy inside the window scrolled away. The working row now draws a running or ended setup as long as the turn runs, at the top of the turn before its first work, and with the turn fold on the bar says "Setup failed" while the turn runs, because the window scrolls the failed row out of view. After the turn the setup stays its own row in its place; one that settled during a follow-up sits before that turn's later rows. A setup row above the bar stays above it.
…s whole sections When the inline thread details card is taller than the window, the lineage, side chats, automations and repositories now show fewer rows first, each ending in a fade and "Show N more", which opens the list in place with "Show less" above the rows it revealed. Whole sections drop behind "Show all details" only once every list is down to two rows. The lists keep their full rows laid out under a clip, so the card measures the same full height whether it shortened them or not, and the rows each list keeps depend only on that height and the room the card has.
…mation to fire first A shortened list shows its top rows, so running side chats now come before finished ones, and automations run in order of what acts next: running, then by next run, then paused.
…ader line, before it drops one
On layer 5 the chat owns the window. The terminal is a drawer under it, and diffs, files, the browser, pull requests and devices share one right panel.
Here each of those is a tab in a pane. Panes sit in columns, a column can split down, and every pane has its own tab strip. Drag a tab to reorder it. Cmd+\ opens a new pane, Cmd+T a new tab, Cmd+Shift+T restores a closed one. Pull requests, issues and both lists open as tabs. Cmd+N still asks which project when there are several, as on main, and the new thread replaces the focused tab. Settings › Layout sets the default panes and where the terminal and side pane open, once per device.
Settings › Labs › Scrolling workspaces is off by default. Off, a new pane shrinks the others to fit, and the workspace, overview and center-column commands do nothing and are hidden from keybindings, the palette and the shortcut sheet. On, panes keep their width and the strip scrolls sideways, extra workspaces stack with an overview (Cmd+Alt+O), and a layout intro, tour and hints appear.
layoutModel.tsholds workspaces, columns, panes and tabs.SurfaceHost.tsxrenders them and replacesChatRightPanel,RightPanelSheet,ChatTerminalDrawersandPersistentThreadTerminals.surfaceSync.tskeeps the right panel store and the tabs in step. The layer also adds a desktop app icon picker, Claude's context breakdown in thread details, and a Labs toggle that folds each turn's work.Read first:
apps/web/src/layout/layoutModel.ts: the workspace, column, pane, tab modelapps/web/src/layout/SurfaceHost.tsx: renders panes, strip and overviewapps/web/src/layout/surfaceSync.ts: thread surfaces mirrored into tabsapps/web/src/layout/PaneTabs.tsx: tab strip, drag, close, restoreapps/web/src/layout/useSyncLayoutBehavior.ts: what the Labs flag switchespackages/contracts/src/settings.ts: layout settings and defaultsNeeds approval: Theo for
apps/web/src/components/ui/scroll-area.tsx(neworientationprop; the scroll fade re-measures on resize), rootvite.config.ts(lint ceilings only: 50 lowered, 42 removed, none raised; no bundling),patches/@[email protected](new: rows measured in layout pixels inside the scaled overview, plus animmediateWebShrinksoption),patches/@pierre%[email protected](new: the tree viewport leaves out overlaid chrome),pnpm-workspace.yaml(patchedDependencies entries for those two patches) andpnpm-lock.yaml(their patch hashes). Theo or Julius forpackages/contracts:settings.ts(LayoutSettingsand its template; client settingslayout,scrollingWorkspacesEnabledandlayoutThreeFingerSwipedefaulting to false,appIcon,turnWorkFoldEnabled; the panel animation default goes from 0 to 150 ms),keybindings.ts(tab.new,tab.next,tab.previous,tab.close, 25layout.*commands andpullRequests.toggle;rightPanel.newandrightPanel.toggleMaximizedretired but still decode),ipc.ts(shortcutandacceleratoron context menu items; optional desktop methods that forward layout chords from a focused preview),server.ts(the config'ssettingsalso decodes an older server'slayout, for migration only),orchestrationV2.ts(optionalretryOfRunIdon user messages and commands, optional token usagebreakdown),providerRuntime.ts(theContextBreakdownschema),server.test.ts,settings.test.ts.Stack
Do not merge: this stack still needs review. Each PR targets the one below it.
1-primitives-shell2-composer-timeline3-panels-pages4-settings-setup5-voice6-workspace-panes(this PR)What it looks like
Captured at 1440x900 from two isolated dev servers (layer 5 before, layer 6 after) with one copied database: made-up
harbor-labsrepos, freeReplay (dev)threads, and a local fake GitHub for #142 and #150. Sidebar ages differ because the sides ran minutes apart.The same chat, terminal and
store.ts: a drawer and a right panel become three panes, each with a tab strip.The same in light.
Pull request #142 opens as a tab next to the diff and the file.
Issue #150 leaves the full-page Issues view and opens as a tab beside the chat.
Thread details gains the checkout and changes rows; #142 stays linked with its checks.
New in this layer: three panes side by side, each with its own tabs.
Dragging store.ts to the front, Cmd+\ opening a new pane, then closing store.ts and restoring it with Cmd+Shift+T (9 seconds).
Settings gains a Layout page, and Labs gains Scrolling workspaces, off.
With it on: the overview shows four columns that no longer fit the window.
Checks
On Blacksmith at this head (311223e, main c5badf4 merged in): typecheck, lint (0 errors, 17 warnings), knip,
fmt --checkandi18n:checkpass. Web tests in four shards pass 3136, 1523, 1552 and 1288 after two test files were fixed and rerun. Server tests: 9208 pass, 15 skipped. After the last GitHub drift merge, 22 web files (373 tests), client-runtimecontextWindowand issues (32) and the desktop menu tests (7) pass.Not verified: dragging a tab onto another pane (it did not move in the capture run), reopening a closed issues tab with Cmd+Shift+T, desktop (three-finger swipe, forwarded chords from a preview, app icon), the mobile app, Safari, real providers (Claude context breakdown), the browser and device panes, the layout tour past its intro, extra workspaces, touch and narrow widths; mobile, desktop and shared suites not run.
Done with Claude Code (Opus 5.5) in T3 Code.