Commit Graph

1187 Commits

Author SHA1 Message Date
alan e79a120ac7 Terminal surface: lazy activation, settings mode choice, open in terminal, tests 2026-11-09 21:55:38 +00:00
alan acd160b49e Add the app's terminal surface: bottom panel, floating window and full-screen page 2026-11-09 21:42:52 +00:00
alan 8f06f12d49 Merge branch 'worktree-agent-a26df8b0059ab1b12' 2026-11-09 20:54:12 +00:00
alan 2332143e5b Fit chat terminals to their output, keep pastes and keys in the terminal
Finished terminals are sized synchronously from their rows at the view's
width (the post-frame fit made the transcript re-anchor forever); blank rows
xterm.dart keeps when rewrapping are dropped; desktop typing uses key events;
the composer leaves Cmd/Ctrl-V to a focused terminal; Ctrl-A reaches the
process. The probe fixture gains coloured terminal runs and an interactive
login. Notes record behaviour, protocol, security and verification.
2026-11-09 20:51:59 +00:00
alan 55ef6558e0 Hug the turn activity row's hover on desktop
On macOS, Linux, Windows and desktop browsers the "Thought · tool calls ·
background tasks" row is as wide as its label, so its hover and click area
no longer span the transcript. Phones keep the full-width touch row. The
check uses the device platform because web themes are pinned to Android.
The scroll fixture gains ?turnactivity=1 for captures.
2026-11-09 20:46:22 +00:00
alan 9246c168ac Add opt-in live thinking-level checks and notes 2026-11-09 20:22:33 +00:00
alan 66e6a7cb73 Give the capture fixture chat thinking levels 2026-11-09 20:19:20 +00:00
alan b57405df29 Show a thinking-level control beside the chat model and mode
Material menu or Cupertino action sheet of the levels the chat's model
accepts, sent with chat_effort through the chat's own gateway. Hidden when
the model has none; says when a running turn keeps its level; re-reads the
levels after a model switch.
2026-11-09 20:16:13 +00:00
alan 89882d90f3 Draw chat shell runs in an xterm terminal that takes typed input
The card's output area is now an xterm.dart emulator kept per run by the
controller: it is fed the raw stream in order, takes typing and paste while
the command runs (with a key toolbar and a soft-keyboard field on touch
platforms), resizes the process to its layout, opens printed links, shrinks
finished runs to their output and opens full screen. A reconnect resumes from
the byte the card holds; Copy output copies the server's plain text.
2026-11-09 20:08:33 +00:00
alan 277c691b2c Install Linux updates in place and restart
The Linux app now downloads the release archive to a temporary folder,
verifies its checksum, extracts it beside the install folder, swaps the
bundle in with two renames (keeping <install>.previous for rollback) and
relaunches. A read-only install location is reported with how to fix it.
The prompt and Settings button say "Install and restart".
2026-11-09 19:40:52 +00:00
alan 15939fcf09 Colour the turn change chip's counts
"3 files changed +9 −2" now shows additions in green and removals in red,
using the run Changes colours, in light and dark themes.
2026-11-09 19:01:09 +00:00
alan 73e55b0b0c Double-click a chat divider to switch the split layout
Double-clicking the divider between two chat panes flips that split between
side by side and stacked, keeping its proportion, instead of resetting it to
50/50. Screen readers get the same action.
2026-11-09 18:36:16 +00:00
alan 96b71d122e Merge branch 'worktree-agent-aae8756320b8309f6'
# Conflicts:
#	app/lib/features/chat/conversation/chat_thread_view.dart
#	app/tool/perf/perf_fixture.dart
#	internal/protocol/message.go
#	internal/server/chat_hub.go
2026-11-09 16:56:55 +00:00
alan ba3da80adc Record the Flutter verdicts for the chat tools 2026-11-09 16:55:36 +00:00
alan f3ddd3e1ec Attribute OpenCode code-mode tool calls, keep same-instant shown items in order, and record the chat tools notes 2026-11-09 16:55:28 +00:00
alan 7841aa7dea Merge branch 'worktree-agent-a672970b929d7358c'
# Conflicts:
#	internal/pipeline/store.go
#	internal/server/chat_hub.go
2026-11-09 16:21:55 +00:00
alan 5c3248a48d Record chat shell commands with fixture captures and a note
Show Expand only when output can overflow and drop the final newline from
the drawn output. The full-app probe lists shell runs with ?shell=1 so the
cards, Shell mode and Run command dialog can be captured in Chrome.
2026-11-09 16:21:15 +00:00
alan 3ab029cd7b Render Pipelines-shown files, images, HTML views and phone notifications in the chat transcript 2026-11-09 16:17:34 +00:00
alan 1ae6c95b55 Fix null-aware warnings in the discovery probe test 2026-11-09 16:09:25 +00:00
alan a6f0f0a1cb Run shell commands from the chat composer and show them as cards
A draft starting with ! shows a Shell mode indicator and runs through
chat_shell_run instead of being sent to the agent; the chat's actions menu
gains Run command. Each run is a terminal-style card among the turns with
live output, Stop, its exit status, Copy output and Send to agent.
2026-11-09 16:08:48 +00:00
alan 3374bea2ef Show a chat turn's changed files as a chip that opens its diff
The answer footer shows '3 files changed +9 -2'; tapping opens the turn's
files in the sheet (wide) or a full-screen page (narrow), and a file opens
the run Changes diff viewer. Patches load through the chat's own gateway.
2026-11-09 16:08:35 +00:00
alan 57679d9591 Let the macOS app save updates to Downloads
The sandboxed app downloads its update zip to ~/Downloads, which needs the
downloads read-write entitlement; without it the download failed with
"Operation not permitted".
2026-11-09 14:03:34 +00:00
alan bb2adcc182 Add an interface size setting (0.5x to 2x)
Settings > Appearance > Interface size scales every dimension, text, icon
and dialog on this device. The app lays out in a smaller or larger viewport
and paints it scaled to the window, so hit testing and layout stay
consistent; the value is saved per device and applies when the slider is
released.
2026-11-09 12:56:42 +00:00
alan 701fb98ef0 Fix native APK homes; add a native discovery probe
The native APK build no longer sets ANDROID_SDK_HOME beside
ANDROID_USER_HOME (AGP rejects the conflict). integration_test/
discovery_probe_test.dart runs the real Bonsoir discovery on a desktop
host and prints what the platform delivers.
2026-11-09 12:42:05 +00:00
alan 0613cca6f4 Use the Pipelines icon for the macOS app
The macOS icon set still carried the Flutter template icon; it is now the
same rounded Pipelines mark as the web app, rendered from tool/app_icon.
2026-11-09 12:34:32 +00:00
alan 5593e2451e Drop the per-machine connection bar from the chat
Saved machines' state and sign-in live in Settings; the chat no longer shows
"<machine> · Connected" above both panes, which also pushed the thread pane
below a bar that belongs to neither pane.
2026-11-09 12:29:45 +00:00
alan f31794d1cc Record manager verification of file explorer rename, move and delete 2026-11-09 01:52:18 +00:00
alan 208d1d096b Record Files panel rename, move and delete behaviour and checks 2026-11-09 01:46:36 +00:00
alan 4733d4b615 Rename, move and delete entries from the chat Files panel
Every row and tile menu gains Rename…, Move… and Delete… (folders now
have a menu too). Rename prefills the name with the file's stem selected
and applies the server's name rules inline. Move reuses the chat folder
picker through a FolderPickerPurpose: titled for the entry, confirmed
with Move here, never offering the entry's current folder and keeping a
moved folder's own subtree out of reach. Delete confirms, and when the
server reports a folder with contents asks once more before deleting
recursively. Holding an entry and dropping it on a folder row or tile
moves it there; the target highlights and refuses itself and ancestors.

FilesController performs each request through files_mutations.dart,
shows Renaming…/Moving…/Deleting… progress, reloads the shown folder
afterwards and keeps a refusal in the server's words in the panel's
notice until dismissed.
2026-11-09 01:46:28 +00:00
alan a02b271509 Record live post-deployment discovery and upload checks 2026-11-09 00:25:18 +00:00
alan 49f36a9456 Merge branch 'worktree-agent-ab6edc0d99947642f' 2026-11-09 00:11:40 +00:00
alan 6112e83f62 Record Files panel upload behaviour, limits and verification 2026-11-09 00:10:19 +00:00
alan b8fb4d350c Upload files into the shown folder from the chat Files panel
The header gains an Upload button that uses the host file picker (disabled
with its reason where no picker exists), and the panel body becomes a drop
target: on web, document drag events are observed through a dart:js_interop
seam and a file drag over the panel shows a highlight naming the folder.
Each file is posted to POST /files?path=<folder> through an injectable
transport; refusals (exists, sign in, too large) stay visible until dismissed
and the folder reloads afterwards. The list/grid builders move to
files_entries.dart to keep the panel small.
2026-11-09 00:09:01 +00:00
alan 079924d19a Recover from zero servers, sign each machine in on its own, offer every route
- Removing the primary machine hands pipelines/runs to the next saved machine
  on native hosts; removing the last machine returns to the connect screen
  instead of stranding the app on "Server endpoint not configured".
- Add server probes the new machine and asks for its own password in the same
  page; Settings rows show Connected / Sign in required / Unreachable with the
  reason and offer Sign in; no other machine's credential is ever reused.
- Unreachable addresses explain why: a TLS failure against an IP points at the
  Tailscale name, a non-Pipelines answer points at the port.
- Discovered machines list every advertised route (LAN, Tailscale IP, Tailscale
  name) as a checklist; chosen routes are saved as one machine.
- tool/connection_probe.dart replays the native login and websocket against
  real addresses for diagnosis.
2026-11-08 23:59:20 +00:00
alan 3d88220430 Authenticate native chat thumbnails without following redirects 2026-11-08 22:23:42 +00:00
alan 9beebcdac5 Record concurrent chat integration verification 2026-11-08 22:23:06 +00:00
alan e4904395f0 Connect saved machines concurrently in the chat workspace 2026-11-08 22:21:17 +00:00
alan 497cd66a1e Keep browser chat server connections together in saved-server settings 2026-11-08 22:01:09 +00:00
alan 89814d9fbe Record browser discovery capture review and checks 2026-11-08 21:54:20 +00:00
alan b69d7efb4a Find LAN servers from browser and review discovered machine names 2026-11-08 21:54:20 +00:00
alan 7cbf7455ff Merge commit 'c549eb8a' 2026-11-08 16:59:23 +00:00
alan c549eb8ac2 Filter Android update offers by installed signing certificate 2026-11-08 16:58:59 +00:00
alan 8ddf893de9 Publish APK certificate identity for multi-server compatibility 2026-11-08 16:58:47 +00:00
alan fdc411716f Isolate root connection tests from native update network probes 2026-11-08 16:51:54 +00:00
alan 761ff021fe Keep generated Linux plugin registries out of build identity 2026-11-08 16:50:15 +00:00
alan 28b7eaeee4 Merge commit '394fd672' 2026-11-08 16:49:58 +00:00
alan 394fd672e6 Check all saved servers for compatible native app updates 2026-11-08 16:49:45 +00:00
alan 50e01934c1 Record compact machine label capture 2026-11-08 16:49:01 +00:00
alan 84a79569f6 Record machine creation integration and browser checks 2026-11-08 16:48:48 +00:00
alan f3ed97f109 Merge branch 'main' into work/machine-provenance 2026-11-08 16:46:23 +00:00