Commit Graph

1223 Commits

Author SHA1 Message Date
alan bb669aface Float one chat pane over the app and toggle it with Ctrl+Y / Cmd+Y 2026-11-10 12:56:39 +00:00
alan 19aa726e7f Wash the operator's bubbles softly in the chat colour
A coloured chat's own messages blend 22% of its shade over the host's
neutral bubble fill; text keeps the host colours and uncoloured chats
are unchanged.
2026-11-10 11:27:29 +00:00
alan 4ae2de444e Show the terminal bar button on the Chat tab only
Pipelines and Runs no longer carry it; the keyboard shortcut still
toggles the terminal everywhere.
2026-11-10 09:32:35 +00:00
alan 2720a063d1 Merge branch 'worktree-agent-afeabde4082bcde9e' 2026-11-10 03:11:27 +00:00
alan eea1361980 Grow the tapped chat row into the chat page on phones
Replace the identity-avatar Hero with a container transform: the row's
surface, tint and edge marker morph into the full page while the content
cross-fades, and Back, the Cupertino edge swipe or Android predictive back
shrink the page into the open chat's row. Reduced motion or a row off
screen fades instead; wide layouts are unchanged.
2026-11-10 03:11:05 +00:00
alan 1ad85de1f1 Keep step-up elevation for the signed-in session and stop gating terminals
The proxy forwards an HMAC-derived session id (X-Pipelines-Session) on
/connect and POST /files; the server trusts it only on token-authenticated
requests and keys elevation by it, so reconnects stay elevated up to a 24 h
cap. Terminals rely on their su -l login. The app no longer forgets the
elevation on disconnect and asks again only on a fresh refusal.
2026-11-10 03:00:45 +00:00
alan 60b4c495f1 Colour the send button with the chat colour
A coloured chat's send button uses the chat's seeded primary and its
on-colour, like the focus ring; stop stays the host's error red and
uncoloured chats keep the host button.
2026-11-10 02:33:14 +00:00
alan 87519985bf Always show the terminal shortcut on the phone Chat page
The shortcut no longer waits for a running shell: on the Chat page it opens
the terminal, starting one at its login prompt when none is open, and shows
a count when more than one shell runs.
2026-11-10 02:25:36 +00:00
alan d52eb4ba82 Show the phone terminal shortcut on the Chat tab only 2026-11-10 02:20:54 +00:00
alan 50535dc5ea Merge branch 'worktree-agent-a7f96a1eb9a56587d'
# Conflicts:
#	cmd/pipelines-server/main.go
#	internal/server/websocket.go
#	scripts/manage.py
#	scripts/setup-native.py
#	web/serve.mjs
#	web/src/peerRelay.js
2026-11-10 01:25:04 +00:00
alan 9702d68d2d Ask for the password once and retry when a machine requires elevation
Carry the protocol error code, wrap each machine's gateway so an
elevation_required refusal shows one native password dialog, elevates that
connection and retries; send the upload token with file uploads; add a Settings
sign-in security section with the weak-password warning and sign out
everywhere; accept the __Host- session cookie.
2026-11-10 01:21:28 +00:00
alan a0f2cfec16 Merge branch 'worktree-agent-ac54c8919e940163a'
# Conflicts:
#	scripts/setup-native.py
2026-11-10 01:07:12 +00:00
alan d35ae9b65a Merge branch 'worktree-agent-a5eba3669bc0e09ad' into worktree-agent-ac54c8919e940163a 2026-11-10 01:02:08 +00:00
alan ad6cdab418 Listen on loopback and tailnet by default; make the plain-HTTP LAN opt-in
The web proxy binds the wildcard and drops connections that are not
loopback or Tailscale at both ends. A LAN listener is opt-in (web.lan) and
refuses sign-in and signed-in pages over plain HTTP unless
web.lan_plain_login is set. Existing installs keep their bind address with
a warning. Without the LAN the mDNS advert carries only the tailnet and
public routes (lan=0).
2026-11-10 01:02:02 +00:00
alan 9f38e38f6a Sign the app update feed with Ed25519 and verify it in the app
Each installation generates a private Ed25519 key once (0600, under
~/.config/pipelines), signs version.json with a detached version.json.sig
when publishing APK and desktop builds, and embeds its own and listed
trusted public keys in app builds. The app verifies the feed signature
before trusting the artifact sha256, refuses unsigned or foreign feeds when
it has keys, and requires the sha256 and Android signer in signed feeds.
2026-11-10 00:51:16 +00:00
alan 4858b9e8bf Merge branch 'worktree-agent-a2b0140029ece13b5' 2026-11-10 00:46:16 +00:00
alan ec5c690bea Split the terminal lifetime tests from the login tests 2026-11-10 00:45:39 +00:00
alan a792b30513 Open one login terminal on first show; toggling only hides it
The first show of an app run starts one terminal (the machine's login
prompt) unless one is running; later toggles never open another. Drop
the tmux field and restart note, and update the Settings copy and the
terminal notes.
2026-11-10 00:42:59 +00:00
alan a706739088 Merge branch 'worktree-agent-a1275d0f5d434eccb' 2026-11-10 00:30:05 +00:00
alan e09673f6e0 Record chat colour bar spec, contrast and captures 2026-11-10 00:26:03 +00:00
alan 070f9e205e Show a terminal shortcut below the top bar on phones
While shells are running and the full-screen terminal is closed, a small
floating button under the right end of the top bar reopens it, with a count
when more than one shell runs. The surface's stack is always present so the
app never remounts when the shortcut comes or goes.
2026-11-10 00:23:53 +00:00
alan b44938d028 Open the on-screen keyboard for terminals on phones
On Android and iOS a tap on a terminal (a chat command card or the terminal
panel) now opens the soft keyboard and typing goes to the process, with no
autocorrect. Desktop keeps raw key events. Desktop keyboard tests now run
as macOS, since tests default to Android.
2026-11-10 00:19:46 +00:00
alan b382ae7e03 Carry the chat colour in the thread bar instead of a page wash
Tint the bar's glass pieces with the chat shade over the raised surface
(0.16 light and dark, then the 0.82 glass opacity) and draw its labels in
the seeded scheme's onPrimaryContainer; Cupertino takes it as the bar's
primary colour. Inactive split panes keep half the tint. Remove
ChatColorWash. The composer focus ring is the seeded primary at full
opacity, 2 px, with no glow. Contrast test asserts AA for every palette
colour on both hosts in light and dark.
2026-11-10 00:18:23 +00:00
alan 750071abe1 Keep keys typed in a terminal out of app shortcuts
Terminals are marked as typing surfaces. While one has focus, the chat's
"/ jumps to the composer", the Search tab's Escape, Ctrl+/, Ctrl+1…9 and
Ctrl+Shift+arrow pane moves leave the key to the terminal, like they do for
text fields.
2026-11-10 00:14:18 +00:00
alan 339cce0424 Page through a folder's files in the file viewer
Opening a file from the Files panel now passes the folder's previewable
files in their shown order, so the arrows, swipes and Previous/Next step
through them and Escape closes the viewer. Download follows the file on
screen.
2026-11-10 00:14:18 +00:00
alan ec70bee12e Merge branch 'worktree-agent-ae4ea8a7cf042aa35' 2026-11-09 23:59:28 +00:00
alan 9e74810957 Swallow held toggle chords, film key presses in the capture kit, and record terminal shortcut verification 2026-11-09 23:56:55 +00:00
alan 13e58f205e Merge branch 'worktree-agent-a7743f4217dc47a1b' 2026-11-09 23:47:45 +00:00
alan cf9f71f27c Show dismissed commands as an answer footer chip; move Copy to the left gutter
Dismissed shell runs leave the transcript and fold into a "N commands"
chip in the footer of the first answer at or after each run (the last
answer for newer runs, or a row of its own without any answer). The chip
opens the turn sheet (wide) or a full-screen page (narrow) listing the
commands; each opens its output read-only with Copy output, Send to agent
and Restore.

