Commit Graph

1563 Commits

Author SHA1 Message Date
alan 9d37db5939 Measure the running composer border once per size
The highlight's outline was rebuilt and measured (computeMetrics) on
every animation frame of a running turn, the largest app cost while a
reply streams (about 600 ms of CPU over 15 s at 4K). The painter now
keeps the measured outline for its size and only extracts the moving
pieces per frame.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 18:19:22 +00:00
alan 58c72538d5 Add a 4K chat performance bench and record its baseline
tool/perf/chat_4k_bench.mjs opens the full-app fixture at 3840x2160 with
12 rich chats and measures opening, scrolling, streaming, switching and
typing (frame timings plus a source-mapped CPU profile). The capture
kit's --gpu mode now uses ANGLE on Vulkan on Linux. notes/perf-4k-chat.md
records the baseline and the hotspots it found.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 16:45:22 +00:00
alan 95e9f66a58 Merge branch 'worktree-agent-a527a8fc9a8f7527b' 2026-11-21 20:43:37 +00:00
alan f8ea50fd70 Paste files and images into the chat composer on macOS
Native hosts reported clipboard-file paste as unsupported, and Flutter's
Clipboard carries text only, so Cmd+V of a Finder file or a screenshot in the
macOS app pasted nothing (or the file name). The macOS Runner now answers a
pipelines/clipboard_files channel with the pasteboard's file URLs, else its
image as PNG; the composer's Cmd+V reads it and attaches the files, falling
back to the pasteboard text when there are none.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-21 20:42:05 +00:00
alan 99f7edc0ec Keep numbered lists counting across nested items and blank lines
A list ended at the first line that was not an item, so a numbered list
with nested bullets, wrapped lines or blank lines between items became
one-item lists that each showed 1. Lists now nest (an item holds the
blocks indented under it), continue across blank lines, join wrapped
lines, and number from their first item.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-21 20:39:39 +00:00
alan dd742ec8e4 Open a diff as a floating window
Diffs join the app's window system: Open in a window on a diff page or a
chat diff card shows the same files, on the same file, in a draggable,
resizable window with the full diff viewer (keys, search, all-files
view). Offered only where floating windows show; a diff window's files
live in memory, so it is not restored after a reload.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-21 20:06:45 +00:00
alan 71719b5707 Say why an app update check found nothing
The check dropped every per-server failure and showed one generic
message. It now lists each machine with its reason (sign in first, a
feed key this app does not trust, a timeout), and an APK signed with
another certificate than the installed app is named plainly with how
to install it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-21 19:50:50 +00:00
alan ce5e744419 Merge branch 'worktree-agent-a16cd7d38c66c90bd' 2026-11-21 18:13:17 +00:00
alan d407a72a06 Diff viewer: vim keys, scrolling, find in diff and an all-files view
Left/right and h/l step between files (or headers in the all-files
view), up/down and j/k scroll, / opens find-in-diff (highlighted
matches across every file, n/N or Enter/Shift+Enter to move, Escape to
close), and a top-bar toggle switches between one file at a time and
every file stacked with collapsible headers, like a pull request's
Files changed tab.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-21 18:13:08 +00:00
alan 01040a7b12 Stop the replaced session on /new for every harness
/new already released the old native session through the chat-close
release path, but two gaps let the replaced session stay alive, and the
client told the operator it could still be resumed in a terminal:

- Claude Code: ReleaseSession only closed a host this server was
  attached to. A host registered for the session but not attached (a
  failed reattach, or one left by an earlier server) kept running. It is
  now asked to close over its socket and killed as a fallback.
- Codex: ReleaseSession only interrupted an active turn. It now also
  sends thread/unsubscribe so the App Server unloads the thread; a later
  prompt reloads it through the existing "thread not found" resume path.
- The /new notice now says the previous session was stopped.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-21 18:10:41 +00:00
alan cfebd3a05b update 2026-11-21 17:28:45 +00:00
alan 616d95c1d8 Merge branch 'main' of https://git.a-wan.net/alan/pipelines
# Conflicts:
#	app/lib/features/chat/ui/transcript/chat_markdown_view.dart
2026-11-21 17:11:45 +00:00
alan 059eb1bb0d Add show_diff chat tool and diff card
The Pipelines MCP server gains show_diff: it runs Git in a repository
inside the operator's home (default: the chat's directory) and records
the per-file patches. Without base it shows uncommitted work against
HEAD; with base it shows everything since the merge base (a pull
request preview), optionally committed changes only. Bounded at 300
files, 256 KiB per patch and 1 MiB total, with partial diffs labelled;
diff bodies share the per-chat retention budget with HTML views.

The chat draws the item as a card listing each changed file with its
stat; a row opens the existing file diff viewer.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-21 17:08:02 +00:00
alan 79e5183469 Open machine-scoped chats from Search
With several machines connected a chat id is chat@<base64url>; routes
rejected the @, so a search hit fell back to /chat and closed the chat.
Accept a valid machine-scoped id in chat routes.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-21 08:40:42 +00:00
alan 93e9042a8b Wrap chat markdown tables to the transcript width
Tables no longer scroll sideways: columns size to content and shrink to
fit, wrapping cell text; an unbreakable token breaks inside its cell.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-19 10:15:12 +00:00
alan f07eb1d512 Leave an unknown harness out of Send to chat rows 2026-11-13 18:50:27 +00:00
alan 5425001d82 Send artifacts, runs and pipelines to a new or existing chat
One picker offers a new chat (the saved Open in chat harness and model)
or any open chat. An existing chat gets the reference appended to its
draft and focused, never sent. Artifacts gain the action in their viewer
and gallery; the run and pipeline item becomes Send to chat.
2026-11-13 18:43:14 +00:00
alan fcc95a0c3a Merge branch 'main' into pipelines/run-20261113-1626-move-and-resize-floating-chats-on-every-0075 2026-11-13 18:08:03 +00:00
alan b190db8b3a Keep center stage the widest pane on wide monitors
The stage had a fixed preferred width, so on a big monitor the panes
beside it shared the leftover and grew wider than the chat on stage. The
stage is now at least 1.5 times as wide as each other column.
2026-11-13 18:05:16 +00:00
alan 3e49b5d590 Merge commit '83e6553da4f2f4f7aa67d5ed2bce680501e3bd7b' into pipelines/run-20261113-1626-move-and-resize-floating-chats-on-every-0075 2026-11-13 18:01:24 +00:00
alan e43c2dce3f Floating chat windows drag and resize on all tabs
Pipelines run 459.
2026-11-13 18:01:24 +00:00
alan 83e6553da4 Expect /stop_tasks among the /s command suggestions 2026-11-13 18:00:57 +00:00
alan cfd9f22f4b Enable floating chat window resizing everywhere
Install directional hit regions in the shared window layer so floating chats can be moved and resized on every destination. Keep geometry updates in the shared manager and cover directional resizing with window host regressions.
2026-11-13 18:00:53 +00:00
alan aabd6245bf Merge commit '5639e5cb057836100683e8f0c06c1bb70cd71bf0' into pipelines/run-20261113-1605-esc-keeps-background-tasks-stop-tasks-faa1 2026-11-13 16:47:49 +00:00
alan 2a182d7f17 Stop background tasks separately from chat turns
Keep Esc and /stop scoped to the foreground turn while exposing an explicit stop-tasks operation for supported chat backends. Add the protocol, server routing, app command, and coverage for task stopping and unsupported harnesses.
2026-11-13 16:47:41 +00:00
alan 5639e5cb05 Merge main into search-opens-the-selected-chat 2026-11-13 16:26:22 +00:00
alan bdcda84093 Merge branch 'main' into pipelines/run-20261113-1520-search-opens-the-selected-chat-5f6a 2026-11-13 16:06:24 +00:00
alan 560202f5b7 Merge commit 'c3c2c1bbc9adcb06c09ac53dd572948890a868e3' into pipelines/run-20261113-1519-natural-read-aloud-voices-1d6b 2026-11-13 16:06:12 +00:00
alan c3c2c1bbc9 Open Chat with Cmd+K as well as Ctrl+K
Cmd is the natural modifier on a Mac. Like Option+K, it also opens Chat
from the terminal, where Ctrl+K stays kill-line.
2026-11-13 16:02:31 +00:00
alan fb04936bce Merge branch 'main' into pipelines/run-20261113-1519-natural-read-aloud-voices-1d6b 2026-11-13 15:59:38 +00:00
alan 3164b7c8df Prefer natural voices for read aloud
Rank platform voice quality and select the most natural automatic voice while keeping explicit voice choices intact. Surface natural labels, hide novelty voices in the picker, and guide Apple users to download enhanced voices when needed.
2026-11-13 15:59:35 +00:00
alan 41b4314c64 Merge branch 'main' into pipelines/run-20261113-1520-search-opens-the-selected-chat-5f6a 2026-11-13 15:58:19 +00:00
alan ec3c1e4c6a Open selected chats from search
Re-apply explicit chat routes after workspace restoration and repeated route notifications so search results and chat notifications open the requested session. Add regression coverage for route, registration, and workspace restore behavior.
2026-11-13 15:58:16 +00:00
alan ccc80a9a8d Add keyboard navigation to search results
Keep the search field focused while selecting results with Control or arrow keys, and open the selected result with Enter. Document the field-scoped shortcuts and cover navigation, reset, submission, and typing behavior with regression tests.
2026-11-13 15:51:00 +00:00
alan eeb07e5645 Title each grouped Android notification with its chat or run
Thread notifications lost their title and collapsed text when the
conversation style became a big-text preview, so inside a bundle each one
showed only the preview with no hint of which chat or run it came from.
2026-11-13 15:06:09 +00:00
alan 9ad9874e7c Run the macOS app unsandboxed so it can update itself
Installing an update in place and relaunching needs to replace
/Applications/Pipelines.app, which the sandbox forbids. Settings move
once from the old sandbox container into the regular defaults.
2026-11-13 14:36:20 +00:00
alan aa3c8555af Merge main into macos-self-update 2026-11-13 14:34:21 +00:00
alan 3b0f9a054c Update narrow chat chrome expectation
Keep the floating chat header regression test aligned with the split action pills introduced by the lone More island layout.
2026-11-13 13:44:30 +00:00
alan d2714d6c75 Merge branch 'main' into pipelines/run-20261113-1324-centre-a-lone-more-button-in-narrow-chat-d027 2026-11-13 13:34:40 +00:00
alan b2e67dbfa2 Center lone segmented More action
Wrap the generated More control in the same pill used by separate action islands so a narrow chat header keeps symmetric insets and consistent height. Add regression coverage and document the focused checks.
2026-11-13 13:34:36 +00:00
alan 6cd7774811 Open in chat opens beside the active chat and uses a chosen harness
A chat opened from a run or pipeline now goes in a new pane beside the
active chat instead of replacing it, becomes active and takes the
keyboard once built. Settings > Open in chat chooses its harness and
model (models listed from that harness's most recent chat).
2026-11-13 13:34:26 +00:00
alan f7f2504a30 Drag chats at once with a mouse and mark only the receiving zone
The list rows used a long-press drag, which a mouse rarely triggers; they
now drag immediately with the chip at the pointer. The drop indicator
outlines just the area that will receive the chat (the pane, or the
right or bottom half) with a label saying what happens.
2026-11-13 13:00:57 +00:00
alan ad05909b75 Merge main into chat drag 2026-11-13 12:46:09 +00:00
alan cb49aeef34 Drag chats from the list onto panes
On desktop a chat dragged from the list or compact rail onto a tiled
pane replaces that pane's chat when dropped in its centre, or opens in a
split right of or below it when dropped on that edge; an open chat moves
without duplicating and a floating chat docks.
2026-11-13 12:45:42 +00:00
alan b561e250e6 Icons for every run menu action; omit an unknown pipeline version 2026-11-13 12:44:47 +00:00
alan 3838b02ad8 Merge main into open in chat 2026-11-13 12:38:27 +00:00
alan e5403ae257 Open a run or pipeline in a new chat
The run and pipeline More menus offer Open in chat: a new chat in the
run's (or the pipeline's latest run's) workspace opens on the Chat tab
with a draft naming the run or pipeline and how to inspect or change it.
2026-11-13 12:38:27 +00:00
alan 3de6a9cbc1 Merge branch 'main' into pipelines/run-20261113-1158-ctrl-tab-cycles-all-chats-with-a-single-a9b6 2026-11-13 12:23:56 +00:00
alan b4d67d6ba8 Cycle Ctrl-Tab through available chats
When a tiled workspace has one chat pane, navigate the sidebar chat order while preserving pane state and composer focus. Keep pane and floating-window cycling behavior for their existing layouts, and update shortcut documentation and coverage.
2026-11-13 12:23:52 +00:00
alan 0a51add958 Add New chat to compact sidebar
Expose the existing chat creation flow from the compact rail so users can start chats without expanding the session list. Add focused callback coverage and document the verified behavior.
2026-11-13 12:14:16 +00:00