You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: serve from any dir + project-scope server-backed CLI commands
Two gaps surfaced while testing the multi-project flow:
- `webmux serve` no longer requires a `.webmux.yaml` in the cwd. It serves every
known project (from ~/.webmux/projects.json) on one port and auto-adds the cwd
repo when it is a webmux project; a fresh dir just shows the empty state.
- Server-backed CLI commands (`send`, `tab`, `linear`, `oneshot`) now resolve
the cwd's project and target `/<prefix>/api/...` instead of the bare,
now-nonexistent unprefixed routes. Added `resolveProjectRoot` /
`resolveProjectBaseUrl` in shared.ts (matches the server's `projectRoot`,
looks the project up via /api/projects). Falls back to the unscoped base when
the root can't be determined; clear error when the repo isn't a served project.
oneshot also prefixes its agents WebSocket URL.
Verified: `send` to a missing branch returns a clean "Worktree not found" (i.e.
it reached the prefixed endpoint); `webmux serve` from /tmp no longer errors on
a missing config. Suite green: backend 454, frontend 114, bin+contract 185.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
0 commit comments