On a wide conversation the answer's Copy button moves out of the footer
into a 48 px gutter left of the reading column (chatCopyGutter), shown on
hover or focus on desktops and always on touch; narrow widths keep it in
the footer.
2026-11-09 23:47:14 +00:00
alan 30934aa71c Toggle the terminal with Alt/Ctrl/Cmd+T, animate it, focus it, and cycle its tabs with Ctrl+Tab
Alt+T, Ctrl+T and Cmd+T join Ctrl+` as early focus-manager key handlers, so
they toggle the panel, window or narrow page from anywhere without reaching
the shell or a text field. Opening with no terminal starts one. The shown
terminal takes the keyboard (also on reload and tab changes) and hiding gives
it back. The panel slides from the bottom edge as the app shrinks, the window
scales and fades, both on Motion.standard and off under reduced motion.
While shown, Ctrl+Tab/Ctrl+Shift+Tab move between terminal tabs instead of
chat panes. The tooltip and menu list the shortcuts the platform delivers.
2026-11-09 23:43:56 +00:00
alan 98e5ecf501 Escape closes the full-screen diff page
The file diff page (from a turn's files-changed chip or run Changes) now
closes on Escape, like its back button.
2026-11-09 23:34:27 +00:00
alan 371d29224c Dismiss command cards without a notice
Dismissing a finished command, or all of them, now just removes the cards;
the SnackBar / overlay with Undo is gone.
2026-11-09 22:24:53 +00:00
alan 9bbd9e0c9b Merge branch 'worktree-agent-a2791c24c562412e3'
# Conflicts:
#	app/lib/features/chat/conversation/chat_thread_view.dart
#	internal/protocol/message.go
2026-11-09 22:07:45 +00:00
alan fcc5a81690 Notes: permanent terminal panel 2026-11-09 22:06:42 +00:00
alan 9cda79fa87 Terminal fixture for captures, protocol docs, panel icon 2026-11-09 22:03:52 +00:00
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 bac21efc5b Dismiss finished shell command cards with Undo
Finished command cards get a Dismiss button and the chat's More menu a
Dismiss all finished commands entry. Dismissal applies to every client of
the chat; a SnackBar (Material) or transient notice (Cupertino) offers Undo
for 5 s. Running commands cannot be dismissed until they end.
2026-11-09 21:40:20 +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