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
viewer: a version-mismatched watch stops a host that holds live control #371
A read-only pickforge-lab watch, or an MCP launch with viewer.mode: "auto", replaces a native viewer host from a different CLI version. If that host holds live human control, stopping it releases the lease, and the human's control ends without warning.
To reproduce:
Take control in the native viewer, or run pickforge-lab watch --control --session <id>.
Upgrade the CLI, or start an MCP server from another version.
Run pickforge-lab watch --session <id>, or call request_takeover from that MCP server.
The new host replaces the old one, and the human's lease ends with "stopping". The result fails closed, so agent input stays safe, but the human loses control in the middle of their work.
Found in the council review of #341. The code is in startNativeViewerHost in packages/desktop-linux/src/viewer-host.ts. Its control path now refuses a live lease before it stops the open host.
Acceptance criteria
A version-mismatched read-only start never stops a host that holds a live human lease. It fails with a clear message that names the held control.
A version-mismatched host without live control is still replaced as today.
Checklist
Refuse the replacement while the open host holds a live lease
Activity