Skip to content

feat(desktop): introduce redesigned agent workspace with classic recovery - #152168

Draft
ghgoodreau wants to merge 238 commits into
mainfrom
feat/desktop-redesign
Draft

ghgoodreau wants to merge 238 commits into
mainfrom
feat/desktop-redesign

Conversation

@ghgoodreau

@ghgoodreau ghgoodreau commented Nov 9, 2026 •

Copy link
Copy Markdown
Collaborator

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-system or ⌘K "Design system") → #157894 (the 11/18 design review) → #157959 (Routines final revision).

  • Adds the redesigned workspace from the Figma file as the default shell in Desktop and the shared web app. Settings → Appearance → Advanced → This device → Redesigned interface turns it off and restores the classic shell unchanged (classic offers the same switch under Appearance → Window & layout); sessions, profiles, pins and settings keep their identities across the switch.
  • One rail for destinations (Chats, Agents, Capabilities, Library, Routines, usage, Settings), a chat sidebar grouped gateway → agent → conversation, and a per-agent page with Overview, History and Settings.
  • Draft for internal testing. Not exercised yet: native macOS and Windows window chrome (emulated only), the Desktop E2E lanes (path-gated off on this PR), and iOS Safari with the software keyboard.
Classic (main, and this PR with the toggle off) Redesigned (this PR, default)
New session classic landing redesigned landing
Conversation classic conversation redesigned conversation
Capabilities classic capabilities redesigned capabilities
Settings classic settings redesigned settings

New surfaces with no classic counterpart:

Agents Agent settings Light Phone (390 wide)
agents agent settings light phone

The toggle

One persisted choice, one presentation read, one CSS gate. Nothing else decides which shell renders.

flowchart LR
  Choice["$shellChoice<br/>localStorage, null = default on"] --> Preferred["$portalPreferred<br/>behaviour every window agrees on"]
  Choice --> Portal["$portalShell<br/>this window renders the redesign"]
  Portal --> Hook["usePortalShell()"]
  Portal --> Attr["html[data-shell='portal']"]
  Attr --> CSS[":root[data-shell='portal'] rules"]
  Preferred --> Policy["shell-policy.ts<br/>named behaviour gates"]
Loading
// src/store/shell-variant.ts
export const $shellChoice = persistentAtom<boolean | null>('hermes.desktop.agentShell.v1', null, …)
export const $portalPreferred = computed($shellChoice, choice => choice !== false)
// The chromeless HUD and the popped-out Browser keep the classic look in every mode.
export const rendersPortalShell = (choice: boolean | null): boolean =>
  choice !== false && !isHudWindow() && !isBrowserWindow()
export const $portalShell = computed($shellChoice, rendersPortalShell)
/* Dialogs, menus and popovers are body-portalled, so the gate is on <html>, never an ancestor. */
:root[data-shell='portal'] [data-contrib-shell] { background: … var(--portal-window-background); }
  • installShellAttribute() runs before the first render, so no surface paints a mixed shell.
  • Pane layout is persisted per shell; flipping the toggle never rearranges the other shell.
  • Wording follows the toggle too. Classic renders the base catalog exactly as main words it; the redesign merges a typed per-locale overlay (src/i18n/redesign/) over it in resolveTranslations:
Classic Redesigned
Sessions Chats
Artifacts Library
Profiles Agents
Cron jobs Routines
Gateways Machines

Hardcoded messages outside the catalog (main-process sign-in and connection errors, browser-bridge refusals) follow the same choice through electron/shell-wording.ts and src/lib/shell-copy.ts.

Sidebar

  • The open rail destination's button folds and shows its sidebar or panel ("Hide chats" / "Show chats"); ⌘B still toggles.
  • Folded: Simple mode shows one floating reveal button at the stage corner, Advanced keeps the band button.
  • Dragging the sash 72px past the minimum width folds the sidebar; reopening restores the previous width.
  • New chat starts a chat with the agent of the chat on screen, else the most recently used one. Picking an agent in its dropdown opens a chat with that agent at once and does not re-target the button.
  • Each agent carries a Routines chip (count, and a dot while one is failing).

Routines

All routines One routine
routines routine
  • /cron renders src/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.
  • The rail page offers quick actions only (Run now, Pause/Resume, Rename, Delete). Editing lives in the agent's settings, reached by "Edit in "; Agent › Settings › Routines is the same list for one agent.
  • No backend changes. Mock elements with no data source (suggestions, "Uses", push delivery) are left out.
  • A schedule's clock is the machine's wall time, so it is marked with the machine's zone ("Every day at 7:00 AM (UTC−6)") when that differs from the viewer's.

Plugins

  • Plugin contributions keep working in the redesign: session-row and profile-group slots render in the new sidebar, plugin panes and rail buttons stay on screen, sidebarNav.prefs order and hide rail destinations, and title-bar items stay mounted on Agents, Routines and Settings.
  • host.state.viewport.narrow means below 640px in both shells.
  • The Capabilities switch enables both halves of a plugin; per-agent settings override it.
  • Plugin i18n gets the same per-shell layer: ctx.i18n.register(bundles, { redesign }).
  • src/contrib/__fixtures__/contract-probe/ registers into every area; contract-probe.integration.test.tsx asserts it in both shells. The matching e2e spec has not been run.
  • Not done: status-bar contributions have no home in the redesign's Simple mode, and plugin themes are not restyled. Both are todo cases in the probe suite.

