Commit Graph

1315 Commits

Author SHA1 Message Date
alan 32029cf58f Merge main: ntfy removed, first-run messages kept
Resolved docs/install.md, internal/cli/app.go, internal/statusview and
scripts/setup-native.py: no ntfy anywhere (connection, status, installer
constants, troubleshooting ports), keeping the first-run next steps, the
unreachable-server and tool/Docker install hints. README drops the C
compiler (ntfy was its only user). The installer summary's password
wording is now per run (a reinstall in the same process no longer says
"you just chose"), and its test checks the URLs then the next steps.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-03 23:54:57 +00:00
alan 2c936fb29c Merge branch 'worktree-agent-a027d4a4581416c93' 2026-12-03 23:41:55 +00:00
alan ac07801588 Merge branch 'worktree-agent-abec427641b9e4fa8' 2026-12-03 23:41:55 +00:00
alan 44f0f2a4a8 Merge branch 'graph-stage-popover' 2026-12-03 23:41:55 +00:00
alan e72bee3faa First run: empty states with a next step, harness setup instead of errors
- One shared EmptyState (icon on a tonal disc, title, one line, primary
  action) that follows the design tokens; used by Runs (Start your first
  run), Pipelines (Browse templates), Schedules and the chat list (Start a
  chat).
- Chat on a server without an agent harness showed "Bad state: No saved
  machine is connected.": the federated list now keeps the server's own
  refusal, treats an omitted empty list as no chats, and the list shows a
  "Set up an agent" state with the harness setup command and Refresh. New
  chat shows the same step instead of a form that can only be refused.
- A run that fails because no harness CLI exists names the setup command
  beside the raw reason; error advice gains a noHarness kind.
- Templates opened before the app connected stayed on "Not connected";
  it now reads again when the connection arrives. The Pipelines empty state
  links to Templates, which had no entry point in the UI.
- The first-launch walkthrough waits briefly for the connection, so a
  connected web app is no longer told to connect; the empty-server check
  treats omitted lists and no chat harness as empty.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-03 23:29:23 +00:00
alan fc7dbb0ac0 Remove ntfy: notifications go only through the app notification stream
Server: drop ntfy publishing (stage hooks, run outbox, chat attention, chat
tool notify, auto-switch and schedule notices), the chat push outbox (its
table is dropped at startup), ntfy status/endpoints and PIPELINES_NTFY_*.
The app_notifications stream, subscribe/clear and kinds are unchanged.
Notification settings keep run_finished/chat_needs_you/chat_reply_finished;
ntfy_enabled is accepted and ignored and its stored row is never read.

Stage type=ntfy is rejected: "ntfy stages were removed; notifications go to
the Pipelines apps — use the stage notify hook". The notify hook remains.

Installer: no ntfy build, accounts, config or supervisor child; manifest
gets top-level "mode" (legacy ntfy.mode still read). Reinstall retires an
old ntfy (safe PID-file stop, deletes binary, config, data dir, token, log,
with a note in logs/install.log); uninstall cleans leftovers.

App: ntfy settings section replaced by "Notification events"; texts updated.
Docs: docs/ntfy.md folded into docs/notifications.md; install, docker, cli,
author skill references updated; security review M1 marked resolved.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-03 23:24:24 +00:00
alan fe7bf055a1 Merge branch 'worktree-agent-a1b6c249e2bec6658' 2026-12-03 23:19:40 +00:00
alan ce05ef3e69 Merge main 2026-12-03 23:19:18 +00:00
alan 413c923e77 Graph: stage popover with the prompt, tools, configs and run facts
Tapping or pressing Enter on a stage in the pipeline or run graph (inline
and full screen) opens a card anchored to the node: type, config chips,
tools, collapsed permissions, the prompt clamped with Show all (commands,
gate or operator instructions by type), limits and routes, and for runs
the status, visits, time, verdict, handoff and failure. Open definition
keeps the old tap target; Open visit the old run tap. It follows pan and
zoom, closes on outside tap, Escape or the same node, and opens as a
bottom sheet on a narrow viewport.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-03 23:19:18 +00:00
alan 36045373cb Merge branch 'main' into worktree-agent-a027d4a4581416c93 2026-12-03 23:14:40 +00:00
alan 3089bcd437 Chat stack groups: the dragged chat shrinks onto a drop target; notes
Over another item's middle the lifted item shrinks (as over the close
button), so the target's grown ring stays visible; a group's pile is
0.88 of a chat's disc. Notes for groups and the open-chat group field.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-03 23:07:16 +00:00
alan 43a1c65177 Merge branch 'main' into worktree-agent-a349550966b0e2bad 2026-12-03 22:34:49 +00:00
alan 73cdce4498 Merge branch 'main' into worktree-agent-a027d4a4581416c93
# Conflicts:
#	app/lib/features/chat/screen.dart
2026-12-03 22:18:58 +00:00
alan 048ecc651e Merge branch 'main' into worktree-agent-a1b6c249e2bec6658
# Conflicts:
#	app/lib/ui/theme/app_design_controller.dart
2026-12-03 22:18:46 +00:00
alan efaa0d9fca Chat stack: groups of open chats, synced with the open-chat set
A chat dropped onto the middle of another makes a named group (asked at
once, "Group N" by default); onto a group it joins, a group dropped onto
a chat takes it in, groups merge. The top level shows each group as a
small pile with its name and count; a tap opens it in place under a
header that leads back (also the scrim, Back and Escape). In a group,
dropping a chat on the header leaves the group; a group of one
dissolves. The close button ungroups a dropped group with Undo. Rename,
Ungroup, Close all (with Undo), Move to group and Remove from group are
in the group menu and as semantic actions.

