Skip to content

Add an option to disable Tart clipboard sharing - #475

Merged
edi-oai merged 1 commit into
mainfrom
dev/yzhuang/orchard-no-clipboard
Sep 1, 2026
Merged

Add an option to disable Tart clipboard sharing#475
edi-oai merged 1 commit into
mainfrom
dev/yzhuang/orchard-no-clipboard

Conversation

@yzhuang-oai

Copy link
Copy Markdown
Contributor

Tart supports disabling clipboard sharing, but Orchard does not expose that option when creating a VM. Add the noClipboard VM field and --no-clipboard creation flag, pass the option to Tart, and expose it in VM inspection and the OpenAPI schema. Clipboard sharing remains enabled by default.

Validation: go test -count=1 -timeout=120s ./pkg/resource/v1 ./internal/command/create ./internal/command/get ./internal/worker/vmmanager/tart, plus the combined Orchard build.

@yzhuang-oai
yzhuang-oai marked this pull request as ready for review September 1, 2026 16:16
@yzhuang-oai
yzhuang-oai requested a review from edi-oai September 1, 2026 16:16
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 1, 2026

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review Completed 2026-09-01T16:29:15.111715Z ad87b24 New commits
🔒 Security Review Completed 2026-09-01T16:34:45.566964Z ad87b24 New commits
ℹ️ 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" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

Expose noClipboard in VM creation, CLI inspection, and the API schema.
Pass --no-clipboard to Tart when requested. Clipboard sharing remains
enabled by default for existing VM specifications.
@yzhuang-oai
yzhuang-oai force-pushed the dev/yzhuang/orchard-no-clipboard branch from 96fa042 to ad87b24 Compare September 1, 2026 16:27

@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: ad87b24bf0

ℹ️ 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 pkg/resource/v1/v1.go
Headless bool `json:"headless,omitempty"`
Nested bool `json:"nested,omitempty"`
NoAudio bool `json:"noAudio,omitempty"`
NoClipboard bool `json:"noClipboard,omitempty"`

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 Put noClipboard in the mutable VM specification

When a client reads a running VM, changes noClipboard, and calls VMs.Update/PUT /vms/{name}, updateVMSpec compares and copies only the embedded VMSpec. Because this field is declared outside that struct, the controller returns the unchanged resource without incrementing Generation, so the worker never restarts Tart with the new setting. This is especially misleading because the OpenAPI schema exposes noClipboard as part of the request's VMSpec; include it in the Go VMSpec as well.

Useful? React with 👍 / 👎.

Headless: headless,
Nested: nested,
NoAudio: noAudio,
NoClipboard: noClipboard,

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 Reject noClipboard for the Vetu runtime

With --runtime vetu --no-clipboard, this value is accepted by VM.Validate() and persisted, but the Vetu runner invokes only vetu run <id> and never consumes NoClipboard; therefore the request succeeds while the requested setting has no effect. Since only the Tart runner implements this option, reject it for RuntimeVetu as is already done for other Tart-only fields, or implement the equivalent Vetu behavior.

Useful? React with 👍 / 👎.

@edi-oai
edi-oai merged commit 28c0dd3 into main Sep 1, 2026
3 checks passed
@edi-oai
edi-oai deleted the dev/yzhuang/orchard-no-clipboard branch September 1, 2026 20:32
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