Repository navigation
fix: desktop keyboard pastes local clipboard text - #141986
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
Codex review: needs maintainer review before merge. Reviewed September 8, 2026, 3:54 AM ET / 07:54 UTC. ClawSweeper reviewWhat this changesThe Desktop Keyboard field permits local clipboard paste, sends literal text without held modifiers, clears stale modifier tracking, and documents the workflow. Merge readiness✅ Ready for maintainer review This remains a useful fix for behavior still broken on current main. No blocking correctness or security findings remain, the supplied live proof supports the repair, and the previous draft blocker is resolved. Priority: P2 Review scores
Verification
How this fits togetherThe Control UI Desktop panel sends keyboard input to a connected remote desktop through noVNC. Its Keyboard field translates local text entry into remote key events while the existing connection owner gates control readiness. flowchart LR
A[Local clipboard] --> B[Desktop Keyboard field]
B --> C{Connected control available}
C -->|No| D[Input disabled]
C -->|Yes| E[Release modifiers and send text]
E --> F[noVNC keyboard encoder]
F --> G[Remote desktop field]
E --> H[Restore held modifiers]
Before mergeNone. Agent review detailsSecurityNone. PR surfaceSource +65, Tests +186, Docs +2. Total +253 across 4 files. View PR surface stats
Review metrics
Root-cause clusterRelationship: Members:
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything. Technical reviewBest possible solution: Keep local paste in the Keyboard field on the existing noVNC text path, preserving direct canvas shortcuts and connected-control gating. Do we have a high-confidence way to reproduce the issue? Yes: take connected desktop control, choose Keyboard, and paste local text. Current-main source prevents the browser paste default, matching the supplied macOS reproduction; this review did not execute that flow. Is this the best way to solve the issue? Yes: the repair lets the browser produce clipboard text and reuses the existing encoder, with lifecycle cleanup and focused regression coverage. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against d637fe729a37. LabelsLabel justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (1 earlier review cycle)
|
|
Merged via squash.
|
Closes #141981
Related: #141378
What Problem This Solves
Fixes an issue where users pasting local text into the Control UI Desktop Keyboard field would send a remote paste shortcut instead of the clipboard contents. A live macOS reproduction pasted a 32-character string but inserted only
v.Why This Change Was Made
The Keyboard textarea now permits the browser's native paste and sends the resulting text through the existing noVNC encoder. It temporarily releases and restores held modifiers around literal text, tracks physical modifier releases after focus moves, and clears stale bookkeeping on blur, reset, control loss, or connection replacement. Direct desktop-canvas shortcuts and provider authorization are unchanged.
User Impact
Command+V on macOS and Ctrl+V on Windows/Linux insert local clipboard text through Keyboard, without leaving remote modifiers stuck. Keyboard input remains disabled until connected control is ready. The usage note documents this distinction from remote desktop shortcuts.
Evidence
v; the repaired bundle inserted the completeWebVNC paste 0123456789 AaBbCcDd. Normal macOS sign-in using pasted saved credentials also succeeded, with no password or lock-policy changes.The local checks used the existing ordinary checkout because this linked worktree's external dependency symlink is rejected by the typecheck boundary guard. The touched source bytes were verified identical; no guard was bypassed. CI will validate the PR head.