Repository navigation
Deck 4.0: Horizon looks, a spinning effort dial, a calm sidebar, a starter tour, and Effect - #106
Conversation
A new default look, after a dark agent dashboard: the sidebar flush and opaque, a planet's lit limb printed in red, green and blue dots behind the room, and the new-thread screen as a home of smoked-glass cards under the composer. - themes: a Horizon preset (palette horizon, material smoke, process spectrum, the UI's own face), first and the default for new windows; saved looks keep theirs. - backdrop/spectrum.ts: each RGB channel dithered on its own into four steps (half Bayer, half noise) with a faint floor, so shadows speckle; in light the paper is the peak and prints clean. - art/horizon-deck.jpg, drawn by scripts/horizon-art.py, Deck's own (CC0). - styles.css: Horizon's colours; smoked glass: no gutter, a flush sidebar, the picture clipped to the room's side, panes and pages behind a blurred veil layer (no stacking context, so dialogs still rise over dividers), 12px composer corners and a quiet send disc. - ui/Home.tsx: Activity (24 weeks of days), Recent threads, Usage (the plan window nearest its limit, or 30 days' spend), In progress and This month, from the usage record or, for a paired Deck, the thread list. - A Horizon app icon; four presets in Settings > Appearance. - docs: design-glass.md section 10, the attribution, the README shot. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01PQbdbX6KYp29QenQ73jjDY
…lain agent names Picture looks. Aurora, Dune and Nebula join Horizon: the same smoked-glass window and home widgets over a picture of their own, each drawn for Deck by scripts/scene-art.py. No two looks print the same picture (SPECTRUM_PICTURES, with a test). Each preset's card in Settings > Appearance shows its picture with the window and widgets in miniature, in its own colours, and the live preview draws the home for a smoked look. Liquid glass. Every glass panel of the Liquid Glass material gets a lens: an SVG filter drawn for its size and corners that refracts the backdrop across the rim, splitting red, green and blue a little (liquidGlass.ts, read from --lens). The material is clearer, with lit and shaded edges. It moves like a liquid: the segmented controls' pill stretches and springs between choices (every look), glass buttons give under a press and spring back, and menus and dialogs bloom open. Reduced motion and reduced transparency turn it off. Agents' names. The window says "Claude", "Codex", "Claude 2" instead of ids like claude-1 (agentName.ts); ids stay for mentions, lanes and the engine. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01PQbdbX6KYp29QenQ73jjDY
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01PQbdbX6KYp29QenQ73jjDY
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01PQbdbX6KYp29QenQ73jjDY
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01PQbdbX6KYp29QenQ73jjDY
The composer's knob and the dial it opens are drawn as a real rotary control: a knurled rim and a spun, brushed face lit from above, a notch lit in the mode's hue, a mark for each mode round the top with the chosen one lit, and in the dial a fine scale, major marks and the modes' icons as stops, the large knob sitting in a machined seat. The rim and notch turn on the spring while the light stays put. The readout under the dial is gone: icons and colour only, names for assistive tech and the tooltip. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01PQbdbX6KYp29QenQ73jjDY
The Welcome walks through what Deck is, Open a folder, Pair with a Deck
and the agent CLIs; a project's window through the threads, the composer
and its mentions, the mode dial, the home cards, Conversation / Graph,
the diff and panels, the palette and Settings > Appearance. A spotlight
cut out of a dim veil rings each target, beside a card of thick glass
with the step, dots, Back / Next / Skip; arrows step, Esc leaves. The
veil takes no pointer, steps whose target is missing are passed over,
the card follows its target on resize, and reduced motion holds still.
The pref `tour` ("new" | "done") keeps it to a first run, and it starts
by itself only when no test drives the window (navigator.webdriver, or
the app launched with a remote debugging port: AppInfo.automated). The
palette's "Show the tour" and Settings > General start it again.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01PQbdbX6KYp29QenQ73jjDY
The Welcome and the connect screen share one frame: the theme's picture full bleed (the same on both, so Pair changes the cards, not the room), a scrim that pools the canvas behind a centred column and softens the dither under it, the Deck mark and the question centred, two glass action cards, and the agents, the pairing form, the recent folders and any notice on cards of glass. The credit is a chip in the corner, over the scrim. Liquid Glass frosts the cards more here. The old layout's Command rows, grid and Headline are gone; ArtFigure loses its plate and picture options. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01PQbdbX6KYp29QenQ73jjDY
The sidebar, after T3 Code's Obsidian theme, keeps the threads and little else: a 36px header with four faint glyphs (the inbox and its count, Search, New thread, Hide), a quiet projects heading (the filter, Add project on hover), project names in faint type with no tile, thread rows of 13px type about 30px tall, the open one a soft grey card with a faint rim, and a foot of faint glyphs on no hairline. Smoked glass keeps the near-black column and one hairline to the room. Settings > Appearance > Layout offers a third place for it: the threads in a bar across the top (sidebarSide "top", ui/ThreadBar.tsx), with the project switcher, thread chips with their state's dot, a "+" and a menu of every thread, then Search, the inbox and the foot's controls. The window turns into a column, the picture's clip follows the bar, and the bar clears a Mac's traffic lights. Settings, Usage, Team and the inbox can open at the side of the conversation as panes of the room's layout (page:<name> in layout/tree), as tabs with a "+" for another page and a button to pop one to full size; a full page has one to step aside. Full size stays the default; a new Pages setting makes the sidebar open them at the side. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01PQbdbX6KYp29QenQ73jjDY
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01PQbdbX6KYp29QenQ73jjDY
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01PQbdbX6KYp29QenQ73jjDY
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01PQbdbX6KYp29QenQ73jjDY
The main process and the renderer's data layer now write their async work as Effect programs, behind the same Promise APIs, so callers, the UI and the tests do not change. - shared/effect.ts: runPromise (rejects with the error itself, not a FiberFailure), runFork/interrupt, pollLoop, Backoff, listenNow, unrefSleep, and the shared RpcError and BridgeError. - decks.ts: the engine start is a scoped Effect (the process and client are let go on failure), the handshake has a typed HandshakeFailed with a 60 s timeoutFail, unary calls are cancellable, and close() stops the engine with stopChild (stdin, then SIGTERM after the grace period). - pageControl.ts: every op is an Effect.gen with PageError/RefError as tagged errors, element handles in acquireUseRelease, and waitFor polls on a Schedule under a timeout, so TestClock drives it. - browser.ts: the execution deadline and the sweeper are fibers; whenLoaded, follow and abortable are Effects. - preview, pin, pair, host, shellPath, phone, projectIcon, update: probes, pinned connects, pairing, execFile runs, icon reads and the update loop as Effects with typed errors and timeouts. - renderer: rpcEffect.ts models a call as Effect<unknown, RpcError | BridgeError>; RpcDeckClient and ProjectApi use it, the event stream resubscribes on an exponential Schedule capped at 10 s, and the limits, crew and work polls are fibers. docs/effect.md describes the layout, the helpers, the errors, how to add an effect and how to test with TestClock. New tests cover the handshake timeout, spawn errors, stopChild, unary errors and cancellation, the connect timeout, the page waits and the resubscribe delays. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01PQbdbX6KYp29QenQ73jjDY
The tour finds its Settings step in the sidebar's foot or the top bar's tools, and takes the first match on screen. The design doc runs 10 Horizon, 11 Liquid glass, 12 the mode dial and first screens, 13 the sidebar, top bar and pages at the side, 14 the starter tour. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01PQbdbX6KYp29QenQ73jjDY
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01PQbdbX6KYp29QenQ73jjDY
…oning level The session's mode (Plan / Ask / Yolo) is the word-based menu again: a pill with the mode's icon, name and a chevron opening the PickRow menu. The knob and its styles are gone. The lead's reasoning effort takes the glyph instead, after T3 Code's effort bars: rising 2px bars on whole pixels, one per level the model takes, filled up to the one it runs at, in the text's colour. It sits right after the agent's chip with no word (the name is in the tooltip, aria-label and sr-only), and a click opens the levels as a short column, each with its glyph, applied at once. The agent picker's effort control is the same glyphs after Default. The starter tour describes the mode menu and gains a step for the effort glyph; design-glass.md section 12 describes both. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01PQbdbX6KYp29QenQ73jjDY
The lead's reasoning effort is a dial now, not static bars. A 20px ring of segments, one per level the model takes, is lit up to the level in the agent's hue round a flat cap. The cap's pointer turns to the level on the spring and the segments light one after another behind it. Default rests the pointer in the ring's gap, so turning it to Max is a long clockwise spin. Drag it, scroll over it or use the arrows (Home and End too) to turn it; the level shows at once and applies when the drag ends or the turn rests. A click opens the levels, each with a small dial. Reduced motion holds it still. The agent's chip and the dial are one capsule, after T3 Code's single model-and-effort control: a hairline (clear glass in Liquid Glass), the agent's mark, name, model and status dot, then the dial. A new agent or model slides up into the chip and the capsule eases to its new width. The agent picker rises out of the bar, and the model's efforts dock beside the models as a column: a 40px dial over the levels by name. The static bars (EffortGlyph, EffortPicker) are gone. The starter tour's effort step and design-glass.md section 12 describe the dial. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01PQbdbX6KYp29QenQ73jjDY
shortId took the last three base36 characters of every room id, which
suits hash-like ids (UUIDs, "ses_01HZ7A3F" -> "a3f") but cut a named id
like "ses_main" down to "ain" in the room header and on plan cards.
An id that is a type prefix and a short word with no digits now reads
as that word ("main"); hash-like ids keep their last three characters.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01PQbdbX6KYp29QenQ73jjDY
|
Important Review skippedToo many files! This PR contains 106 files, which is 6 over the limit of 100. To get a review, reduce the PR to 100 files or fewer by splitting it into smaller PRs or changing its base branch. Upgrade to a paid plan to raise the limit. This review couldn't start because sufficient usage credits or metered capacity aren't available. Add credits or update usage-based reviews in the billing tab, then retry.
|
|
Review the following changes in direct dependencies. Learn more about Socket for GitHub.
|
What this changes
A redesign of the desktop app (
desktop-shell/), plus its async core moved onto Effect. Nothing outsidedesktop-shell/changes except.gitignore.Looks
scripts/horizon-art.pyandscripts/scene-art.py, and are CC0.Composer
claude-1. The ids still drive @mentions, lanes and the engine.Layout
main, notain).Starter tour
Async on Effect
effect@3.22.4now runs the main process: engine start and stop, the agent browser, preview, pairing, the host and updates.desktop-shell/docs/effect.md.Design notes are in
desktop-shell/docs/design-glass.md, sections 10–14.Checklist
go build ./...,go vet ./...andgo test ./...pass. Not run: this PR changes no Go code.gofmt -l .prints nothing. Not run, for the same reason.desktop-shell/docs/design-glass.md,desktop-shell/docs/effect.md, and the desktop README screenshot and linkinternal/guardis untouchedDesktop checks on the final head (in
desktop-shell/):npm run buildandnpm run lintare clean.--grep-invert "electron|packaged"): 127 passed, 0 failed.Notes for the reviewer
tour: "done".backdrop-filter: url(#…), which works in Chromium/Electron only. Other engines fall back to plain frosted glass.effect3.22.4, pinned exactly. Some async code stays on callbacks on purpose, as listed indocs/effect.md: the gRPC push streams, the browser's per-op AbortController, and the FIFO gates."ain"; they now assert"main"strictly.v4.0.0on the merge commit, which runsrelease.yml.Generated by Claude Code