Commit Graph

1694 Commits

Author SHA1 Message Date
alan f8903e2f6d WIP: pipeline page Runs/Run icon actions (run #230) 2026-11-01 20:37:29 +00:00
alan 4503febb07 App icon: the Pipelines tab glyph in white
Replaces the coloured graph with the Pipelines tab's own glyph (Material
account_tree, outlined, taken from the MaterialIcons font) in white on the
dark background, across Android, iOS and web.
2026-11-01 20:03:26 +00:00
alan 3bfb3d6b44 Fix decide-after-finish refusal and run size loop data race
A run stays in r.active after finishRunState persists its terminal status
until its goroutine finishes notifying, so a decision in that window was
refused as "already active". decide now refuses only runs whose terminal
state is not yet durable; a finished run gets ResolveDecision's
already-decided / not-waiting answer, and an executing run is still refused.

Tests overwrote runner.artifactsRoot after Handler/newRunner had started
background goroutines (sizeLoop, session export jobs) that read it. The
root is now fixed at construction through newRunnerAt, which
HandlerWithOptions uses for Options.ArtifactsRoot, and tests configure it
there instead of mutating the field afterwards.
2026-11-01 18:58:14 +00:00
alan c41f5caa4f Merge: server-owned chat prompt queue, mid-turn delivery 2026-11-01 18:43:16 +00:00
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 e42f9cc031 Send mid-turn chat prompts to the harness and queue the rest durably on the server
Claude Code (stream-json stdin) and Codex (turn/steer pinned to the active
turn) receive a prompt sent while a turn runs immediately. Other harnesses
(OpenCode) get a durable chat_prompt_queue row owned by the session: it
survives the last client detaching and a server restart, is delivered in
order when the turn ends with or without a client, and is deduplicated by
operation id. chat_subscribe carries the queue, chat_queue frames report
delivered/removed/failed changes, and chat_unqueue removes a waiting prompt.
2026-11-01 18:30:20 +00:00
alan d300fdc5a5 New app icon: a pipeline graph instead of the P
One stage forks into two parallel stages that rejoin in a finished ring, in
the app's palette on the dark background. Updates the Android adaptive,
themed and legacy launcher icons, the status-bar icon, the iOS icon set and
the web favicon and PWA icons, and adds the generator under tool/app_icon.
2026-11-01 18:02:34 +00:00
alan a83346276b Merge: runs no longer wedge on an exhausted session export 2026-11-01 17:27:05 +00:00
alan 603e9771bf Merge: fade-through tab transitions 2026-11-01 17:27:05 +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 d35739cb49 Release session export gates whose recovery is exhausted or overdue
An exhausted export recovery job left its run parked forever in the
export wait, reserving the workspace and refusing later scheduled runs
(runs 221/226: OpenCode sessions above the 8 MiB export bound are
always truncated, so every retry stays partial).

A gate is now releasable when its job is exhausted: the visit keeps its
partial/unavailable evidence and diagnostic (still repairable), the run
continues to its next stage or terminal, and the workspace is freed.
Gates older than 15 minutes with a pending, lease-expired or missing job
are exhausted by a bounded wait. The worker reconciles on its first
tick after startup and every 30 seconds, so existing wedged runs recover
after a restart. Truncation diagnostics now name the size bound.
2026-11-01 17:24:56 +00:00
alan d210ba2381 Merge main
# Conflicts:
#	app/lib/ui/motion/motion.dart
2026-11-01 17:15:28 +00:00
alan c385a1f72b WIP: fade-through tab transitions (run #228) 2026-11-01 17:15:17 +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 bc3472e63c Merge: artifact viewer bar position and clicks; tab fade semantics 2026-11-01 16:55:14 +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 09389f18cb Merge: expandable run title 2026-11-01 12:57:44 +00:00
alan 331509106c Expandable run title: full title on tap, pipeline link as an icon
Tapping the run detail's title expands it to the whole title and subtitle
with an icon button that opens the pipeline; tapping again, or another run,
collapses it. The expanded title is drawn in the overlay, anchored to the bar
and sized beside the actions, so its pipeline icon receives taps and the
actions stay visible. Other bars keep their title behaviour. Finishes run #224.
2026-11-01 12:57:44 +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 efb482465c Merge: app notification stream (ntfy optional) 2026-11-01 02:04:35 +00:00
alan d1846441cc Stream ntfy notifications to app clients over /connect
Record every notification published to ntfy (run outbox, stage notify
hooks, chat question/approval/reply) in a persisted app_notifications
outbox and stream it to subscribe_notifications clients with an after
cursor; clear_notifications and ack_attention clear across devices, as do
runs leaving waiting, deleted runs and answered chat questions. Add the
notify.ntfy_enabled setting (default on) to stop only the ntfy publish.
2026-11-01 02:03:58 +00:00
alan 6c7c32078c Merge commit '72128d53685269ff1e13d2c76c80b6276f7635ba' into sticky-section-clip 2026-11-01 01:50:32 +00:00
alan 72128d5368 Merge: relative times in lists keep updating 2026-11-01 01:50:24 +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 4d4aac5f81 Merge: run sizes and delete_runs 2026-10-31 22:11:56 +00:00
alan 31e89e872b Add run size_bytes and delete_runs to free disk space
Every run summary carries size_bytes (artifact tree, server-created Pi
session directories and an estimate of the run's database rows), cached in
pipeline_runs.size_bytes, invalidated by triggers, measured when a run
finishes and backfilled in the background. delete_runs removes terminal
runs with every scoped row and server-owned file, refuses active ones with
a reason, and pushes runs_removed to subscribers. pipelines runs rm is the
CLI form; retention apply now shares the complete row deletion.
2026-10-31 22:11:14 +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 1c52981482 Merge: search fills the width; stage page width test 2026-10-31 22:01:51 +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