Skip to content

feat(desktop): add live session watch - #30

Merged
ElbertePlinio merged 4 commits into
mainfrom
feat/watch-viewer
Jul 13, 2026
Merged

ElbertePlinio merged 4 commits into
mainfrom
feat/watch-viewer

Conversation

@ElbertePlinio

Copy link
Copy Markdown
Member

Changed

  • Add picklab watch [--session <id>] for desktop-capable and browser sessions.
  • Lazily start or safely reuse loopback, server-enforced read-only x11vnc.
  • Detect and launch supported host viewers, with actionable headless/SSH guidance.
  • Add manual/auto viewer config and one-shot create overrides.
  • Keep viewer close independent from VNC, Xvfb, and session lifecycle.
  • Serialize ensure/destroy operations with PID-identity-safe locks outside removable session runtime directories.
  • Report viewer readiness through MCP without launching host GUI windows.

This completes PR 3 of #17. Writable coordinated control remains in #21.

Validated

  • bun run typecheck
  • bun run build
  • Full suite: 65 files, 737 passed / 2 skipped
  • Real Chrome and Xvfb integrations
  • Real x11vnc + TigerVNC attach/close proof; x11vnc had -viewonly, and viewer close left VNC/Xvfb/session alive
  • Serious two-model local review plus targeted lock-fix verification: clean

Not tested

  • Live remote SSH-tunnel smoke
  • Platforms outside Linux

Risk

VNC is loopback-only and read-only, but same-UID local processes are outside PickLab isolation. Crash-left waiter sentinel files are tiny inert artifacts and do not block lock acquisition.

Closes #15
Refs #17

ElbertePlinio and others added 4 commits July 13, 2026 05:29
Attach a read-only host VNC viewer without transferring ownership of the isolated desktop or blocking session creation.
Verify VNC identities, coordinate teardown, and report viewer failures without orphaning sessions.
@ElbertePlinio
ElbertePlinio merged commit ad4d177 into main Jul 13, 2026
1 check passed
@ElbertePlinio
ElbertePlinio deleted the feat/watch-viewer branch July 13, 2026 09:02
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.

Nested-display desktop sessions (Xephyr): watch the agent live with its own cursor

1 participant