Commit Graph

1745 Commits

Author SHA1 Message Date
alan 37b67c84df Merge branch 'main' into viewer-controls-bigger 2026-11-02 17:50:30 +00:00
alan e65e2800e6 Enlarge viewer controls and respect safe areas 2026-11-02 17:50:27 +00:00
alan 895b23d2da Chat reply notifications: up to 1000 characters, paragraphs kept
The finished-reply notification now carries up to 1000 characters of the reply
(was 200), keeping its paragraph breaks for the app's expanded notification;
ntfy still gets it on one line within its 2048-byte limit.
2026-11-02 17:08:19 +00:00
alan e2ba091f7d Merge: worktree-agent-a6762a58e660a3046 2026-11-02 16:47:33 +00:00
alan 9393345acb Merge: worktree-agent-adedec543a1830ea7 2026-11-02 16:47:33 +00:00
alan a7b32d4473 Merge: worktree-agent-af03a51b8bf6c96ab 2026-11-02 16:47:32 +00:00
alan dd99e8d823 Merge: worktree-agent-add396073f8f3e026 2026-11-02 16:47:32 +00:00
alan 009bf3d853 Pop the top bar's islands in and give its controls press feedback
Each island (Back, title, actions pill, each action) scales in from 0.85
with a gentle overshoot, staggered from the leading edge on first show and
at once when it newly appears; rebuilds and title changes keep it. Glass
fades its fill and blur together so backdrop grouping is unchanged.
Every tappable piece sinks to 0.94 under a stadium tint while pressed and
springs back. Reduced motion skips the animation.
2026-11-02 16:47:01 +00:00
alan 07d4740d0c Show injected Claude input as agent reports and notices, not operator bubbles
Claude Code records subagent/peer reports, task notifications, reminders and
skill bodies as user-role entries. Classify them server-side (history and live
stream) by origin/isMeta/queued_command mode: reports become kind agent_report,
task notifications kind notice, harness meta is hidden, and the mid-turn
wrapper is unwrapped to the operator's text. The app draws a collapsed Agent
report card and a one-line system notice on the agent's side.
2026-11-02 16:44:07 +00:00
alan af1e61c063 Artifact viewer: centre the Details (i) button in its bar pill
The viewer's top-bar Details action reused the compact bottom-bar button, so
its icon sat off-centre in the bar's round pill on Material. Bar actions now
use the standard bar button size.
2026-11-02 16:41:18 +00:00
alan 1a9fc74999 Show the chat mode control as soon as the session names its mode
A created chat's reply carried no mode, and the chat destination kept the
first row it opened for the whole visit, ignoring later list re-reads, so the
mode control only appeared after closing and reopening the chat. The server
now names the mode on a created row, and the destination adopts each listed
row that a re-read changed (excluding the live running flag), so the open
conversation follows new, refreshed and other-device mode changes in place.
2026-11-02 16:37:35 +00:00
alan b4382b08ad Apply the chat directory's environment and account to Claude Code chats
Claude Code chats now start with the chat directory's own environment:
direnv (allowed .envrc only, via direnv export json) and mise (mise env
--json), cached per directory and invalidated when config, watched files or
allow records change. A blocked .envrc is logged and shown in the chat as a
notice and never applied. When the directory chooses the Claude account
(CLAUDE_CONFIG_DIR, API key or token variables), the server's service token
and login-file fallbacks are skipped and inherited credentials dropped.
Transcripts in a directory's CLAUDE_CONFIG_DIR are found for history,
resume and after a restart. PWD is set to the chat directory.
2026-11-02 16:37:20 +00:00
alan d78cbe3f66 Merge: one way to set up harnesses (pipelines harness setup) 2026-11-02 16:14:50 +00:00
alan de10797f20 Merge: list pane width cap 2026-11-02 16:14:50 +00:00
alan 885234e0e4 Cap the list pane at 440 px beside an open item
On very wide windows (a 4K monitor) the list took 40% of the window; past
440 px the extra width now goes to the open item. Fold and laptop widths
keep the 60/40 split.
2026-11-02 16:14:50 +00:00
alan 108c29f9eb One harness setup path: pipelines harness setup <claude|codex|opencode|pi>
Checks the CLI on the server's PATH (install command when missing), signs in
with the harness's own login only when needed (--login forces it), keeps the
OpenCode/Pi model pickers, and verifies with the server's check. Works on
native and Docker installs (Docker delegates to the container setup); --host
is a hidden compatibility alias. harness list shows all four harnesses'
installed/signed-in/configured/default status. ./install --opencode|--pi now
point to the command; ./install ends with the next-step hint.
2026-11-02 16:11:04 +00:00
alan 1f214d36bf Merge: chat notifications arrive with no client attached 2026-11-02 16:09:39 +00:00
alan 80022ea41a Keep observing chats with an in-flight turn after the last client leaves
Chat attention notifications (questions, approvals, finished replies) come
from a session's event stream, which the hub only read while a room existed;
detach destroyed the room when the last client left, so a turn that finished
or asked with the app closed notified nobody.

A room whose last client leaves now stays observing, unattended, while its
turn is in flight or it holds an unanswered question/approval, and is torn
down when the turn ends (or after 6h for a stuck turn); at most 16 such rooms.
At server start, recently used open sessions whose harness reports a running
turn (OpenCode /api/session/active, Codex thread/turns/list) are observed
again so their reply still notifies. Settings, dedupe and app_notifications
recording are unchanged.
2026-11-02 16:07:42 +00:00
alan 9d1c8bf910 Merge: tab bar — sliding highlight, no entrance replay on switches 2026-11-02 15:59:26 +00:00
alan 94a41ff563 Glide one tab highlight and stop tab entrances replaying on selection
The per-tab entrance pop lived in each icon, but the hosts swap a tab's
icon subtree when it is selected or deselected (Material wrapped the
selected icon in its own circle; Cupertino did the same in activeIcon),
so every tab switch remounted those icons and replayed their pop.
The bar now owns the entrance, highlight slide and bounce animations and
restarts the entrance only when its set of tabs changes.

One highlight behind the icons glides to the new tab (250 ms, stretching
to 1.25x wide mid-move) and the new icon bounces (1.08x, 180 ms); reduced
motion jumps. Cupertino paints it from tab 0 above the host's backdrop
blur.
2026-11-02 15:58:51 +00:00
alan 467f3eafa7 Merge: README, install, harness and notification docs 2026-11-02 15:54:49 +00:00
alan 3e100f78f3 Document the current install, harnesses and notifications
Rewrite the README around the server, web/Android app and CLI, and
replace docs/install.md with the current native install (all-or-nothing
Docker web build, flags from setup-native.py, lifecycle commands, data
locations, password, upgrading). Add docs/harnesses.md and
docs/notifications.md; point ntfy.md at the new overview and fix its
topic name.
2026-11-02 15:54:25 +00:00
alan 815f7c2a5a Stage notifications: no empty "()" and say what a waiting stage needs
A waiting human stage has no outcome yet, so its notification read
"… · waiting ()". The outcome is now shown only when recorded, and a
waiting stage reads "waiting for your decision".
2026-11-02 15:47:06 +00:00
alan 1c8680393e Merge: perf round 4 — lazy chat sessions list 2026-11-02 14:29:04 +00:00
alan 8fd55cb7eb Perf round 4: lazy chat sessions list
Chat sections are slivers: a lazy, keyed SliverList under the same heading,
with SliverAnimatedExtent reproducing the clipped AnimatedSize for open,
close and arriving rows. The first Chat tab visit no longer builds every row
(150 chats: worst build frame 116 ms to 19 ms).
2026-11-02 14:28:33 +00:00
alan 2f6d967f3b Merge: perf round 3 — run detail builds hidden tabs after the transition 2026-11-02 13:55:25 +00:00
alan f1ac647125 perf: build unshown run-detail tabs after the route transition; interaction bench
FadeThroughStack(lazy: true) builds only the shown page first and the rest
one per frame once no animation runs. Opening a run detail no longer lays out
Timeline, Artifacts and Changes offstage during the route transition
(transition build 62-103 ms -> 38-59 ms); first tab switches are unchanged.