Each open-chat entry carries its group name (protocol field "group",
omitted when ungrouped; older clients ignore it), stored and pushed by
the server like the order; names are trimmed, printable, at most 80
characters. Needs a server restart to keep groups.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-03 22:18:44 +00:00
alan 550f648746 Merge branch 'main' into worktree-agent-a349550966b0e2bad 2026-12-03 22:18:38 +00:00
alan f4bd8ad44c WIP read aloud keeps playing across chats 2026-12-03 22:18:38 +00:00
alan e86fd3572a Merge branch 'main' into worktree-agent-abd5e670d79e5cb5c 2026-12-03 22:18:36 +00:00
alan 618add34b0 Chat: Alt+] / Alt+[ move the keyboard between the chat panes on screen
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-03 22:18:36 +00:00
alan 9436067bf2 Merge branch 'worktree-agent-ab5b11bc6eab1d077' 2026-12-03 22:14:27 +00:00
alan 4268ce20eb Design switcher: Alt+L lists every design, previews live, Enter keeps it
The chat switcher's popup and keys over the AppDesign registry: filter,
Ctrl+N/P and arrows preview the selected design app-wide without storing
it (AppDesignController.preview), Enter keeps it, Esc or Alt+L again
returns to the design it opened with. The current design is checked.
Listed in Settings -> Keyboard shortcuts and the cheatsheet.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-03 22:10:19 +00:00
alan 3e066622d8 Send button: fixed size in every design and a clear 3px gap to its usage ring
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-03 22:04:02 +00:00
alan 6e7118fe34 Merge branch 'main' into worktree-agent-a1b6c249e2bec6658 2026-12-03 22:00:26 +00:00
alan c584ecfa60 Merge main into the Compact design branch 2026-12-03 22:00:25 +00:00
alan 130c1e6708 Chat stack: the default, also on a wide phone or tablet; a close button where the pile was
Chat stack is now the default phone chat navigation (a stored choice is
kept), and on Android or iOS it stays on a wide layout (an unfolded
foldable) above the active pane, where floating is ignored too. When
expanded, the pile turns into a close button at its own spot and the
column rises above it; while a chat is dragged that button is the remove
target, replacing the separate x at the bottom. Chat widget tests start
on Quick switch (they run as Android); the stack's tests choose it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-03 21:47:57 +00:00
alan 109ea72252 Chat: hide the chat list entirely (Ctrl+B / Cmd+B), per device
ListDetailPanes takes listHidden and slides the list to zero width (at once
with reduced motion), keeping its expanded or compact mode for when it comes
back. A wide chat offers Hide chat list in the list's bar and the pane menu,
Ctrl+B (Cmd+B on Apple; a focused terminal keeps Ctrl+B) and, while hidden,
a Show chat list button at the start of the top-left pane's bar. The choice
is device-local (pipelines.chat.listHidden.v1).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-03 21:33:05 +00:00
alan 8ed3998dd5 Design: Terminal is the default when none is stored; Default is now Classic
An unset (or unknown) design id resolves to Terminal, in the controller's
initial value, AppDesign.fromId and the boot spinner. A stored choice,
including Classic's stable 'default' id, is respected. The picker calls the
original Material look Classic so no row reads 'Default'.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-03 21:33:05 +00:00
alan 8c224fecf8 Anchored menus: bound by system insets instead of shifting by them
The anchored choice menu route wrapped its layout in a SafeArea while the
anchor rect is in overlay coordinates, so on Android (edge to edge, a
status bar inset) every top bar menu opened an inset below its control.
The insets and a half-opened hinge now only bound the panel.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-03 21:19:55 +00:00
alan fba3b924f1 Chat stack: hold and drag to reorder the open chats, or onto x to remove
A 300 ms hold lifts a chat in the open column; dragging opens a gap and
dropping commits through ChatWorkspaceController.movePane, the pane order
the server syncs. An x comes in at the bottom while dragging; dropping on
it removes the chat with Undo, which restores its place. Escape, a
cancelled pointer or a drop away from the column put it back. Move up,
Move down and Remove are semantic actions. Repaint-only motion; reduced
motion swaps at once. Also keep floating-layout tracking out of
initState, and let the capture kit hold a press before a drag.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-03 21:17:51 +00:00
alan f8e4d78466 Chat: a phone layout tiles floating chats; a wide one floats them again
At phone width (Quick switch or Chat stack) floating windows are hidden,
so a floating chat could not be opened from the list, the stack or the
peek. The phone now holds each floating chat as an ordinary pane while
the server set keeps it floating; widening floats it again.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-03 20:47:17 +00:00
alan ae5d0190fa Merge branch 'worktree-agent-a89fcd71b624713a3' 2026-12-03 20:23:25 +00:00
alan fd62df3815 Chat stack: a floating pile of the open chats as phone chat navigation (WIP) 2026-12-03 20:07:00 +00:00
alan 4534283f1d WIP compact 2026-12-03 20:01:13 +00:00
alan 5fc650211e Merge main (Paper design) into the design perf budget
Paper's theme joins the cached builder; AppDesignTokens and ReadingType
compare every new token by value, and Paper's tab indicator and switch
outline resolver are kept per colour so a rebuilt Paper theme equals
the last.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-03 19:45:24 +00:00
alan bc00d321d9 Designs: cache themes, value-equal tokens, and a per-design perf budget
A rebuilt Terminal theme never equalled the last one (AppDesignTokens,
AnsiAccents and the tab indicator compared by identity), so any host
rebuild (a detached window's title, a font notification) rebuilt every
Theme.of dependent and ran MaterialApp's 200 ms theme animation. Themes
are now cached per (design, brightness, font) and compare by value;
chat colour seeded schemes are cached too.

test/perf/design_bench_test.dart and tool/perf/design_bench.mjs check
every registered AppDesign against Default (tool/perf/README.md).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-03 19:43:10 +00:00
alan 7d2c3412a1 Paper design: warm paper, serif reading text and a typeset transcript
Adds the Paper design and generalises design tokens (transcript, composer,
selected-row styles, reading type, panel fill, chat colour saturation).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-03 18:00:07 +00:00
alan bdd7bb6896 Merge branch 'worktree-agent-acbb1fb1d035904b7' 2026-12-03 17:29:07 +00:00
alan 03983cfd1f Detached chat: read the chat again once its machine connects, and follow the main window's look
A detached chat window read the chat list once, before any saved machine had
connected, and never again; its pane also did not rebuild when the runtime
adopted a row. Without the row the header showed a bare "Chat" with no folder
or model, the window was named by the session id, and the chat's colour (bar
tint, focus ring, prompt bar) was missing. The window now re-reads the list on
each connection change and rebuilds on the runtime, as the Chat destination
does. It also re-reads the stored design and font on the browser's storage
event and on coming to the front, so a Settings change in the main window
follows.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-03 17:28:47 +00:00
alan 0791a4702d Artifacts: badge counts deliverables only; debugging files as a secondary section
The Artifacts badge counted every recorded turn document (input, memory,
output, session.html) while the tab lists only deliverables, so a run whose
visits recorded only debugging files (the Caplens ticket runs) badged dozens
of artifacts and opened to an empty tab. The badge and the header now count
deliverables only; the tab stays reachable when only debugging files exist
and ends with a collapsed 'Show debugging files' entry naming their count.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-03 17:23:33 +00:00
alan ca2f7eee32 App: add a selectable app design with a Terminal look
AppDesign builds each design's light and dark ThemeData with an
AppDesignTokens extension (corner radius, flat surfaces, frame colour,
ANSI accents, prompt glyph). Settings gains a Design picker stored per
device; the theme hosts rebuild live. Terminal is monospace (bundled
RobotoMono), near-black or paper, flat 1px frames with 3px corners, and
draws the chat transcript as prompt lines, tool dot/result lines and
bracketed follow-up lines. Default keeps its exact themes.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-03 16:43:59 +00:00
alan 9a6363b80e Chat: draw agent follow-ups and automatic continues apart from the operator
The server now names a user turn's origin (followup, auto_continue,
auto_switch, scheduled) on chat messages, user frames and queued prompts,
from the prompt's operation id while it holds the prompt and from its own
text prefixes in history read later. Origin is a new field, so older
clients keep treating these as ordinary user turns.

