Commit Graph

473 Commits

Author SHA1 Message Date
alan 70cdf985c5 Show server-queued chat prompts from the server, with Remove
The thread reads the session's queued prompts from the chat_subscribe reply
and chat_queue frames: a reload draws them as Queued after the transcript,
a delivered one enters the transcript as Sent, a refused one becomes Not
sent, and Remove sends chat_unqueue. A prompt the server reports queued is
dropped from the device unsent store; the any-frame queued heuristic is
used only with a server that does not report its queue.
2026-11-01 18:42:10 +00:00
alan 5132da62a9 Artifact viewer bar: right above the tab bar and clickable
The viewer's action/pager bar added the inherited bottom clearance twice
(its SafeArea already applies it), floating far above the tab bar. On the
web an HTML preview's iframe passed behind the bars and, as a platform view,
took every click there; it now stops at the bars. Also keep floating tabs in
semantics while they fade in, which broke the badge announcements (5 failing
tests on main since the entrance animation landed).
2026-11-01 16:55:14 +00:00
alan 6e6559235f WIP: expandable run title (run #224) 2026-11-01 12:43:27 +00:00
alan 5346759665 Use native service as Android notification source 2026-11-01 10:01:16 +00:00
alan 2808378823 Keep turn documents out of the artifact viewer unless Debug is on
Opening a stage artifact paged through every visit's turn documents too,
although the list hides them; the viewer now pages through what the list
shows.
2026-11-01 08:32:10 +00:00
alan ea134b38f2 Merge: Android in-app notification service 2026-11-01 02:22:03 +00:00
alan 826e420423 Deliver server notifications from the Android app itself
A native foreground service keeps an authenticated websocket to the
connected server (handed over by the app on every connect), subscribes with
a replay cursor, shows each notification with kind-based channels and
grouping, opens pipelines:// links on tap, and clears taps, dismissals and
cross-device clears. It starts at boot and app launch, backs off and follows
network changes. Settings gains the delivery switch, status, notification
and battery-exemption actions, and the server's optional ntfy_enabled
toggle.
2026-11-01 02:21:22 +00:00
alan 4bb495ed63 Merge branch 'main' into pager-bar-overlap 2026-11-01 02:05:09 +00:00
alan 821d1a8836 Keep pager controls clear of floating bars 2026-11-01 02:05:06 +00:00
alan 944a26ce1a Open run artifact groups by default
Turn documents are hidden behind the Debug toggle now, so the run's own
artifact groups (the run Artifacts tab and a stage's Artifacts section) start
open instead of collapsed.
2026-11-01 01:41:54 +00:00
alan 8193626076 Restore activity row touch targets 2026-10-31 23:40:18 +00:00
alan 49afcba2d3 Preserve activity row layout changes 2026-10-31 23:39:27 +00:00
alan b80c267dd7 Merge: runs multi-select, delete and size sort 2026-10-31 22:20:06 +00:00
alan 266916f92a Runs: multi-select delete, run sizes and Largest-first sort
- Select mode (bar Select or long-press): per-row checkboxes, per-day
  Select all/Deselect all over finished runs only, "N selected" with the
  selection size, Delete and Done. Active runs get a disabled checkbox
  whose semantics give the reason.
- Native destructive confirmation, then delete_runs {run_ids} (batched by
  1000); the nested runs_deleted reply removes deleted rows and reports
  "Deleted N runs, freed X" plus refusals verbatim. runs_removed pushes
  remove rows and close an open detail; a deleted open run closes too.
  Delete run in the row and detail menus.
- size_bytes shown compactly in rows (0/absent = unknown, nothing shown),
  updated from run_event frames that carry it; Largest first sort (flat,
  unknowns last); the sort choice persists.
- Shared AppListRow gains selectionControl and onLongPress.
- Browser probe tool/runs_delete_probe.mjs; fixture server implements
  delete_runs/runs_removed.
2026-10-31 22:19:36 +00:00
alan 7504fa5f94 Merge: restore composer focus when the window returns 2026-10-31 22:16:43 +00:00
alan 7ec92e1de5 Return focus to the chat composer when the desktop window comes back
On web the engine closes the text connection on the editing element's blur,
which the browser fires just before the window blur, so the field is already
unfocused when lifecycle inactive arrives and FocusManager's own suspend and
resume restores only the route scope. Remember whether the composer held (or
had just lost) focus when the window left, and refocus it on resume, keeping
the caret and selection, unless another control took focus or a dialog,
sheet or route covers the chat. Desktop hosts only, so phones never get an
unasked on-screen keyboard.
2026-10-31 22:16:21 +00:00
alan 04d04cfe79 Merge: report a busy chat session on subscribe 2026-10-31 22:09:33 +00:00
alan 429e175b95 Report a busy chat on subscribe after a reload
The room that records a server-run turn is torn down when its last client
leaves, so a page reload re-subscribed to a new room that no longer knew the
turn was running and never replayed the step-started marker. Claude Code does
not re-announce a running turn to a new stream either, so the activity row and
Stop control vanished until the next streamed delta.

chat_subscribe now also replays the marker when the room's stream announced a
turn (CLI-originated or re-announced on attach) or when the broker reports its
own turn in flight through the optional chatTurnReporter (Claude Code reads its
in-process running flag; the chat manager routes it without I/O).
2026-10-31 22:09:11 +00:00
alan 0ceafcb6d7 Search results and pill span the pane; lock stage page to the full detail pane
Remove the 840 px Search reading cap (results column and bar pill) so both
fill the pane at Fold and wide widths. Add a width test for the stage page
at 880 and 1400 and deep-link/query flags to the search probe entry.
2026-10-31 22:01:28 +00:00
alan cc3d450696 Merge message delivery status and refresh safety 2026-10-31 20:03:57 +00:00
alan 8d147ac83b Show message delivery state and keep unsent messages across reloads
A sent message is stored on the device until the server accepts it, so a
reload mid-request no longer loses it: on reopening, a stored intent the
history records is cleared as sent, otherwise it shows as Not sent with
Retry (same operation id) and Edit. The operator's bubble shows Sending,
Sent (newest only), Queued or Not sent. A live refusal keeps the old
contract (exact draft and chips back in the composer, unchanged re-send
reuses the id) and marks the bubble Not sent with Retry. On web, leaving
or reloading the page while a prompt is in flight asks first.
2026-10-31 20:03:29 +00:00
alan 23ff72934e Use GitHub's diff colours for changed lines and +/- counts
Added and removed lines take GitHub's green and red tints, with the code in
the label colour and the +/- marker and counts in GitHub's strong green and
red, in both themes and hosts.
2026-10-31 19:54:48 +00:00
alan 4bc99f490b WIP: message delivery status and refresh safety; fix reconcile listener recursion
The transcript listener read the lazily built _controller while _attach was
still building it (load() notifies synchronously), so it built another
controller, recursively, until the test process ran out of memory.
2026-10-31 19:54:48 +00:00
alan 24956266d8 Merge branch 'worktree-agent-aacd07191b682c8cd' into integrate/para-spacing 2026-10-31 17:06:38 +00:00
alan 9de87d5a2b Separate chunked reply paragraphs with an empty-line gap
Consecutive text parts of an agent turn (including folded messages) and
markdown blocks within a part are now separated by ~0.9x the scaled body
font size; a heading stays 8px from what it introduces. Adds a ?paras=1
chunked reply to the composer probe and gap tests at 1x/2x.
2026-10-31 17:05:10 +00:00
alan 3be728296c Merge branch 'worktree-agent-a77fe68a62a10ce30' into integrate/notify-marked 2026-10-31 16:55:40 +00:00
alan 44ea45150f Compact floating tab bars with circular selection and equal edge gaps
The floating tab bar is now sized to its icon tabs at the bottom right on
every width, the selected icon sits in a tinted circle on both hosts, and
the gap from each outer circle to the pill's sides equals the gap to its
top, bottom and neighbours.
2026-10-31 16:53:24 +00:00
alan d0eb91767f Merge branch 'worktree-agent-af8a7475a38f6de50' into integrate/notify-marked 2026-10-31 16:52:24 +00:00
alan b109ab3e06 Notify on run end only for runs marked Notify me
Auto runs no longer alert on failure or success; only notify_mode on does,
unless the run_finished setting (now 'Notify when any run ends', default off)
opts into every run end. Waiting still notifies auto and on runs. The setting
is stored under a new key so a value saved under the old meaning is ignored.
2026-10-31 16:52:04 +00:00
alan fb1935a62d Keep graph edge labels clear of nodes and other labels
The linear layout used by the definition and run graphs placed each
outcome label at the middle of its widest run with no collision check,
and the run graph measured only the label text while rendering an order
badge in front of it, so taken labels ran into the next node.

Labels now try positions along their own route (horizontal runs above
and below, sliding along, then vertical runs) and take the first whose
box stays 4px clear of every node and earlier label, preferring spots
off other wires. If a label finds no spot, the layout widens its column
gaps and lanes and runs again; a last-resort shelf below the drawing
never overlaps. The run graph measures the exact badge+label widget it
renders, keyed by edge id.
2026-10-31 16:36:48 +00:00
alan f84948153b feat(app): add debug toggle for turn documents 2026-10-31 15:22:33 +00:00
alan 6962d0bfe0 Merge branch 'main' into run-sort-sheet-check 2026-10-31 15:16:43 +00:00
alan 5adcc0a379 fix(app): use native selected affordance in runs sort sheet 2026-10-31 15:15:45 +00:00
alan 77ba068c03 Merge branch 'main' into run-chat-info-header 2026-10-31 15:10:50 +00:00
alan f7ff589ab5 fix(app): use shared header for chat information sheet 2026-10-31 15:10:46 +00:00
alan ea498e88db Merge branch 'worktree-agent-a992ffc22d3f335ed' into integrate/tabs-v2 2026-10-31 14:58:19 +00:00
alan a1c4c1c402 feat(app): icon-only tab bars, Settings from the Pipelines bar, main bar bottom right with detail bars above it
Settings leaves the tab bar (Pipelines, Runs, Chat, Search) and opens as a
page from a gear in the Pipelines bar, keeping /settings, its keys and a Back
to Pipelines (also the system Back). Every floating tab bar shows icons only,
named for assistive technology. On wide windows the shell's tab bar stays at
the bottom right; a split detail learns its height plus a 12px gap, so its
tabs or the chat composer float above it, and pages the detail opens (the
stage page) stay in its pane through its own navigator.
2026-10-31 14:57:56 +00:00
alan 6b11b136db fix(app): meaning colours for common outcomes; detail pages fill the pane
Timeline outcomes: success-like words are green, failures red,
rejections orange, retries/advisories amber, skips/cancellations grey;
a second word of the same family takes the family's next shade and any
other word a distinct hue outside the families, so different outcomes
still never share a colour.
Run detail, stage page and pipeline Summary no longer cap their width
at 840: on an unfolded foldable the sections fill the pane. The unused
ReadingWidth helper is removed.
2026-10-31 14:36:15 +00:00
alan 33cb9ca121 Merge branch 'main' into run/artifacts-split 2026-10-31 12:56:19 +00:00
alan acf74116d7 feat(app): separate turn documents from artifacts 2026-10-31 12:56:16 +00:00
alan cc07302868 Merge branch 'worktree-agent-ae3f1fe9138e563be' into integrate/r3-rest 2026-10-31 12:51:39 +00:00
alan ab64f55bf2 Merge branch 'worktree-agent-aab11f4f1fe3dff6b' into integrate/r3-rest 2026-10-31 12:51:39 +00:00
alan 6987a8992e Merge branch 'worktree-agent-a099cbf073f6e9e51' into integrate/shell-wide
# Conflicts:
#	app/lib/features/runs/ui/run_detail_tabs.dart
2026-10-31 12:51:39 +00:00
alan d1aa36163a Sync Needs-you dismissals and chat read state across devices 2026-10-31 12:47:25 +00:00
alan 8d9a21c310 Merge branch 'worktree-agent-a75e04ded5a42e4fb' into integrate/detail-bodies
# Conflicts:
#	app/lib/features/runs/ui/run_detail_timeline.dart
2026-10-31 12:42:39 +00:00
alan 75fb0fc6e5 Merge branch 'main' into worktree-agent-aab11f4f1fe3dff6b
# Conflicts:
#	app/test/features/runs/ui/run_list_row_test.dart
2026-10-31 12:36:49 +00:00
alan 251a15f8f8 Merge branch 'main' into worktree-agent-aab11f4f1fe3dff6b 2026-10-31 12:34:16 +00:00
alan bd370c9956 Merge branch 'main' into run/formats-wording 2026-10-31 12:29:16 +00:00
alan fe24f228fe fix(app): one relative-time style, day-aware durations, consistent visit wording
Review r2 findings P2-4, P2-5, P3-13: a shared relative-time helper for
every list row's time, formatDuration switches to days past 24h ('9d
16h'), the stage page uses one visit numbering, drops a repeated stage
heading and fixes '1 files', and search run hits read 'Run 1'.
Implemented by pipeline run #205/#207 (Terra); its UIReview blocked on a
fixture without timestamps, verified by the manager.
2026-10-31 12:29:16 +00:00
alan 1bf2ae41c4 fix(runs): colour timeline outcomes by name, not by status
A completed step's outcome chip took the success colour, so 'rejected'
read green beside 'success'. Outcome chips now get one colour per
distinct outcome name in the run (assigned by first appearance, from a
well-separated hue list that continues by the golden angle), so equal
names match and different names never share a colour. No outcome word
is wired to a colour; the status glyph still shows the step's state.
2026-10-31 12:28:54 +00:00