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
{{ message }}
Repository navigation
stop_share cannot remove a path-mounted share, and share_port accepts unvalidated paths #55
share_port accepts a path and mounts the share at that path, but stop_share has no way to remove a path mount. stop_share {httpsPort: 443} runs tailscale serve --https=443 off, which targets the default / mount, so the agent can't undo a share it created except by wiping everything (serve reset, see #41). An agent left with a share it can't stop, or one that wipes all shares to stop one, is the opposite of the safety story.
path is also unvalidated: values like api (no leading slash), an empty string, or strings with spaces or ? are passed straight to --set-path=, and the resulting CLI error or surprising mount is reported generically.
Evidence
src/providers/cli.ts:276 adds --set-path=${opts.path} on serve.
src/providers/cli.ts:312-317 (serveReset) builds serve --https=<port> off with no path. The stop_share schema (src/tools/share.ts:66-74) has only httpsPort.
src/tools/share.ts:23-26: path: z.string().optional() with no constraints.
Tests: a share at /api and its stop round-trip, plus rejecting invalid paths.
Done when
Any share created by share_port (any path, Serve or Funnel) can be removed individually by stop_share, invalid paths are rejected at the schema, and tests cover it.
Activity
fix: ssh-config safety, macOS CLI resolution, share paths, test typec…