Skip to content

feat(staged): add browser-accessible web mode - #709

Draft
matt2e wants to merge 1 commit into
mainfrom
mobile-web
Draft

matt2e wants to merge 1 commit into
mainfrom
mobile-web

Conversation

@matt2e

@matt2e matt2e commented May 11, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Adds a web server mode that serves the Staged UI via HTTP, enabling browser-based access without the Tauri desktop shell
  • Implements a transport abstraction layer so the frontend can communicate over either Tauri IPC (desktop) or HTTP/WebSocket (web)
  • Broadcasts web project setup progress events and fixes missing function arguments in web server handlers

Test plan

  • Verify desktop app continues to work normally via Tauri IPC
  • Start the web server and confirm the UI loads in a browser
  • Test session launching, branch operations, and event streaming via the web transport
  • Confirm rebase/squash pipeline commands work through the web API

@matt2e
matt2e force-pushed the mobile-web branch 5 times, most recently from 808c1dd to 075b8bf Compare May 15, 2026 08:15
@matt2e
matt2e force-pushed the mobile-web branch 2 times, most recently from 6b9a11f to 5dcf4a0 Compare June 28, 2026 03:35
@matt2e
matt2e force-pushed the mobile-web branch 3 times, most recently from d42d13f to 9c5f909 Compare July 9, 2026 03:26
@matt2e
matt2e force-pushed the mobile-web branch 2 times, most recently from 62e8088 to b5016a7 Compare July 30, 2026 07:41
@matt2e
matt2e force-pushed the mobile-web branch 2 times, most recently from 60c1853 to c9d8534 Compare August 11, 2026 10:51
@matt2e
matt2e force-pushed the mobile-web branch 3 times, most recently from 55ac096 to fde912a Compare September 3, 2026 05:08
@matt2e
matt2e force-pushed the mobile-web branch 2 times, most recently from be89621 to c3c3c23 Compare September 4, 2026 07:08
@matt2e
matt2e force-pushed the mobile-web branch 3 times, most recently from b46417f to 66e81c9 Compare October 15, 2026 12:08
@matt2e
matt2e force-pushed the mobile-web branch 3 times, most recently from 5ca0602 to 9451a97 Compare October 28, 2026 12:44
@matt2e
matt2e force-pushed the mobile-web branch 3 times, most recently from 70b355a to 9d6a43e Compare November 2, 2026 09:32
@matt2e
matt2e force-pushed the mobile-web branch 4 times, most recently from adf4f03 to a02d963 Compare November 12, 2026 00:20
@matt2e
matt2e force-pushed the mobile-web branch 3 times, most recently from c05a7a5 to e3a42fb Compare November 14, 2026 03:21
@matt2e
matt2e force-pushed the mobile-web branch 3 times, most recently from bcadda8 to 783f99b Compare November 26, 2026 11:14
Restore the opt-in Axum web server so Staged can be used from a browser
or phone. It starts only when STAGED_WEB_SERVER is set, binds
0.0.0.0:5175 over TLS using the PEM files named by STAGED_WEB_CERT_PATH
and STAGED_WEB_KEY_PATH, and serves the built frontend alongside the
/api command and /api/events WebSocket endpoints.

- Add `just dev-web` (Vite over HTTPS, proxying /api to the server) and
  `just run-web` (release bundle serving dist/, with a readiness probe
  since release builds log nothing).
- Teach vite.config.ts to serve HTTPS, allow STAGED_WEB_HOST, and proxy
  /api including WebSockets.
- Remove the token/cookie session auth and permissive CORS. The server
  is unauthenticated, so network reachability is the only boundary;
  this is documented in the README, justfile, and at the startup site.
- Refuse cross-origin WebSocket upgrades on /api/events, falling back to
  the URI authority so HTTP/2 handshakes without a Host header are
  accepted.
- Keep generate_token and the rand/subtle deps for the control server;
  drop axum-extra and the tower-http cors feature.
- Fix a racy prPollingService re-mock in the transport setup-failure
  tests.

Signed-off-by: Matt Toohey <contact@matttoohey.com>
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Signed-off-by: Matt Toohey <contact@matttoohey.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant