Commit Graph

160 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 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 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 0acd7346bb feat(chat): add Claude Code chat backend 2026-10-22 18:20: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 b9ace1db62 fix(web): move chat metrics into top-bar information panel 2026-10-21 11:01:22 +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 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 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 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 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 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
alan f31806cfcb web: open authored stage definitions in managed graph popup 2026-10-20 17:36:14 +01:00
alan a77e54beab web: right-align list miniatures and color pinned run graphs 2026-10-20 17:34:10 +01:00
alan a670610497 web: parse search type prefixes into kind filters 2026-10-20 17:32:12 +01:00
alan 35040fe13f web: wrap run titles and give applied filters a separate row 2026-10-20 17:23:07 +01:00
alan c78def70dd fix(chat): recover web approvals and questions across clients and reconnects 2026-10-20 17:23:07 +01:00
alan ed0abb976d feat(chat): persist safe Codex next-turn model selection 2026-10-20 16:35:31 +01:00
alan a049b552f6 Recover incomplete session exports through durable runtime jobs 2026-10-20 16:30:04 +01:00
alan 6841cdd2a4 web: unify mobile back and audit controls and link pipeline run history 2026-10-20 16:25:07 +01:00
alan fdf0369ede Enforce runtime report contracts and recoverable session exports 2026-10-20 16:05:33 +01:00
alan 1d9cb80cdb web: keep mobile composition stable across keyboard and Back navigation 2026-10-20 16:04:09 +01:00
alan b96b9d94a6 fix: keep cancellation pending until execution cleanup is confirmed 2026-10-20 15:49:08 +01:00
alan 1cf5156c77 security: validate browser origins at the authenticated websocket proxy 2026-10-20 15:48:02 +01:00
alan c6695e5e90 web: allow the managed model dialog to leave its loading state 2026-10-20 15:46:56 +01:00
alan e504780976 fix(chat): settle authoritative turns and make capabilities explicit 2026-10-20 15:45:44 +01:00
alan 016fcb552a fix: persist and retry run alerts and honor notification modes 2026-10-20 15:44:23 +01:00