Design language

Figma values live in one folder, src/app/redesign/tokens/, and nowhere else.

flowchart LR
  Raw["raw.css<br/>ink ladder, navy, brand"] --> Role["color · type · space · shape · motion · layers<br/>one value per role"]
  Role --> Bridge["bridge.css<br/>maps roles onto the app's --ui-* names"]
  Role --> Sidebar["sidebar.css<br/>the chat sidebar's own variant"]
  Bridge --> Sheets["portal-*.css, page and feature styles"]
  Guard["scripts/check_desktop_design_tokens.py<br/>+ eslint no-portal-arbitrary"] -. "fails on a raw value<br/>outside tokens/" .-> Sheets
Loading
  • DESIGN.md § Portal design language documents every role with generated tables.
  • Shared primitives carry the geometry: 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.
  • Icons are Pixelarticons (MIT), mapped once in src/lib/pixel-icons.ts; classic keeps its icons.
  • Fonts are the bundled OFL faces: Oswald (display), Mona Sans (body), JetBrains Mono.

Responsive

// src/app/redesign/breakpoints.ts
export const BREAKPOINT_MEDIUM_PX = 640   // below: compact — no rail column, band menu opens a sheet
export const BREAKPOINT_WIDE_PX = 1024    // below: sidebar and page panels become sheets
export const SHORT_QUERY = '(max-height: 30rem)' // landscape phone or raised keyboard: one-row composer
  • Coarse pointers in the browser get 44px targets and 16px fields at any width.
  • Menus and dialogs are capped to the viewport; compact dialogs are full-screen with the footer pinned.
  • A page whose chunk is still loading waits in its own frame (band, panel title, header skeleton), not an empty window.

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 behind useDeferredValue. 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.

Transition (1× CPU) main classic PR classic PR redesigned
→ Capabilities, cold 343 92 76
→ Capabilities, warm 1627 28 28
→ Library, cold 592 27 14
→ Library, warm 259 26 12
→ Schedules, cold 346 29 26
→ Schedules, warm 30 28 26
→ Settings, cold 346 46 42
→ Settings, warm 30 46 38
Settings → Chat, warm 41 46 28
Transition (4× CPU throttle) main classic PR classic PR redesigned
→ Capabilities, cold 454 399 340
→ Capabilities, warm 7832 170 138
→ Library, warm 779 84 62
→ Schedules, cold 391 129 89
→ Settings, cold 505 274 170
→ Settings, warm 157 214 117
Settings → Chat, warm 224 222 127
Build main PR
Cold load to landing frame, 1× (ms) 942 958 classic · 1045 redesigned
Entry + modulepreloads, gzip 109 kB 109 kB
Total JS, gzip 7,516 kB 7,753 kB
CSS, gzip 71 kB 98 kB
  • Warm Settings in PR classic is one frame slower than main (46 vs 30 ms): an extra ~7 ms of syntax-highlighter work when the transcript unmounts behind Settings.
  • Cold-load differences are inside run-to-run noise.
  • The redesign keeps the chat mounted under pages, so returning to Chat skips the transcript remount classic pays.

🤖 Generated with Claude Code

@github-actions

github-actions Bot commented Nov 9, 2026 •

Copy link
Copy Markdown
Contributor

૮ >ﻌ< ა ci review

ran on 002ca0e — fix(desktop): no dark box behind the redesign's composer

⚠️ Action required

JS lockfiles · View job

Locked JS dependency versions changed.

pnpm-lock.yaml

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

