[kernel-1028] add api clipboard support#162
Merged
archandatta merged 8 commits intomainfrom Feb 26, 2026
Merged
Conversation
6aeb396 to
44eda3e
Compare
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 2 potential issues.
Bugbot Autofix is OFF. To automatically fix reported issues with Cloud Agents, enable Autofix in the Cursor dashboard.
Contributor
Author
yeah sorry i should've included this! Screen.Recording.2026-02-25.at.3.13.03.PM.mov |
Contributor
|
Excellent!
…On Wed, Feb 25, 2026 at 2:15 PM, archandatta ***@***.***> wrote:
*archandatta* left a comment (kernel/kernel-images#162)
<#162 (comment)>
how did you test this?
yeah sorry i should've included this!
https://github.com/user-attachments/assets/
6f30eece-8ee5-4ab3-81e7-b865a6d1907d
—
Reply to this email directly, view it on GitHub
<#162 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAARXT3ZIUN6C4XMWHMASGD4NXYF7AVCNFSM6AAAAACV7KNZUSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZTSNRRGQZTOMJZGI>
.
You are receiving this because your review was requested.Message ID:
***@***.***>
|
Sayan-
reviewed
Feb 25, 2026
Contributor
Sayan-
left a comment
There was a problem hiding this comment.
exciting stuff! also sanity checking you tested headless?
| defer s.inputMu.Unlock() | ||
|
|
||
| display := s.resolveDisplayFromEnv() | ||
| cmd := exec.CommandContext(ctx, "xclip", "-selection", "clipboard", "-o") |
Contributor
There was a problem hiding this comment.
is this included for both headful + headless images?
Contributor
Author
There was a problem hiding this comment.
Oh good catch! I added the xclip to the headless image! a35b3d1
a7007ff to
a35b3d1
Compare
Sayan-
approved these changes
Feb 26, 2026
|
@archandatta - including this in the changelog! can you update the API docs with the new endpoints? |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Note
Medium Risk
Adds new API surface that reads/writes the X11 clipboard by invoking
xclip, which can be fragile across display/env setups and affects host/container state. Changes are otherwise localized with an e2e test and image dependency update.Overview
Adds clipboard support to the computer API via new
POST /computer/clipboard/readandPOST /computer/clipboard/writeendpoints, wired through generated OAPI types/clients and implemented incomputer.gousingxclip(with serialized access viainputMu).Updates the headless Chromium Docker image to install
xclip, and adds an e2e test (TestClipboardHeadless) that verifies the new routes exist inspec.yamland that a write followed by read round-trips the expected text.Written by Cursor Bugbot for commit eefd81d. This will update automatically on new commits. Configure here.