210 Commits

Author SHA1 Message Date
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 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 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 a0f2cfec16 Merge branch 'worktree-agent-ac54c8919e940163a'
# Conflicts:
#	scripts/setup-native.py
2026-11-10 01:07:12 +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 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 9791f09230 Serve the Pipelines chat tools over a loopback MCP endpoint and register it with Claude Code, Codex and OpenCode chats 2026-11-09 16:34:21 +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 871f7cdfa0 Sandbox remote file responses at the browser relay boundary 2026-11-08 22:27:43 +00:00
alan 349428f11d Discover LAN servers and relay authenticated browser peer connections 2026-11-08 21:58:23 +00:00
alan 8016108558 Reload web password safely without restarting active sessions 2026-11-08 21:48:00 +00:00
alan b33970182c Proxy authenticated file explorer downloads and previews 2026-11-07 01:51:12 +00:00
alan a5f7cdf302 feat(web): icons and the web manifest are public for browsers and app installers 2026-10-23 21:51:49 +01:00
alan 8527506da1 chore: remove the JavaScript web client and the Kotlin Android app; the Flutter app replaces both 2026-10-23 21:46:58 +01:00
alan 7958d1830e feat(install): build the Flutter web app in Docker, optional ./install --apk, chosen web password, startup report 2026-10-23 21:45:14 +01:00
alan e507f554c3 feat(chat): files upload over HTTP before the prompt, up to 100 MiB each 2026-10-23 21:25:41 +01:00
alan 83d013f10e docs: record Claude Code chat backend deployment 2026-10-22 18:23:48 +01:00
alan 0acd7346bb feat(chat): add Claude Code chat backend 2026-10-22 18:20:10 +01:00
alan 9ee2e003bf fix(notify): open configured web run pages from ntfy 2026-10-21 13:05:10 +01:00
alan 870c70aefa fix(web): share artifact files instead of URLs 2026-10-21 12:36:06 +01:00
alan 93be42b06e fix(web): preview artifact images on primary click 2026-10-21 12:26:27 +01:00
alan cc094fc06d feat(web): copy original run prompt 2026-10-21 12:19:26 +01:00
alan 634f241019 docs: record live mobile chat information panel verification 2026-10-21 11:04:03 +01:00
alan b9ace1db62 fix(web): move chat metrics into top-bar information panel 2026-10-21 11:01:22 +01:00
alan de987555e9 docs: record independent scheduling and navigation deployment 2026-10-21 02:12:58 +01:00
alan 1e4654381e feat(web): manage independent schedules and restore recorded stage navigation 2026-10-21 02:06:15 +01:00
alan 4ab49a2749 fix(web): align chat row icons and standardize interaction surfaces 2026-10-21 01:36:20 +01:00
alan 2c1d5ccd47 fix(web): keep chat row actions visible in reserved columns 2026-10-21 01:12:26 +01:00
alan 366931eeec feat(web): add independent saved schedule editor modules 2026-10-21 00:43:08 +01:00
alan 7e790126c5 docs: record verified native chat metrics deployment 2026-10-21 00:40:14 +01:00
alan 0b8595f16e feat(web): display reported chat throughput tokens context and cost 2026-10-21 00:27:12 +01:00
alan ba8a981932 fix(chat): preserve fresh compaction state across reconnect history 2026-10-20 22:24:29 +01:00
alan d8b111913e feat(web): show native context compaction activity in chat 2026-10-20 22:15:03 +01:00
alan aa57fe8a04 fix(chat): keep tool totals neutral and count individual errors 2026-10-20 22:05:21 +01:00
alan a40898f79a docs(alpha): simplify native setup and verify generic starter creation 2026-10-20 21:42:34 +01:00
alan dce2d759d7 fix(audit): match export ownership and inventory receipts in browser 2026-10-20 21:42:34 +01:00
alan b56d6af180 fix(audit): reserve recovery evidence outside user deliverables 2026-10-20 21:26:48 +01:00
alan ec3eda9e05 runner: keep export handoffs nonterminal through recovery 2026-10-20 21:20:06 +01:00
alan ca78b24f47 fix(audit): expose verified visit exports and export-only recovery 2026-10-20 21:20:06 +01:00
alan 074b5bb087 web: center multiline composer controls 2026-10-20 20:14:51 +01:00
alan 06dddb002a fix(web): open artifacts outside the installed app context 2026-10-20 20:03:41 +01:00
alan 9f5437b5b0 web: keep empty composer on one line and verify touch sizing 2026-10-20 18:54:45 +01:00
alan 7e9b6771ef fix(web): align chat composer and stabilize running controls 2026-10-20 18:49:03 +01:00
alan d564765ca5 fix(codex): reconcile cold connections without resuming queued goals 2026-10-20 18:33:20 +01:00
alan b3bcfa3826 fix(web): color custom terminal failure outcomes accurately 2026-10-20 18:33:20 +01:00
alan 34939edd0e Render run list miniatures from compact per-stage route evidence 2026-10-20 18:22:13 +01:00
alan 855de19a35 test(chat): require interactive tool parity across advertised harnesses 2026-10-20 18:12:59 +01:00
alan 9cdfd9d9ab search: browse bounded recent items with kind-only queries 2026-10-20 17:54:55 +01:00
alan 35329e4022 feat(chat): broker Codex approvals and complete typed tool interactions 2026-10-20 17:41:35 +01:00