Commit Graph

1761 Commits

Author SHA1 Message Date
alan 1de74f76bb Chat info: Session section with native id, resume command and export
The chat information sheet gains a Session section: the harness's native
session id (copy), harness, directory, a verified resume command (copy)
and Export conversation (Markdown), Export JSON and, for Claude Code,
Export native session (the JSONL transcript).

Server: chat_sessions rows carry resume_command and native_export; new
chat_export command builds Markdown/JSON from the same paged history
chat_messages serves (bounded at 8 MiB), refuses non-operator sessions.
App: exports go through the artifact file bridge (web download, share
sheet on phones).
2026-11-03 10:59:41 +00:00
alan 6413fc5a90 Merge: top bar items pop in like the tab buttons 2026-11-03 00:31:21 +00:00
alan 05798a56c8 Top bar: every piece pops in like the tab buttons
One shared pop (pop_entrance.dart: PopTransition, popWindow, PopEntrance)
drives the floating tab buttons and the top bar, on Motion.tabEntrance*
(0.6 -> 1, 260 ms, 70 ms stagger, ease-out-back, glass fading in).
SegmentedEntrance and the barEntrance* constants are gone.

Back, the title, the actions pill and each action pop in turn from the
leading edge (SegmentedEntrancePlanner). A lone action pops once, with its
pill. A newcomer pops alone. Rebuilds and title changes never replay it.
The shell passes published actions one by one, keyed by their screen
(actionsKey), not as one cross-fading Row. The chat thread's model and mode
are separate actions. The folder picker now uses SegmentedBar.
2026-11-03 00:30:44 +00:00
alan 2176b396ac Tabs: the selected button grows about 20%, neighbours keep their gaps
The selected tab's whole button (62 px Material, 60 px Cupertino, from 52/50)
and its icon grow with the selection in the layout, so the other buttons move
over and every gap stays the same; the previous selection shrinks back. The
row is as tall as the selected button with the others centred on it.
2026-11-02 22:30:25 +00:00
alan 6fcdbcaec2 Tabs: the selected tab's icon is a little larger
The selected icon grows to 1.15x with the selection tint (220 ms, same curve)
and shrinks back when another tab is selected, on every floating tab bar;
reduced motion jumps straight to the size.
2026-11-02 21:57:26 +00:00
alan badf858124 Merge: chat wheel/trackpad scrolling fixes 2026-11-02 20:40:17 +00:00
alan d02d5ea11d Chat transcript: wheel and trackpad scrolling always reaches the transcript
Root causes found in release web captures (1280x800 and 560x900):
- Follow mode undid small wheel/trackpad ticks at the end: each tick is its
  own scroll, re-judged as following within 32 px and jumped back. A user
  scroll toward older rows now releases the end however small; the jump
  control appears once streamed content moves the end beyond the threshold.
- The end-of-scroll jump ran inside the position's activity switch, so a
  touch or scrollbar drag released near the end recursed without end (stack
  overflow during the gesture). The jump now runs after the notification.
- Horizontally scrolling code blocks and tables claimed diagonal trackpad
  gestures whole. HorizontalScrollView gives mostly vertical gestures to the
  enclosing list; sideways and Shift + wheel still scroll the block.
- The wheel over the floating chat bar, composer and jump control moved
  nothing. VerticalWheelForwarder scrolls the transcript from them unless
  something under the pointer claims the event.

Adds widget tests per content kind and scroll mode, follow/touch/Load older
tests, a capture-kit check (tool/capture/examples/chat-wheel-scroll.json)
with eval/expect steps, wheel dx/repeat, --params and eval: targets, a
transcript scroll probe and fixture options, and fixes the kit ignoring a
script's size. Notes in notes/chat-wheel-scroll.md.
2026-11-02 20:37:36 +00:00
alan bd79011046 Merge: account quota in the chat info sheet 2026-11-02 18:57:53 +00:00
alan 10049b8062 Chat info: account quota per harness (Claude rate_limit_event, Codex account/rateLimits, OpenCode unsupported)
Usage frames carry optional usage.account {harness, source, plan, as_of,
windows[{id,label,used_percent,resets_at}], unsupported}. Claude Code quota
comes from its rate_limit_event stream lines and the initialize account
(plan), shared across chats on the same account. Codex reads
account/rateLimits/read once per connection (re-read when a chat opens after
5 min) and merges account/rateLimits/updated. OpenCode exposes no quota API
and says so. The app's chat info sheet shows an Account usage section with a
progress bar and reset countdown per window, Material and Cupertino.
2026-11-02 18:57:13 +00:00
alan 6fbfa4e11f Merge: tabs as separate round glass buttons 2026-11-02 18:44:27 +00:00
alan 377ff04aaf Show each floating tab as its own round glass button
Replace the single glass pill (host NavigationBar/CupertinoTabBar with one
gliding highlight) with a row of separate circular GlassPill buttons, 52/50 px
with 12/10 px gaps, at the same bottom-right place. The selected button fills
with the host selection tint and cross-fades; each button pops in on its own,
staggered, only when the bar appears or its tabs change; presses sink like the
top bar's. Tab semantics, keys, tooltips and badges are kept; the row shares
one BackdropGroup for its blurs.
2026-11-02 18:43:05 +00:00
alan 7ab15f9ba9 Merge: search artifact hit opens that artifact (phone path fixed) 2026-11-02 18:40:15 +00:00
alan 8d2ca95057 Open Search artifact hits in the viewer over the run's Artifacts tab
On a phone-width window the open run is its own page pushed on the app
navigator, so RunDetailTabs was not a descendant of the shell's
RunSearchSelectionScope (which wraps only the Runs tab body). The field or
artifact selection was never seen and the run opened at its plain Summary.
The previous widget tests injected the scope directly above RunDetailView at
900 px, where the detail is an inline pane, so they could not catch it.

- RunsScreen relays the shell's search scope into the detail it builds, so
  the pushed page sees the selection too (also fixes field hits on phones).
- An artifact hit now opens the run's Artifacts tab and the gallery opens
  that artifact exactly as a tap there does: selected, scrolled into view
  (ArtifactVisitReveal) and in the viewer. Back returns to the tab with the
  artifact highlighted. An unknown URL leaves the tab open with the existing
  "That artifact is no longer available." notice.
- New test/application/search_artifact_open_test.dart drives the real Search
  tab -> typed query -> result tap -> run read -> viewer on a 390x844 phone,
  Material and Cupertino; it fails without the scope relay.
2026-11-02 18:39:43 +00:00
alan 8a402c1114 Merge: even edge gaps in glass control bars 2026-11-02 18:36:14 +00:00
alan 4d9ee1ea78 Give glass control bars equal end and edge gaps
Inside a glass bar the first and last controls now keep the same gap from
the pill's sides as from its top and bottom, from shared GlassBarMetrics
(48/44 targets, 8 edge gap). Applies to the artifact viewer bar (hugs its
actions without a pager), the chevron pagers (position text inset like an
icon), and the chat composer's Cupertino Send/Stop (centred circle).
Run 7 in the full-app probe now records change captures for diff captures.
2026-11-02 18:35:37 +00:00
alan b535e9a8f3 README: PATH step and a Linux (Debian/Ubuntu) quick start
Adds the copy-paste prerequisites for Linux (Docker group, Go from go.dev,
OpenCode), the PATH line for the installed CLI, and enable-linger so the
systemd --user service survives logout.
2026-11-02 18:17:16 +00:00
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