Adds tool/perf/interaction_bench.mjs (FrameTiming per interaction over the
full-app fixture, CPU profiles mapped to Dart files), fixture options for
hits/chats/graph, and notes/perf-round3.md with the survey.
2026-11-02 13:54:56 +00:00
alan ec619234c2 Merge: perf — cheaper frosted glass (sigma 4, grouped backdrops) 2026-11-02 00:59:41 +00:00
alan b90c7e2d1d Cheaper frosted-glass blurs: sigma 4 and one backdrop read per bar
Blur sigma 16 -> 4 keeps CanvasKit on its direct blur path; under the 84%
fill the look is unchanged (max 13/255 inside the pieces). SegmentedBar's
pieces share a BackdropGroup so Impeller reads the content behind them once.
Adds a scroll frame-time bench, a backdrop census and filler rows to the
full-app probe. CPU CanvasKit, 560x900: run timeline p50 31.8 -> 22.1 ms,
runs list 25.3 -> 19.9 ms.
2026-11-02 00:58:23 +00:00
alan 0bf81a7c4e Merge: perf round 2 — long chats open with only the visible rows 2026-11-02 00:55:37 +00:00
alan c74065dc48 Settle bottom-anchored restores, flush open timings in the probe, record numbers 2026-11-02 00:55:03 +00:00
alan 4af1ab843e Merge: search artifact hit opens that artifact 2026-11-02 00:40:38 +00:00
alan 629c8c6091 Search artifact hit: clear the pending visit flag; tests for opening
After opening an artifact from search the pending flag was never cleared, so
later visit selections stopped syncing. It is cleared once the visit page is
installed. Adds widget tests: the hit opens the viewer on that artifact, Back
lands on its visit and another visit still opens, and a missing artifact shows
the notice. Finishes run #231.
2026-11-02 00:40:38 +00:00
alan 7e00cedd00 Merge main 2026-11-02 00:36:49 +00:00
alan 41492df436 WIP: search artifact hit opens the viewer (run #231) 2026-11-02 00:35:23 +00:00
alan a5f0eb3811 Open long chats bottom-anchored so only the rows that show are laid out 2026-11-02 00:23:52 +00:00
alan 63d3b8e478 Merge: perf round 2 — memoized list rows, lazy artifact sections 2026-11-02 00:22:55 +00:00
alan 27dc4840e2 Allow the runs burst bench for executing rows' clock-driven durations 2026-11-02 00:22:22 +00:00
alan b80c52b3e1 Measure chat transcript open cost in the perf harness and web probe 2026-11-02 00:15:40 +00:00
alan 7b1455631b Rebuild only changed list rows and lay out big artifact sections lazily
Runs and chat session rows are memoized on their own data (MemoSubtree), so
a run event or a chat's running change rebuilds one row instead of every
built row. The artifact gallery's open sections are lazy slivers revealed
by a sliver open/close animation, and thumbnails decode at display size.
Benches in test/perf measure both.
2026-11-02 00:08:29 +00:00
alan 52e31fc4ec Merge: perf round 1 — chat streaming rebuilds only the live turn 2026-11-02 00:00:09 +00:00
alan 20bf6202b3 Rebuild only the live chat turn while replies stream
Reuse unchanged transcript rows, the composer bar and the header across
streamed deltas, and share parsed markdown by text so rows scrolled back
into view are not parsed again. Adds a rebuild/parse harness and a
release-web frame-timing probe with a long-transcript fixture.
2026-11-01 23:59:40 +00:00
alan b3b761c56d Merge: perf round 1 — shared clock, narrower shell rebuilds, quiet run events 2026-11-01 23:33:12 +00:00
alan 3b996bdbc7 Share one minute clock across time labels and narrow shell and runs rebuilds
Relative-time labels follow one wall-minute RelativeTimeClock instead of a
timer per row, skip ticks while their tab is offstage and rebuild only when
their text changes. The shell rebuilds its top bar only for the focused
destination's published bar and its tab bar only for badge changes. Run
events that repeat a row's state no longer notify, and the runs list filters
and sorts once per build. Adds a rebuild/timer benchmark.
2026-11-01 23:29:39 +00:00
alan bdf70af7e8 Merge: folder picker for new chats 2026-11-01 21:52:28 +00:00
alan eed3806efb Add a home-restricted folder picker to the new-chat dialog
Server: list_directory returns a directory_listing (path, home, parent,
entries with is_dir/is_git_repo/hidden, truncated) confined to the server
user's home subtree after cleaning and resolving symlinks, refusing pseudo
filesystems and capping entries at 2000. Documented in docs/cli.md.

App: "Choose folder…" in the create dialog opens a picker (full-screen page
on phones, large dialog on wide windows, Material and Cupertino) with
breadcrumbs, filter, Show hidden, git badges, dimmed files, recent folders,
inline errors and "Start chat here". The probe app gains a folder fixture
for captures.
2026-11-01 21:51:48 +00:00
alan eadd017bdc Merge: capture kit and repo memory watchdog 2026-11-01 21:29:47 +00:00
alan a322e367da Artifact viewer: keep the preview between the top bar and the controls
Every preview (image, text, markdown, HTML, video) now fills the space between
the viewer's top bar and its bottom controls instead of passing behind them;
the insets are applied once here and removed for the content inside.
2026-11-01 21:22:36 +00:00
alan ea428d3c98 Add generic capture kit and repo-owned test memory watchdog
app/tool/capture: one Chrome DevTools capture CLI over the full-app fixture
(serve build or URL, private headless Chrome or --cdp attach, label/key/xy
clicks via Flutter semantics, type, press, scroll, screenshots, filmed
clicks with a canvas contact sheet, cleanup on exit/signal), README recipes
and an example script. The fixture entry gains ?theme=light|dark.

app/tool/memwatch: run.sh/full.sh watchdog moved from /tmp (output dir
created if missing, exit status propagated) plus install.sh for the legacy
/tmp/memwatch shims. app/AGENTS.md points tests at full.sh and UI review at
the capture kit.
2026-11-01 21:22:08 +00:00
alan b57b494959 Merge: pipeline page actions 2026-11-01 20:41:34 +00:00