Repository navigation
feat(desktop): introduce redesigned agent workspace with classic recovery - #152168
Draft
ghgoodreau wants to merge 238 commits into
Draft
ghgoodreau wants to merge 238 commits into
ghgoodreau wants to merge 238 commits into
Conversation
Contributor
૮ >ﻌ< ა ci reviewran on 002ca0e — fix(desktop): no dark box behind the redesign's composer
|
| Package | Before | After |
|---|---|---|
| ➕ pixelarticons | — | 2.4.2 |
How to fix:
Verify the version changes are expected. Lockfile changes need a hermes-agent-core review.
ℹ️ Info
CI caches · View report · View job
37 / 37 cache hits (0 misses)
6078.92 MiB restored
0 B not restored.
per-job cache results
hits
| Job | Step | Logs | Restored | Δ vs main |
|---|---|---|---|---|
| OS-specific tests / Windows-only tests (arm64, 1/2) | Set up native ARM64 build dependencies / Cache ARM64 OpenSSL development files | view step | 26.23 MiB | +0 B |
| OS-specific tests / Windows-only tests (arm64, 1/2) | Set up locked Python and test dependencies / Restore verified PM tools without saving | view step | 222.55 MiB | +0 B |
| OS-specific tests / Windows-only tests (arm64, 1/2) | Set up locked Python and test dependencies / Restore uv dependency downloads and builds | view step | 856.03 MiB | +0 B |
| Rust tests / cargo test (bootstrap installer) | Restore cargo cache | view step | 715.88 MiB | +0 B |
| JS & TS checks / JS & TS checks | Set up the locked JS build toolchain / Restore verified PM tools without saving | view step | 156.11 MiB | +0 B |
| JS & TS checks / JS & TS checks | Set up the locked JS build toolchain / Restore uv dependency downloads and builds | view step | 43.14 MiB | +0 B |
| JS & TS checks / JS & TS checks | Set up the locked JS build toolchain / Restore node dependency downloads | view step | 180.90 MiB | +0 B |
| JS & TS checks / JS & TS checks | Restore node_modules | view step | 263.94 MiB | +1.42 MiB |
| Docs Site / docs-site-checks | Set up the locked site toolchain / Restore verified PM tools without saving | view step | 156.11 MiB | +0 B |
| Docs Site / docs-site-checks | Install website dependencies / Restore node dependency downloads | view step | 71.71 MiB | unknown |
| Repository guards / Repository guards | Run ./.github/actions/setup-pm / Restore verified PM tools without saving | view step | 156.11 MiB | +0 B |
| Repository guards / Repository guards | Run ./.github/actions/setup-pm / Restore uv dependency downloads and builds | view step | 43.14 MiB | +0 B |
| Repository guards / Repository guards | Run ./.github/actions/setup-pm / Restore node dependency downloads | view step | 180.90 MiB | +0 B |
| Python tests / Run tests (3/3) | Set up locked Python and test dependencies / Restore verified PM tools without saving | view step | 154.75 MiB | +0 B |
| Python tests / Run tests (3/3) | Set up locked Python and test dependencies / Restore uv dependency downloads and builds | view step | 43.14 MiB | +0 B |
| Python tests / Run tests (3/3) | Run tests | view step | 0.10 MiB | -75 B |
| Python tests / Run tests (2/3) | Set up locked Python and test dependencies / Restore verified PM tools without saving | view step | 154.75 MiB | +0 B |
| Python tests / Run tests (2/3) | Set up locked Python and test dependencies / Restore uv dependency downloads and builds | view step | 43.14 MiB | +0 B |
| Python tests / Run tests (2/3) | Run tests | view step | 0.10 MiB | -190 B |
| Remote terminal backends / SSH + Docker backends (real sshd, real daemon) | Set up locked Python and test dependencies / Restore verified PM tools without saving | view step | 83.12 MiB | +0 B |
| Remote terminal backends / SSH + Docker backends (real sshd, real daemon) | Set up locked Python and test dependencies / Restore uv dependency downloads and builds | view step | 43.14 MiB | +0 B |
| Python lints / Python lints | Run ./.github/actions/setup-pm / Restore verified PM tools without saving | view step | 83.12 MiB | +0 B |
| Python tests / Run tests (1/3) | Set up locked Python and test dependencies / Restore verified PM tools without saving | view step | 154.75 MiB | +0 B |
| Python tests / Run tests (1/3) | Set up locked Python and test dependencies / Restore uv dependency downloads and builds | view step | 43.14 MiB | +0 B |
| Python tests / Run tests (1/3) | Restore per-file duration cache | view step | 0.10 MiB | unknown |
| Bootstrap installer / install.sh protocol + small fresh-install E2E | Prepare tools for the real small-graph installer test / Restore verified PM tools without saving | view step | 83.12 MiB | +0 B |
| Catalog tests / Catalog tests | Set up locked Python and test dependencies / Restore verified PM tools without saving | view step | 83.12 MiB | +0 B |
| Catalog tests / Catalog tests | Set up locked Python and test dependencies / Restore uv dependency downloads and builds | view step | 43.14 MiB | +0 B |
| OS-specific tests / Windows-only tests | Set up locked Python and test dependencies / Restore verified PM tools without saving | view step | 236.13 MiB | +0 B |
| OS-specific tests / Windows-only tests | Set up locked Python and test dependencies / Restore uv dependency downloads and builds | view step | 102.91 MiB | +0 B |
| OS-specific tests / macOS-only tests (1/2) | Set up locked Python and test dependencies / Restore verified PM tools without saving | view step | 107.16 MiB | +0 B |
| OS-specific tests / macOS-only tests (1/2) | Set up locked Python and test dependencies / Restore uv dependency downloads and builds | view step | 167.62 MiB | +0 B |
| OS-specific tests / macOS-only tests (2/2) | Set up locked Python and test dependencies / Restore verified PM tools without saving | view step | 107.16 MiB | +0 B |
| OS-specific tests / macOS-only tests (2/2) | Set up locked Python and test dependencies / Restore uv dependency downloads and builds | view step | 167.62 MiB | +0 B |
| OS-specific tests / Windows-only tests (arm64, 2/2) | Set up native ARM64 build dependencies / Cache ARM64 OpenSSL development files | view step | 26.23 MiB | +0 B |
| OS-specific tests / Windows-only tests (arm64, 2/2) | Set up locked Python and test dependencies / Restore verified PM tools without saving | view step | 222.55 MiB | +0 B |
| OS-specific tests / Windows-only tests (arm64, 2/2) | Set up locked Python and test dependencies / Restore uv dependency downloads and builds | view step | 856.03 MiB | +0 B |
misses
none
Compressed archive bytes. Not-restored bytes use the main-size reference; missing sizes remain unknown.
debug info
CI timings
CI timings · View report · View job
Wall time 7m14s vs 6m31s (+11.0%). 11 job(s) slower, 7 faster, 1 unchanged.
- Python lints / Python lints: +107.0s
- Remote terminal backends / SSH + Docker backends (real sshd, real daemon): +42.0s
- Catalog tests / Catalog tests: +42.0s
- Python tests / Run tests (3/3): +26.0s
- Bootstrap installer / install.sh protocol + small fresh-install E2E: +24.0s
Open
13 of 20 tasks
main reworded the hint to name the bot and its profile; the redesign reads agent for both, so it carries its own wording in the four locales that have it. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Its width was capped by the window, but it opens to the side of the rail, so on a 390px screen its trailing edge and each row's clear button were cut off. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
A select's menu stays inside the window and a long option ends in an ellipsis; the Tools tab's shelves take two columns, not four unreadable ones; and the welcome splash's rows hang from their tops, so every name sits at the same offset when lines and examples wrap to different depths. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
portal-shell.css kept a seam off the titlebar band with `[data-sash-overlap]:is(:has(+ [data-tree-group][data-window-top]), :has(+ * [data-tree-group][data-window-top]))`. The `+ *` descendant form makes Chromium re-run that search over the whole trailing pane (the chat transcript) on every DOM change inside it: an invalidation trace of a reading-pace scroll showed 272 :has invalidations on the seam, each restyling and relaying it. The split renderer already knows the fact (the trailing track's top edge), so the seam carries it as data-trailing-window-top, redesign only, and the rule reads the attribute. Old and new selectors matched identically on every seam sampled (chat, pages, developer panes; 1440, 1280, 900 and 390 wide). The track box moved into a pure trackStyle helper so TreeSplit does not grow. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
On a coarse pointer every button in a page grows to the 44px target. The carousel's dots are among the controls that keep their visual and extend their hit area instead, but the page rule caught them too, so on a phone each dot drew as a 44px bar. They are left out of the grow rule; the hit area is unchanged. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
A toast shown while the routine sheet is open sat over its footer and covered Cancel and Save until it timed out. The sheet is portalled after the toast region, so its footer cannot be the region's CSS anchor; it publishes its height on the root instead and the region rests on it. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
A new routine's sheet opens on its two starts with no fields. Create routine was live there: it validated a draft whose fields were not shown, found nothing to focus, and did nothing. It is disabled until Blank or a template is chosen. Create in chat needs no start and stays live. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
… covers Opening Library (or any workspace page) from a route overlay in the redesign took a 90-175 ms task. A trace put 45-60 ms of it in one forced style recalc of 1,500-1,800 elements inside the React commit, called from useFocusReturn: the layout tree's cover had remembered the composer (focus inside the kept chat bubbles up to both covers), and when the overlay gave way to the page it uncovered and called focus() on it. The composer is still under the chat's own cover there, inert, so focus() cannot land; but Chromium brings the hidden (content-visibility) chat's style up to date to find that out, and the chat's style is dirty after the navigation. The cover now skips a target that is still inside an inert region. That is the same outcome a browser gives (an inert element takes no focus); the chat's own cover gives focus back when it uncovers, as before. Interleaved prod runs (3-4 rounds each, medians), overlay -> Library: style elements 3,100-4,100 -> 940-1,900, longest task 112-121 -> 47-59 ms, worst frame 125-167 -> 66-84 ms. Chat scenarios unchanged. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
# Conflicts: # apps/desktop/electron/feature-flags.test.ts
…r frame Two costs arrived with the web app's scaled-popper hosts, and both land on every scroll frame of a long transcript. The rule that restores pointer events inside a popper host read `body:not([style*='pointer-events: none']) > host > *`. Its subject is `*`, and a style-attribute selector with a universal subject makes the engine restyle the whole subtree of any element whose inline style changes. A transcript scroll writes one per frame (the pinned prompt's clip), so the entire reply under it was restyled each frame: 96k elements against 37k over the same reading-pace scroll, style time 1.65s against 0.92s. The lock is now read on <body> itself and handed down as a custom property; the computed values are the same in both states. `getBrowserPortalContainer` ran a document-wide selector on every tooltip, menu and select render to find hosts that sit last in <body>, which walks the whole DOM: 1.5s of a 4s flick through a long chat. It remembers the host and looks again only when that one has left <body>. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
… moving mask In the redesign, reply lines dissolve as they pass under a pinned prompt. That fade was a mask on each covered turn whose gradient followed the prompt's edge, so it changed on every scroll frame and the whole reply was redrawn per frame. Over a reading-pace scroll of a long chat that was 1.65s of raster against 0.45s with the app's plain clip, and it is why the redesign scrolled worse than classic in the same chat. Nothing that scrolls is masked now. The clip hook publishes where a prompt at rest ends on a still box beside the viewport; the redesign paints the stage there (as the composer's floor does) and fades it out downwards over the same two lines, so the lines beneath dissolve as before. The strip is drawn once, moves only when another prompt comes to rest, and fades in and out with the fast motion token. Raster for the same scroll: 0.55-0.72s, with classic at about 1.1s. Classic keeps its clip and never shows the strip. ThreadMessageListInner is over its line cap, so the secondary window's titlebar strip moves into its own component to make room. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
# Conflicts: # apps/desktop/src/app/chat/composer/hooks/use-composer-placeholder.test.ts # apps/desktop/src/app/chat/composer/hooks/use-composer-placeholder.ts # apps/desktop/src/app/chat/composer/index.tsx # apps/desktop/src/app/session/hooks/use-session-list-actions.ts # apps/desktop/src/app/settings/notifications-settings.tsx # apps/desktop/src/i18n/zh.ts # tests/hermes_cli/serve_handler_ledger.json # website/docs/developer-guide/programmatic-integration.md
main grew the file to exactly its 2,000-line cap and the branch adds two exports, so two blank lines between an export and the doc comment that follows it go. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
…ially The test replaces '@/api/client' with only hermesApi. On this branch the stores it loads also read the client's request scope at import, so the whole suite failed to load after the merge. The mock now keeps the real module and overrides hermesApi. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
The standing "Set up your agent" card had one button, Retry. When the machine's Hermes is too old for setup, retrying cannot succeed until someone updates that machine, so the card sat over the corner of the app with no way to put it away. It now has a Close button. Closing hides the card and releases the onboarding surface (tips and the free-tier notice wait on it). Setup being offered, suspended or failing again brings the card back, and Settings can rerun setup at any time. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
…turn moves The active tick moves on every turn the transcript scrolls past. Each move re-rendered every visible tick with its four tooltip components, and called the virtualizer's scrollToIndex, which re-measures the scroller for several frames after each call. In a flick through a long chat the rail's render was the largest app cost in the profile. Ticks are a memo component now, with stable callbacks (the pointer paint reads the active index from a ref, the jump handler has one identity), so a move re-renders the two ticks whose `current` flipped. Keeping the active tick in view is arithmetic on the fixed tick pitch. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
While the wheel scrolls a transcript the pointer stands still and the turns move under it, so the browser re-targets hover on every frame: enter and leave events through every handler on the way, and a restyle of each turn the pointer crosses (a group-hover rule restyles the group's whole subtree). In the redesign the transcript's content stops taking the pointer while a wheel-driven scroll of that viewport is under way, and takes it again 150ms after the wheel rests, or at once when the pointer really moves or a button goes down. A wheel over a code block or a capped tool output scrolls that box and changes nothing; a reply streaming in scrolls with no wheel and the turns stay clickable. Reading-pace scroll of a long chat, production build, before -> after (with the rail change): script 2.6-3.4s -> 1.0-1.3s, restyled elements 39k -> 11k, style 1.05-1.4s -> 0.55-0.7s. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
…reply A turn's row addressed its messages by position in the thread, and keyed the replies inside it by that position. Older history loads in front of what is already there, so every position after it moves: each load unmounted and remounted every loaded reply. The freeze grew with the transcript, from 1s with 240 messages loaded to 4s with 1,200, on every 120 messages scrolled back through. It also made the same rows re-render for every new message. Rows address messages by id now (the library's MessageById), keyed by id, and a turn's row is memo on its own ids, so a change of shape elsewhere in the transcript leaves it alone. A by-id lookup of a message that has gone renders nothing, where the by-position one threw. Flicking back through a 1,200-message chat, production build, long task per load of 120 older messages: 0.9-2.2s before, 0.29-0.65s after. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
The band behind a page's header was sized to the stage's width in proportion, so on a wide window it grew as tall as the page: 830px on a 2000px window against Figma's 536px, with its brightest part behind all of the content. The agent page could not be read there. The band keeps its Figma height on every stage. On a wider one the Account band, which runs across the top, stretches sideways; the agent page's and Machines' art, whose light is in the far top corner, stay Figma's size in that corner, clear of the page's column. The agent art's thin top line fades in over 6rem where its box now starts mid-stage. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
The chat sidebar's Agents heading takes the same trailing action Group chats has. It opens the Agents page's own New agent dialog (same refresh after), loaded when first opened so the dialog stays in that page's chunk. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
…ing it The first-time splash folded the chat sidebar away while it was up and brought it back for its Chats row, so moving the pointer down the rows opened and closed the sidebar and shifted the whole page each time. It also only lit the rail's icon, where the rename splash rings the place and draws a line to it. Both splashes now behave the same: the navigation stays as it is, and the row under the pointer or focus rings its place where it sits, with the dashed line from the row. The ring and line were also placed with measured boxes as if they were the spotlight layer's own pixels. They are only at 100%: the web app's UI scale is a zoom on the page, so at 90% they landed about 40px off their place. They are converted into the layer's pixels first. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Each row swapped its line for an example only while the pointer was on it, in one shared cell squeezed into a fixed 65px. The example was easy to miss, a two-line one made its row taller than the rest, and the glyph sat above the name it belongs to. Every row now says its name, its line and its example at rest, as the rename splash's rows say theirs, with the row as tall as its text and the glyph on the name's line. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
…ows line up A row said its example only while the pointer was on it, squeezed into a fixed 65px: nothing showed that the rows had more to say, a two-line example overflowed its row, and the glyph sat above the name it belongs to. One row speaks at a time and Chats speaks from the start, so the card opens with an example showing and the other rows there to be reached. A row is as tall as the longer of its line and its example, so none moves when another speaks, and the glyph sits on the name's line. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Chats spoke as the card opened, but the ring and the line to its place only appeared once the pointer or focus was on the rows. The speaking row is pointed at for as long as the splash is up. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Classic's fade behind the composer runs from clear to its flat chat ground, 5px proud of the card on each side. Over the redesign's art it showed as a dark rounded box behind the card, plainly on a new chat where no dock floor covers it. The redesign hides it; its own floor does that job. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
This branch has not been deployed
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.
Integration branch, redesign on with onboarding: test from here. Review happens on the stack, whose top tree equals this branch: #157276 → #157277 → #157278 → #157279 → #157280 → #157281 → #157503 → #157504 → #157536 (the design system page, at
#/design-systemor ⌘K "Design system") → #157894 (the 11/18 design review) → #157959 (Routines final revision).main, and this PR with the toggle off)New surfaces with no classic counterpart:
The toggle
One persisted choice, one presentation read, one CSS gate. Nothing else decides which shell renders.
installShellAttribute()runs before the first render, so no surface paints a mixed shell.mainwords it; the redesign merges a typed per-locale overlay (src/i18n/redesign/) over it inresolveTranslations:Hardcoded messages outside the catalog (main-process sign-in and connection errors, browser-bridge refusals) follow the same choice through
electron/shell-wording.tsandsrc/lib/shell-copy.ts.Sidebar
Routines
/cronrenderssrc/app/routines/in the redesign: every agent's routines grouped Needs attention / Scheduled / Paused, a failure banner with Retry, and a searchable table. Classic's cron page, sidebar section and status-bar item are unchanged.Plugins
sidebarNav.prefsorder and hide rail destinations, and title-bar items stay mounted on Agents, Routines and Settings.host.state.viewport.narrowmeans below 640px in both shells.ctx.i18n.register(bundles, { redesign }).src/contrib/__fixtures__/contract-probe/registers into every area;contract-probe.integration.test.tsxasserts it in both shells. The matching e2e spec has not been run.todocases in the probe suite.Design language
Figma values live in one folder,
src/app/redesign/tokens/, and nowhere else.DESIGN.md§ Portal design language documents every role with generated tables.PageHeader/PageTabs(title, description, actions and tab bar at one position on every page; equal-width tabs that reserve room for counts),PageSidebarPanel(the panel column),SettingsCard,EmptyState.src/lib/pixel-icons.ts; classic keeps its icons.Responsive
Navigation
Code-split pages render synchronously once their chunk is loaded and are warmed at idle (
src/lib/lazy-view.tsx,src/app/page-views.tsx). The Capabilities catalog groups its ~100k rows in one pass behinduseDeferredValue. Both changes are shared code, so the classic shell gets them too.Production builds, Chromium 1280×880, ms from pointerdown to the painted frame, median of 6 cold / 12 warm interleaved runs. Baseline is
main.mainclassicmainclassicmainmain(46 vs 30 ms): an extra ~7 ms of syntax-highlighter work when the transcript unmounts behind Settings.🤖 Generated with Claude Code