The app draws an agent follow-up, auto-continue and account-switch prompt
as a quiet outlined card on the agent's side with an icon, label and the
schedule facts from the preamble; the operator's own scheduled message
keeps its bubble with a small Scheduled mark. Find searches the drawn text.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-03 15:40:34 +00:00
alan 608b6b8edb App: open a chat with one round trip
The thread controller asks chat_subscribe to carry the newest history page
(history: true, limit 200) and applies it from the reply; a server that
leaves the page out is asked with chat_messages as before. Deltas arriving
before the reply are recorded from the start of the subscribe, and settle
against the page's live_seq exactly as for a separate read.

Also documents the subscribe history field and benchmarks the indexed page
at limits 20 and 100.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-03 15:09:02 +00:00
alan 17baa9e24c Merge branch 'worktree-agent-ab99684776b58ed55' 2026-12-03 14:44:18 +00:00
alan cf4579ab15 App: keep a left chat's cached transcript following its live frames
A left conversation stays subscribed on the server for the rest of the
connection, but the cached transcript was frozen when it was left. A reply
that arrived in the background only appeared after the reopened view's
subscribe and newest-page read (~1-2s over the network on large chats).
The cache now folds the session's chat events into the kept transcript,
so the reply is drawn the moment the chat opens; the page still replaces it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-03 14:43:52 +00:00
alan 32df4c8569 Merge branch 'worktree-agent-a5f621112ab3cad4f'
# Conflicts:
#	app/lib/features/chat/domain/chat_shown_run.dart
2026-12-03 14:43:11 +00:00
alan 414fa23908 Merge branch 'worktree-agent-a3cb3553b5c91a345' 2026-12-03 14:38:18 +00:00
alan 672d1f95cc Merge main (findings ledger, loop continuation) into usage-limit branch
Keeps the findings ledger, extra visits and on_exhausted=decide alongside the
run budget, failure classes, quota parking and error-loop backoff.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-03 14:35:54 +00:00
alan b3c9575fde Runs park on usage limits; failure classes, harness error policy, run budgets
- A stage refused for a Claude usage limit no longer fails its run: the
  runner tries the chats' Claude account auto-switch (per-home setting) and
  reruns the visit, else parks the run in the new waiting_quota status
  (persisted, with reset/resume time in run summaries, details and events)
  and resumes the same visit at reset + 1 min, also after a restart.
  resume_run / `pipelines resume` resumes now; cancel works on parked runs.
  The rerun visit gets a "# Previous attempt" interruption note. Subscription
  limits no longer say "top up the provider account".
