Fix OSC 52 clipboard writes with write_only default
Summary
- Changes the default
terminal.osc52_clipboard_accesspolicy fromdenytowrite_only. - Restores OSC 52 clipboard writes out of the box for terminal-driven copy workflows.
- Keeps OSC 52 clipboard reads opt-in: reads are allowed only when users explicitly set
terminal.osc52_clipboard_access = "read_write". - Updates the setting description and default-value coverage for
Osc52ClipboardAccess. - Adds view-level regression tests for OSC 52 write/read behavior across
read_write,write_only, anddeny.
Root Cause
Starting with v0.2026.05.06, settings_schema.json shipped with "osc52_clipboard_access": "deny" as the default. That blocked OSC 52 clipboard writes, breaking workflows that rely on terminal-driven clipboard copy, including tmux, Neovim, remote editors, and other OSC 52 integrations.
The public code now already gates OSC 52 access behind terminal.osc52_clipboard_access, so this PR narrows the fix to the default policy. write_only restores clipboard-copy behavior while keeping clipboard reads disabled unless the user explicitly opts into read_write.
Test plan
- [x]
git diff --check upstream/master...HEAD - [x]
PROTOC=$(brew --prefix protobuf)/bin/protoc BINDGEN_EXTRA_CLANG_ARGS="-isysroot $(xcrun --show-sdk-path)" cargo nextest run -p warp -- osc52- Result: 13 tests passed; nextest reported 1 leaky test but exited successfully.
- [ ] Manual:
printf '\033]52;c;%s\a' "$(printf 'hello' | base64)"in a Warp terminal should populate the clipboard withhello - [ ] Manual: setting
terminal.osc52_clipboard_access = "deny"in~/.warp/settings.tomlshould block the OSC 52 clipboard write above - [ ] Manual: OSC 52 clipboard read should remain blocked by default and work only with
terminal.osc52_clipboard_access = "read_write"
CHANGELOG-BUG-FIX: Restore OSC 52 clipboard writes by defaulting osc52_clipboard_access to write_only, while keeping OSC 52 reads opt-in (fixes #10516)
Thank you for your pull request and welcome to our community. We could not parse the GitHub identity of the following contributors: Youngsang Kwon. This is most likely caused by a git client misconfiguration; please make sure to:
- check if your git client is configured with an email to sign commits
git config --list | grep email - If not, set it up using
git config --global user.email [email protected] - Make sure that the git commit email is configured in your GitHub account settings, see https://github.com/settings/emails
@dotoricode
Every PR must be linked to a same-repo issue before Oz can review it.
This PR is linked to #10516, but no linked issue is marked ready-to-implement yet. Only repository maintainers apply that label, so please wait for a maintainer to mark the issue. Once it is marked, push a new commit or comment /oz-review to re-trigger review.
See the contribution guidelines for the full readiness model.
Powered by Oz
Thank you for your pull request and welcome to our community. We require contributors to sign our Contributor License Agreement, and we don't seem to have the users @dotoricode on file. In order for us to review and merge your code, each contributor must visit https://cla.warp.dev to read and agree to our CLA. Once you have done so, please comment @cla-bot check to trigger another check.
@cla-bot check
The cla-bot has been summoned, and re-checked this pull request!
Hi @dotoricode — a reviewer requested changes on this PR and it hasn't had activity from you in 7 days. When you get a chance, please push updates or reply to the review so a reviewer can take another look. Without activity, this PR will be automatically closed after 14 days of inactivity.
Thanks for the reminder. I re-checked the requested-changes state today. The current blocker appears to be the Oz readiness gate rather than an unresolved inline code review thread: this PR is linked to #10516, but that issue is not marked ready-to-implement yet.
I will wait for a maintainer to apply that label before re-triggering Oz, per the contribution workflow. I am also keeping this PR scoped to the existing constraints in the PR body: default OSC 52 access to write_only, keep OSC 52 reads opt-in through read_write, and avoid broadening beyond the default-policy fix.
Once #10516 is marked ready, I can re-trigger review with /oz-review or push any maintainer-requested follow-up.
Hi @dotoricode — a reviewer requested changes on this PR and it hasn't had activity from you in 7 days. When you get a chance, please push updates or reply to the review so a reviewer can take another look. Without activity, this PR will be automatically closed after 14 days of inactivity.
Hi @dotoricode — final reminder: a reviewer requested changes on this PR and it has been inactive for 10 days. It will be automatically closed in about 4 day(s) unless you push updates or reply. Maintainers can apply the no-autoclose label to keep it open.