Commit Graph

1764 Commits

Author SHA1 Message Date
alan 7c42713be3 Retro CRT: scanlines as one solid path, no vignette
The full-screen repeating gradient and radial vignette doubled CPU raster
time per frame in the browser bench; solid non-AA bands cost about nothing.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-04 00:12:44 +00:00
alan 035b411125 Retro CRT: per-frame live switch test to and from every design
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-03 23:42:27 +00:00
alan 6fc6f1c001 Merge branch 'main' into worktree-agent-abb9404cc062f4b30
# Conflicts:
#	app/lib/ui/theme/app_design.dart
#	app/lib/ui/theme/app_design_tokens.dart
2026-12-03 23:21:54 +00:00
alan fe7bf055a1 Merge branch 'worktree-agent-a1b6c249e2bec6658' 2026-12-03 23:19:40 +00:00
alan 9eaa8d18c0 Retro CRT design: Terminal on a green or amber phosphor tube
One hue per variant (brightness steps for roles, statuses and chat
colours, with cross/ring glyphs where hue alone told status), square
corners, 1px phosphor frames, a faint text glow and a static scanline and
vignette pattern painted once in its own repaint boundary. Light mode is a
paper-white phosphor. Terminal's theme builder is shared, not forked.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-03 23:10:57 +00:00
alan f4ca239afb Compact: snap previews too, pin the composer to the 40px send button
The design switcher's live preview decides the hosts' blend like a choice
does. Compact's field matches the now fixed 40px send button and its
32px attach centres on that line.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-03 22:54:51 +00:00
alan 43a1c65177 Merge branch 'main' into worktree-agent-a349550966b0e2bad 2026-12-03 22:34:49 +00:00
alan 14b7687d4e Notes: chat pane cycling keys, capture script and evidence
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-03 22:23:04 +00:00
alan 048ecc651e Merge branch 'main' into worktree-agent-a1b6c249e2bec6658
# Conflicts:
#	app/lib/ui/theme/app_design_controller.dart
2026-12-03 22:18:46 +00:00
alan 550f648746 Merge branch 'main' into worktree-agent-a349550966b0e2bad 2026-12-03 22:18:38 +00:00
alan f4bd8ad44c WIP read aloud keeps playing across chats 2026-12-03 22:18:38 +00:00
alan e86fd3572a Merge branch 'main' into worktree-agent-abd5e670d79e5cb5c 2026-12-03 22:18:36 +00:00
alan 618add34b0 Chat: Alt+] / Alt+[ move the keyboard between the chat panes on screen
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-03 22:18:36 +00:00
alan dae47600b7 Compact: name Classic in its description and note 2026-12-03 22:18:35 +00:00
alan 9436067bf2 Merge branch 'worktree-agent-ab5b11bc6eab1d077' 2026-12-03 22:14:27 +00:00
alan 4268ce20eb Design switcher: Alt+L lists every design, previews live, Enter keeps it
The chat switcher's popup and keys over the AppDesign registry: filter,
Ctrl+N/P and arrows preview the selected design app-wide without storing
it (AppDesignController.preview), Enter keeps it, Esc or Alt+L again
returns to the design it opened with. The current design is checked.
Listed in Settings -> Keyboard shortcuts and the cheatsheet.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-03 22:10:19 +00:00
alan 3e066622d8 Send button: fixed size in every design and a clear 3px gap to its usage ring
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-03 22:04:02 +00:00
alan 6e7118fe34 Merge branch 'main' into worktree-agent-a1b6c249e2bec6658 2026-12-03 22:00:26 +00:00
alan c584ecfa60 Merge main into the Compact design branch 2026-12-03 22:00:25 +00:00
alan 81c73275c0 Notes: foldable menu offset, hidden chat list, Terminal default
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-03 21:38:30 +00:00
alan 109ea72252 Chat: hide the chat list entirely (Ctrl+B / Cmd+B), per device
ListDetailPanes takes listHidden and slides the list to zero width (at once
with reduced motion), keeping its expanded or compact mode for when it comes
back. A wide chat offers Hide chat list in the list's bar and the pane menu,
Ctrl+B (Cmd+B on Apple; a focused terminal keeps Ctrl+B) and, while hidden,
a Show chat list button at the start of the top-left pane's bar. The choice
is device-local (pipelines.chat.listHidden.v1).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-03 21:33:05 +00:00
alan 22ab20077b Capture fixture: ?inset=top,bottom&fold=1 emulates Android insets and a fold
A browser reports no system insets, so inset-dependent layout (anchored
menus) could not be captured on web.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-03 21:33:05 +00:00
alan 8ed3998dd5 Design: Terminal is the default when none is stored; Default is now Classic
An unset (or unknown) design id resolves to Terminal, in the controller's
initial value, AppDesign.fromId and the boot spinner. A stored choice,
including Classic's stable 'default' id, is respected. The picker calls the
original Material look Classic so no row reads 'Default'.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-03 21:33:05 +00:00
alan 8c224fecf8 Anchored menus: bound by system insets instead of shifting by them
The anchored choice menu route wrapped its layout in a SafeArea while the
anchor rect is in overlay coordinates, so on Android (edge to edge, a
status bar inset) every top bar menu opened an inset below its control.
The insets and a half-opened hinge now only bound the panel.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-03 21:19:55 +00:00
alan ae5d0190fa Merge branch 'worktree-agent-a89fcd71b624713a3' 2026-12-03 20:23:25 +00:00
alan 8e19459d6f Chat stack: notes
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-03 20:22:55 +00:00
alan e629d552c2 Chat stack: polish pile layers, dark tone, Add chat picker title, probe param 2026-12-03 20:18:14 +00:00
alan fd62df3815 Chat stack: a floating pile of the open chats as phone chat navigation (WIP) 2026-12-03 20:07:00 +00:00
alan 4534283f1d WIP compact 2026-12-03 20:01:13 +00:00
alan e52392b332 Design bench: budget per-frame means, document Glass limits
A cheaper design draws more frames in the same gesture, so build/raster
sums penalised it; the gate now compares mean build and raster time per
frame with Default's.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-03 19:56:34 +00:00
alan 5fc650211e Merge main (Paper design) into the design perf budget
Paper's theme joins the cached builder; AppDesignTokens and ReadingType
compare every new token by value, and Paper's tab indicator and switch
outline resolver are kept per colour so a rebuilt Paper theme equals
the last.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-03 19:45:24 +00:00
alan bc00d321d9 Designs: cache themes, value-equal tokens, and a per-design perf budget
A rebuilt Terminal theme never equalled the last one (AppDesignTokens,
AnsiAccents and the tab indicator compared by identity), so any host
rebuild (a detached window's title, a font notification) rebuilt every
Theme.of dependent and ran MaterialApp's 200 ms theme animation. Themes
are now cached per (design, brightness, font) and compare by value;
chat colour seeded schemes are cached too.

test/perf/design_bench_test.dart and tool/perf/design_bench.mjs check
every registered AppDesign against Default (tool/perf/README.md).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-03 19:43:10 +00:00
alan 8cb98d8d90 Merge branch 'main' into worktree-agent-ac6bed1061af7c658 2026-12-03 19:21:45 +00:00
alan d13dee4852 Paper: task card in the panel fill; design notes
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-03 19:21:14 +00:00
alan a5c502a0d8 Floating windows: draw the resize grip under the window's tooltips
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-03 18:00:10 +00:00
alan 7d2c3412a1 Paper design: warm paper, serif reading text and a typeset transcript
Adds the Paper design and generalises design tokens (transcript, composer,
selected-row styles, reading type, panel fill, chat colour saturation).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-03 18:00:07 +00:00
alan e070ded799 Floating windows: draw the outline under the window's tooltips and menus
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-03 17:47:35 +00:00
alan ef353ccf9a Terminal design: frame and stronger fill on the open list row
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-03 17:34:24 +00:00
alan bdd7bb6896 Merge branch 'worktree-agent-acbb1fb1d035904b7' 2026-12-03 17:29:07 +00:00
alan 03983cfd1f Detached chat: read the chat again once its machine connects, and follow the main window's look
A detached chat window read the chat list once, before any saved machine had
connected, and never again; its pane also did not rebuild when the runtime
adopted a row. Without the row the header showed a bare "Chat" with no folder
or model, the window was named by the session id, and the chat's colour (bar
tint, focus ring, prompt bar) was missing. The window now re-reads the list on
each connection change and rebuilds on the runtime, as the Chat destination
does. It also re-reads the stored design and font on the browser's storage
event and on coming to the front, so a Settings change in the main window
follows.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-03 17:28:47 +00:00
alan 8e18cec7c7 Merge branch 'worktree-agent-a4189d61d9f18d9c5' 2026-12-03 17:23:52 +00:00
alan 0791a4702d Artifacts: badge counts deliverables only; debugging files as a secondary section
The Artifacts badge counted every recorded turn document (input, memory,
output, session.html) while the tab lists only deliverables, so a run whose
visits recorded only debugging files (the Caplens ticket runs) badged dozens
of artifacts and opened to an empty tab. The badge and the header now count
deliverables only; the tab stays reachable when only debugging files exist
and ends with a collapsed 'Show debugging files' entry naming their count.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-03 17:23:33 +00:00
alan b4a74f3c95 Terminal design: gap between the pending dots and the status label
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-03 17:19:36 +00:00
alan 1dc992bc27 Terminal design: no composer prompt glyph; usage ring follows the square send button
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-03 17:11:42 +00:00
alan 0599d6dc23 App: keep the Terminal text theme in its own file
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-03 16:47:15 +00:00
alan ca2f7eee32 App: add a selectable app design with a Terminal look
AppDesign builds each design's light and dark ThemeData with an
AppDesignTokens extension (corner radius, flat surfaces, frame colour,
ANSI accents, prompt glyph). Settings gains a Design picker stored per
device; the theme hosts rebuild live. Terminal is monospace (bundled
RobotoMono), near-black or paper, flat 1px frames with 3px corners, and
draws the chat transcript as prompt lines, tool dot/result lines and
bracketed follow-up lines. Default keeps its exact themes.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-03 16:43:59 +00:00
alan 9a6363b80e Chat: draw agent follow-ups and automatic continues apart from the operator
The server now names a user turn's origin (followup, auto_continue,
auto_switch, scheduled) on chat messages, user frames and queued prompts,
from the prompt's operation id while it holds the prompt and from its own
text prefixes in history read later. Origin is a new field, so older
clients keep treating these as ordinary user turns.