- run/retry into an account known to be limited are deferred (quota_policy
  defer/refuse/now; CLI refuses under --json/--yes unless --defer or --now).
- failure_class on runs (quota, loop_exhausted, timeout, permission_denied,
  harness_error, blocked, environment, canceled, interrupted, budget,
  check_failed, other) in RunSummary/RunDetail/events, CLI inspect/runs/wait/
  stats and the app failure line.
- Claude permission denials (permission_denials / refused tool results) fail
  a blocked visit with permission_denied naming the tool use.
- Harness failures are classified transient vs deterministic; deterministic
  ones (and a repeated empty readback) skip error self-loops; transient
  self-loops back off 15 s, 1 min, 4 min.
- Whole-run USD budget: run --budget, server default (run-budget /
  get/set_run_settings); 80% warning notification, stop with class budget.
- App: waiting_quota status/filter with resume time, Resume now and Cancel,
  failure class wording. Docs and skill references updated.

Merges main (check stage, delivery gate, Claude stage restart survival,
schedule changes).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-03 14:34:53 +00:00
alan ea858804b8 Merge main into the engine loop improvements
Keep both intents: check stages, allow_workspace_changes, outcome repair
counts and Claude stage re-adoption from main beside the findings gate,
resume_session, applyLimitOn and exhaustion decisions.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-03 14:24:27 +00:00
alan ff96fcea23 Merge branch 'main' into worktree-agent-a3cb3553b5c91a345 2026-12-03 14:21:22 +00:00