Skip to content

Harden vavd CLI, admin, and web pairing UX - #29

Open
Obooman wants to merge 3 commits into
mainfrom
cursor/vavd-robust-ux-7965
Open

Harden vavd CLI, admin, and web pairing UX#29
Obooman wants to merge 3 commits into
mainfrom
cursor/vavd-robust-ux-7965

Conversation

@Obooman

@Obooman Obooman commented Sep 4, 2026

Copy link
Copy Markdown
Contributor

Merge main (through 1.19.1 / Chrome discover + phone-ui) into this branch.

What this PR still does

Headless vavd CLI/admin/spawn hardening on top of main’s phone-ui + /discover stack:

  • vavd rejects invalid --port / --web-port / unknown flags; --version, --quiet, --flag=value work. --help / --version / admin verbs do not load node-pty.
  • vavd rotate-offer against a running daemon prints the new pairing URI. A stale admin.json falls back to disk.
  • vav can cancel and reply, reports cancelled turns, and says when vavd is not listening instead of dumping ECONNREFUSED.
  • Loopback web rejects DNS-rebinding Host headers with 421.
  • Spawn timeout kills the silent child; waitForPairing is exported and still returns { pairing, stdout } so desktop can read webOrigin.

Merge conflict notes

Simple (combined both sides): changelog, READMEs, thin vavd.ts + lazy serve, spawn timeout + webOrigin, Host 421 + /discover / phone-ui assets, both spawn tests.

Conflicting UI architecture (took main): webUi.ts, extension/sidepanel.html, extension/sidepanel.js. Main replaced the inline pairing-paste UI with shared phone-ui + MV3 discover. Keeping our HTML/JS would regress #28 / #31 / #32.

Test plan

  • Unit: vavdArgs, vavdAdmin, vavCli, vavPhoneClient, webUiHelpers, vavdSpawn, vavdProcess, webClients, VavWebBridge, vavDiscover
  • Process test: /discover + 421 on bad Host
  • Browser web UI (if Playwright Chromium available): auto-connect via discover
Open in Web Open in Cursor 

cursoragent and others added 2 commits September 4, 2026 16:35
Extract a shared argv parser so invalid ports and unknown flags fail
loudly, print a new pairing URI from rotate-offer, fall back when the
admin socket is stale, and let the web UI and vav CLI cancel, reply,
and paste a vav-daemon:// line.

Co-authored-by: Oboo Cheng <oboochin@gmail.com>
Help, version, and admin verbs no longer import node-pty, and phone-client
tests destroy hung sockets so the suite cannot stall on server.close.

Co-authored-by: Oboo Cheng <oboochin@gmail.com>
@Obooman
Obooman marked this pull request as ready for review September 5, 2026 13:13
Keep the thin vavd CLI, Host 421 checks, spawn timeout kill, and CLI
cancel/reply work. Take main's phone-ui + discover stack for the web
page and Chrome side panel instead of the old inline pairing UI.

Co-authored-by: Oboo Cheng <oboochin@gmail.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.

2 participants