2468 Commits

Author SHA1 Message Date
alan a49b59a2bc Keep even 16px window margins for top bars on wide windows
On a wide window (both sides at least 600 logical px) every SegmentedBar
keeps the floating tab bar's 16px from the top and the sides, in every
pane and page. A root WindowMargins scope adds the extra 8px to the top
media padding, so Cupertino's fixed reserved bar height, list clearances,
pinned headers and measured overlays all move together; the bar and the
TopGlassStrip read the 16px side inset from the same scope, and sticky
section chevrons keep 16px from the trailing edge. Phones keep 8/12.
2026-11-10 13:09:36 +00:00
alan e38958b381 Merge main: keep pane moves and the floating chat; Float sits beside the move items 2026-11-10 13:09:31 +00:00
alan e033d4e176 Put the active chat on center stage with Ctrl/Cmd+E 2026-11-10 12:57:39 +00:00
alan a410b9e5b7 Move chat panes up, down, left and right by swapping with their neighbour 2026-11-10 12:56:48 +00:00
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 d55e1e7162 Let installed apps sign in over https again
The __Host- session cookie name now goes to browsers only. Native clients
(no Origin or fetch metadata), including app builds from before the change,
get the plain cookie name, still Secure over https, so they find their
session after signing in.
2026-11-10 02:19:36 +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 31317be258 Document web sign-in and session hardening 2026-11-10 01:21:28 +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 e43f9fa50c Hash the web password and revoke sessions server-side
Store a scrypt hash (migrating a plaintext password without changing it),
sign sessions with a generation that ./password and --revoke-all rotate,
make logout a same-origin POST that revokes the token, add sign out everywhere,
and close proxied websockets whose session ends. Enforce a strength rule for
new passwords, back off logins per client and server-wide, check Origin on
login, tighten next, add security headers and a __Host- cookie over https.
2026-11-10 01:21:28 +00:00
alan f11ff8650d Require step-up password confirmation for shells, terminals and file changes
A new elevate request verifies the web sign-in password (scrypt hash, read-only,
rate-limited, constant time) and elevates that connection for 15 minutes.
chat_shell_run/input, rename/move/delete, terminal_open/input and POST /files
(via a per-connection upload token) are refused with code elevation_required
until then.
2026-11-10 01:21:15 +00:00
alan a0f2cfec16 Merge branch 'worktree-agent-ac54c8919e940163a'
# Conflicts:
#	scripts/setup-native.py
2026-11-10 01:07:12 +00:00
alan e614f93578 Document the network defaults, LAN opt-in and migration 2026-11-10 01:06:17 +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 41e9b10c9d Merge branch 'worktree-agent-a37f45fa108430592'
# Conflicts:
#	internal/server/websocket.go
2026-11-10 01:00:49 +00:00
alan 12a74247ae Create the server token at install and document the security boundary 2026-11-10 00:59:39 +00:00
alan 547d4d9822 Send the server token from the web proxy and limit peer relay addresses
The proxy adds the shared token to every upstream request and drops any
client copy. The peer relay accepts only tailnet, LAN, ts.net and discovered
hosts, resolves each name once and pins the checked address, and flags
ws:// endpoints with insecure_transport.
2026-11-10 00:59:39 +00:00
alan 84f7e33872 Guard the Go server's request boundary: loopback Host, no Origin on /connect, shared token
The server answered any Host, so a DNS-rebinding page reached /connect (101)
and could drive terminals. Every route now refuses a non-loopback Host on a
loopback connection (421), /connect refuses any Origin (403), and a server
started with -token-file requires X-Pipelines-Token (401; /mcp and /healthz
exempt). The CLI/TUI send the token only to loopback URLs.
2026-11-10 00:59:39 +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 227c036aa5 Start machine terminals at the su login prompt instead of tmux
A new terminal runs su -l for the server's own account in its PTY, so the
operator types the account password before getting a shell. Opening is
refused when su is missing, the server runs as root, or su opens a shell
without asking. The Pipelines-owned tmux backing, its reattach and its
persisted session names are removed: terminals end with the server and
are listed as ended. A starting server ends leftover pipelines-term_*
sessions on tmux -L pipelines only.
2026-11-10 00:37:11 +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 f30b0833e1 Note the Feature workflow in the workflow snapshots README 2026-11-09 23:39:10 +00:00
alan 93682f9ce6 Add the Feature workflow and its full-stack change guide
docs/feature-changes.md records how cross-layer features (protocol,
persistence, server, harness adapters, web proxy, app, fixtures) were built
and verified in this session; docs/workflows/feature.md is the reviewed
prepare → plan → implement → review → ui-review → land definition that
follows it, with a delivery gate for Go, web and app checks.
2026-11-09 23:38:57 +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 f2520a09b8 Keep dismissed shell commands and restore them without a time limit
A dismissed run keeps its command, status, times and output within the
usual history bounds. chat_shell_runs lists dismissed runs apart
(chat_shell_dismissed_runs), chat_shell_run_output still reads them, and
the purge timer and startup purge are gone. Rows an older server purged
are listed with purged set and cannot be restored.
2026-11-09 23:29:25 +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