Skip to content

fix(desktop): make VNC observation read-only - #23

Merged
ElbertePlinio merged 3 commits into
mainfrom
fix/vnc-viewonly-ci
Jul 12, 2026
Merged

ElbertePlinio merged 3 commits into
mainfrom
fix/vnc-viewonly-ci

Conversation

@ElbertePlinio

@ElbertePlinio ElbertePlinio commented Jul 12, 2026 •

Copy link
Copy Markdown
Member

Changed

  • Make normal --vnc sessions server-enforced read-only with -viewonly while retaining loopback-only, shared, no-password behavior.
  • Add explicit --vnc-control for human password/API-key/OTP entry and record the VNC mode in session metadata.
  • Install x11vnc in CI and release jobs.
  • Add a CI-only prerequisite assertion so VNC integration coverage cannot silently skip.
  • Align README, SECURITY.md, and release tracking with the read-only observation contract.

This is PR 1 of the computer-use roadmap. picklab watch remains for the later #15 slice.

Validated

  • bun run typecheck
  • bun run test — 562 passed, 2 skipped locally
  • bun run test:coverage — thresholds met
  • bun run build
  • Focused builder/integration tests
  • Confirmed the CI prerequisite test fails loudly when CI=true and x11vnc is absent

Not tested locally

  • Live VNC integration because x11vnc is not installed on this machine. CI now installs it and must execute the VNC suite.

Risk

  • --vnc-control is intentionally writable but does not yet coordinate with agent input; users must pause agent actions while entering a secret. Lease-coordinated takeover remains a later slice.

Refs #15
Refs #17

@ElbertePlinio

Copy link
Copy Markdown
Member Author

@codex review

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 51708f34e2

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread packages/desktop-linux/src/vnc.ts Outdated
"-forever",
"-shared",
"-nopw",
"-viewonly",

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Preserve a working secret-entry path

With VNC now unconditionally started as -viewonly, users can no longer type into the lab app through the only live-view channel. The MCP request_user_input guidance in packages/mcp-server/src/tools/user.ts still tells agents to have humans enter passwords/API keys/OTP codes directly into the app “e.g. via VNC”; in those secret-entry flows the user’s keystrokes will be ignored and the agent will stall waiting for confirmation. Please either update that guidance to a supported input path or keep a separate explicitly writable/supervised channel for this case.

Useful? React with 👍 / 👎.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed in f74d303. Normal --vnc remains server-enforced read-only, while new explicit --vnc-control creates a writable VNC path for human password/API-key/OTP entry. The mode is recorded in session metadata, exposed through CLI/MCP creation, documented as uncoordinated with agent input, and covered by argv plus live fake-VNC session tests. request_user_input guidance now points to the supported flag.

@ElbertePlinio

Copy link
Copy Markdown
Member Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Bravo.

Reviewed commit: ee9b6e7d0d

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@ElbertePlinio

Copy link
Copy Markdown
Member Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Swish!

Reviewed commit: 0776e1270e

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@ElbertePlinio
ElbertePlinio merged commit 1d970f8 into main Jul 12, 2026
1 check passed
@ElbertePlinio
ElbertePlinio deleted the fix/vnc-viewonly-ci branch July 12, 2026 19:28
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.

1 participant