JobStepLogsRestoredΔ vs main
OS-specific tests / Windows-only tests (arm64, 1/2)Set up native ARM64 build dependencies / Cache ARM64 OpenSSL development filesview step26.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 savingview step222.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 buildsview step856.03 MiB+0 B
Rust tests / cargo test (bootstrap installer)Restore cargo cacheview step715.88 MiB+0 B
JS & TS checks / JS & TS checksSet up the locked JS build toolchain / Restore verified PM tools without savingview step156.11 MiB+0 B
JS & TS checks / JS & TS checksSet up the locked JS build toolchain / Restore uv dependency downloads and buildsview step43.14 MiB+0 B
JS & TS checks / JS & TS checksSet up the locked JS build toolchain / Restore node dependency downloadsview step180.90 MiB+0 B
JS & TS checks / JS & TS checksRestore node_modulesview step263.94 MiB+1.42 MiB
Docs Site / docs-site-checksSet up the locked site toolchain / Restore verified PM tools without savingview step156.11 MiB+0 B
Docs Site / docs-site-checksInstall website dependencies / Restore node dependency downloadsview step71.71 MiBunknown
Repository guards / Repository guardsRun ./.github/actions/setup-pm / Restore verified PM tools without savingview step156.11 MiB+0 B
Repository guards / Repository guardsRun ./.github/actions/setup-pm / Restore uv dependency downloads and buildsview step43.14 MiB+0 B
Repository guards / Repository guardsRun ./.github/actions/setup-pm / Restore node dependency downloadsview step180.90 MiB+0 B
Python tests / Run tests (3/3)Set up locked Python and test dependencies / Restore verified PM tools without savingview step154.75 MiB+0 B
Python tests / Run tests (3/3)Set up locked Python and test dependencies / Restore uv dependency downloads and buildsview step43.14 MiB+0 B
Python tests / Run tests (3/3)Run testsview step0.10 MiB-75 B
Python tests / Run tests (2/3)Set up locked Python and test dependencies / Restore verified PM tools without savingview step154.75 MiB+0 B
Python tests / Run tests (2/3)Set up locked Python and test dependencies / Restore uv dependency downloads and buildsview step43.14 MiB+0 B
Python tests / Run tests (2/3)Run testsview step0.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 savingview step83.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 buildsview step43.14 MiB+0 B
Python lints / Python lintsRun ./.github/actions/setup-pm / Restore verified PM tools without savingview step83.12 MiB+0 B
Python tests / Run tests (1/3)Set up locked Python and test dependencies / Restore verified PM tools without savingview step154.75 MiB+0 B
Python tests / Run tests (1/3)Set up locked Python and test dependencies / Restore uv dependency downloads and buildsview step43.14 MiB+0 B
Python tests / Run tests (1/3)Restore per-file duration cacheview step0.10 MiBunknown
Bootstrap installer / install.sh protocol + small fresh-install E2EPrepare tools for the real small-graph installer test / Restore verified PM tools without savingview step83.12 MiB+0 B
Catalog tests / Catalog testsSet up locked Python and test dependencies / Restore verified PM tools without savingview step83.12 MiB+0 B
Catalog tests / Catalog testsSet up locked Python and test dependencies / Restore uv dependency downloads and buildsview step43.14 MiB+0 B
OS-specific tests / Windows-only testsSet up locked Python and test dependencies / Restore verified PM tools without savingview step236.13 MiB+0 B
OS-specific tests / Windows-only testsSet up locked Python and test dependencies / Restore uv dependency downloads and buildsview step102.91 MiB+0 B
OS-specific tests / macOS-only tests (1/2)Set up locked Python and test dependencies / Restore verified PM tools without savingview step107.16 MiB+0 B
OS-specific tests / macOS-only tests (1/2)Set up locked Python and test dependencies / Restore uv dependency downloads and buildsview step167.62 MiB+0 B
OS-specific tests / macOS-only tests (2/2)Set up locked Python and test dependencies / Restore verified PM tools without savingview step107.16 MiB+0 B
OS-specific tests / macOS-only tests (2/2)Set up locked Python and test dependencies / Restore uv dependency downloads and buildsview step167.62 MiB+0 B
OS-specific tests / Windows-only tests (arm64, 2/2)Set up native ARM64 build dependencies / Cache ARM64 OpenSSL development filesview step26.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 savingview step222.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 buildsview step856.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

@alt-glitch alt-glitch added comp/cli CLI entry point, hermes_cli/, setup wizard comp/desktop Electron desktop app (apps/desktop/*) comp/tui-gateway The shared Python JSON-RPC backend that both the terminal UI and the desktop app talk to (tui_gatewa desktop/chat The chat view of the desktop app: composer, sending messages, message rendering, markdown, streaming desktop/files Files in the desktop app: artifacts panel, attachments, image and file previews, file browser, downl P3 Low — cosmetic, nice to have type/feature New feature or request labels Nov 10, 2026
@alt-glitch alt-glitch added the comp/agent Core agent runtime: loop, agent_init, prompt builder, context-compression, responses endpoint label Nov 10, 2026
ghgoodreau and others added 5 commits November 22, 2026 12:17
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>
ghgoodreau and others added 5 commits November 22, 2026 22:53
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
@alt-glitch alt-glitch added the area/webapp The Webapp: the Desktop workspace the gateway serves to a browser label Nov 23, 2026
ghgoodreau and others added 16 commits November 23, 2026 11:57
…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

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/webapp The Webapp: the Desktop workspace the gateway serves to a browser comp/agent Core agent runtime: loop, agent_init, prompt builder, context-compression, responses endpoint comp/cli CLI entry point, hermes_cli/, setup wizard comp/cron Cron scheduler and job management comp/desktop Electron desktop app (apps/desktop/*) comp/tui-gateway The shared Python JSON-RPC backend that both the terminal UI and the desktop app talk to (tui_gatewa desktop/chat The chat view of the desktop app: composer, sending messages, message rendering, markdown, streaming desktop/connection The desktop app reaching its Hermes backend: starting, stopping or restarting the local backend proc desktop/files Files in the desktop app: artifacts panel, attachments, image and file previews, file browser, downl P3 Low — cosmetic, nice to have type/feature New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants