Commit Graph

2187 Commits

Author SHA1 Message Date
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 0696ab849a Record each chat turn's workspace changes for every harness
Snapshot the chat directory with internal/filediff when a turn starts and
compare it when the turn ends; store changed turns (newest 100 per chat),
push chat_turn_diffs summaries, attach them to chat_messages replies and
serve one turn's patches through chat_turn_diff.
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 0e16e6c9fe Republish mDNS on address change; build the APK natively when the host can
The server compares its LAN and tailnet addresses every 30 seconds and
republishes the advert when they change, so a machine that moves networks
stops advertising the address it had at startup.

./install --apk builds on this machine with the host Flutter and Android SDK
when both exist (--docker forces the container build), signing with the same
shared debug keystore so phones keep accepting updates.
2026-11-09 12:38:51 +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 c61490aeb0 Add rename_path, move_path and delete_path for home files
The chat Files panel needs to rename, move and delete entries. Three
websocket requests, dispatched beside list_directory, operate on one
entry inside the operator's home and reply with path_mutated {path} or
an error frame (does not exist, already exists, is not empty, outside
the home directory, cannot be moved into itself).

The entry's parent folder and the move destination are resolved through
symlinks and must stay inside home; the entry's own symlink is never
followed, so a link is renamed, moved or removed as a link. The home
directory itself, anything outside it and pseudo filesystems are
refused. A folder is deleted only when empty unless recursive is set;
os.RemoveAll unlinks symlinks rather than descending into them.
2026-11-09 01:32:31 +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 c600f1560c Relay POST /files uploads through the web proxy and peer relay
The direct proxy already forwards every /files method behind the sign-in
gate; the peer relay now allows POST /files beside /chat-uploads. Tests cover
the name header, body and refusal of other POST targets.
2026-11-09 00:00:00 +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 929e4cc017 Advertise tailnet and public routes in server discovery
The mDNS record now carries ts= (tailnet IPv4 addresses) and public= (the
installer's HTTPS origin from PIPELINES_WEB_PUBLIC_URL) in TXT, and browse,
the discover_servers RPC and /discovery return every route to a machine as
addresses with kinds lan, tailscale and public. Endpoint stays the LAN route
for older clients. Unsafe ts/public values are dropped.
2026-11-08 23:59:19 +00:00
alan 81460c4a4d Add POST /files to store an uploaded file inside a home folder
The handler reuses the home-path resolution of GET /files, refuses special
filesystems and non-directories, writes with O_EXCL so an existing name is
answered 409 instead of overwritten, enforces the chat upload size limit and
replies with the stored name, path and size.
2026-11-08 23:57:53 +00:00
alan c2d8d6d7a3 Record live multi-server browser acceptance and integration checks 2026-11-08 22:31:50 +00:00
alan 871f7cdfa0 Sandbox remote file responses at the browser relay boundary 2026-11-08 22:27:43 +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 663d5fb5c9 Merge browser discovery and authenticated relay foundation 2026-11-08 22:06:20 +00:00
alan 497cd66a1e Keep browser chat server connections together in saved-server settings 2026-11-08 22:01:09 +00:00
alan 349428f11d Discover LAN servers and relay authenticated browser peer connections 2026-11-08 21:58:23 +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 ae8fe49e41 Find LAN servers from browser and review discovered machine names 2026-11-08 21:50:46 +00:00
alan 543e3f063a Add interactive password change command without service restart 2026-11-08 21:48:00 +00:00
alan 8016108558 Reload web password safely without restarting active sessions 2026-11-08 21:48:00 +00:00
alan 828227f549 Add complete uninstall reset for fresh native installations 2026-11-08 19:16:46 +00:00
alan e17bc2ca4f Exercise reset failure paths and scoped Docker resource cleanup 2026-11-08 19:13:39 +00:00
alan bcd534c456 Cover full Pipelines reset and deletion boundaries 2026-11-08 19:10:42 +00:00
alan b67ae34ca1 Stage ntfy output on installation filesystem before atomic replacement 2026-11-08 19:02:26 +00:00
alan 323faef686 Document Android update identity across multiple servers 2026-11-08 17:01:25 +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 bd9509b744 Preserve Node tool-manager shim names during native installation 2026-11-08 16:54:17 +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 521ec56c53 Merge commit '50e01934' 2026-11-08 16:49:24 +00:00
alan 50e01934c1 Record compact machine label capture 2026-11-08 16:49:01 +00:00
alan eea4b1ddc9 Document second-machine installation and verification scope 2026-11-08 16:48:57 +00:00
alan 84a79569f6 Record machine creation integration and browser checks 2026-11-08 16:48:48 +00:00