The app draws an agent follow-up, auto-continue and account-switch prompt
as a quiet outlined card on the agent's side with an icon, label and the
schedule facts from the preamble; the operator's own scheduled message
keeps its bubble with a small Scheduled mark. Find searches the drawn text.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-03 15:40:34 +00:00
alan 608b6b8edb App: open a chat with one round trip
The thread controller asks chat_subscribe to carry the newest history page
(history: true, limit 200) and applies it from the reply; a server that
leaves the page out is asked with chat_messages as before. Deltas arriving
before the reply are recorded from the start of the subscribe, and settle
against the page's live_seq exactly as for a separate read.

Also documents the subscribe history field and benchmarks the indexed page
at limits 20 and 100.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-03 15:09:02 +00:00
alan 17baa9e24c Merge branch 'worktree-agent-ab99684776b58ed55' 2026-12-03 14:44:18 +00:00
alan cf4579ab15 App: keep a left chat's cached transcript following its live frames
A left conversation stays subscribed on the server for the rest of the
connection, but the cached transcript was frozen when it was left. A reply
that arrived in the background only appeared after the reopened view's
subscribe and newest-page read (~1-2s over the network on large chats).
The cache now folds the session's chat events into the kept transcript,
so the reply is drawn the moment the chat opens; the page still replaces it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-03 14:43:52 +00:00