Commit Graph

566 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 b56a2eb72d Fade-through tab transitions, kept state and tests (finishes run #228)
Tabs fade through when switching main destinations and page tabs. Each page
keeps one widget structure whatever its state, so its element (scroll,
controllers, text) survives switches; curves are computed directly instead of
building a CurvedAnimation per frame; only the active and outgoing pages are
on stage, including under reduced motion. Adds FadeThroughStack tests.
2026-11-01 17:27:05 +00:00
alan c742bb17f0 Merge branch 'main' into tab-pop-anim
# Conflicts:
#	app/lib/ui/adaptive/floating_destination_bar.dart
2026-11-01 17:05:54 +00:00
alan b1d149d872 Make floating tab entrances pop sequentially 2026-11-01 17:01:12 +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 8687f0fc0d Merge commit '09389f18cb01effd9c855e5b91722ade4816395a' into tab-spacing-anim 2026-11-01 13:13:26 +00:00
alan 4007599c99 Animate and space floating tab bars 2026-11-01 13:13:15 +00:00
alan 6e6559235f WIP: expandable run title (run #224) 2026-11-01 12:43:27 +00:00
alan fea3d770b4 Increase floating tab icon sizes 2026-11-01 11:33:01 +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 6c7c32078c Merge commit '72128d53685269ff1e13d2c76c80b6276f7635ba' into sticky-section-clip 2026-11-01 01:50:32 +00:00
alan c20070be21 Merge main 2026-11-01 01:50:24 +00:00
alan 82af7b250f Keep relative times in the chat and runs lists up to date
A shared RelativeTimeLabel refreshes at the next minute/hour/day boundary,
pauses while the app is hidden and catches up on resume. It keeps the row's
time style (an unread chat's accent). Continues run #218.
2026-11-01 01:50:24 +00:00
alan 977407bcca Fix sticky section content overlap 2026-11-01 01:50:17 +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 f422d26e32 Add shell destination keyboard shortcuts 2026-11-01 00:34: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 9c4fd47a99 Merge branch 'worktree-agent-a3f73161a4ac21646' into integrate/graph-labels 2026-10-31 16:37:08 +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 41a9e99da8 fix(app): selecting another item closes the previous item's pane page
On a wide split window a run's stage page (or an artifact, a file) opens
inside the detail pane's own navigator. Selecting another run kept that
page on top, so the pane still showed the old stage. ListDetailPanes now
takes the selected item's identity (run, chat or pipeline id) and the
pane navigator pops back to the item when it changes.
2026-10-31 16:30:05 +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