GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||||
GeezerVison is showing github.com — fix(clipboard): write OSC52 to /dev/tty instead of stdout by alse-sym · Pull Request #12129 · anomalyco/opencode Conversation
|
|
The following comment was made by an LLM, it may be inaccurate: Potential Duplicate Found:
This PR appears to address a related clipboard OSC52 issue with SSH compatibility. Since PR #12129 also handles SSH scenarios (using Recommendation: Check PR #9008 to determine if it's already solving this issue or if there are differences in approach (writing to |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
|
Just wanted to flag that this PR also fixes a related issue with Zellij's auto-select-copy feature (see #14385). When |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
I'm seeing this issue too. Would be great to have it fixed. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Also seeing this issue. When can we get a fix? |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
This is a useful feature. Any blockers for not merging it? |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
Keep sync `fs` import for OSC52 /dev/tty writes; use `fs.promises.rm` for async cleanup; add Filesystem/Process/which imports from upstream. Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
OpenCode's clipboard.ts checks process.env.TMUX || process.env.STY and, when either is set, wraps its OSC 52 clipboard sequence in a DCS tmux passthrough frame (\x1bPtmux;\x1b...\x1b\). When OpenCode runs inside a Neovim terminal buffer that is itself inside tmux, those env vars are inherited. Neovim's libvterm does not handle the DCS frame cleanly: the nested \x1b]52;c;<base64> sequence gets routed back to OpenCode's stdin where Bubble Tea parses the OSC start (\x1b]) and leaves 52;c;<base64> as typed characters in the input area. Setting TMUX="" and STY="" in the termopen env makes the JS falsy check evaluate to false, so OpenCode emits a plain OSC 52 instead. libvterm handles plain OSC 52 via its clipboard callback without writing anything back to the child's stdin. OpenCode's native clipboard path (wl-copy / xclip / xsel) is unaffected. Upstream fix tracked at anomalyco/opencode#12129 (write OSC 52 to /dev/tty instead of stdout) - still open as of 2026-04-02.
|
This branch has been upgraded to V2. We're no longer taking PRs for V1. If you think this is still relevant, please port it over and open it for V2. — from 𝕺𝖕𝖊𝖓𝕮𝖔𝖉𝖊 |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
Clipboard copy fails in Zellij and other multiplexers (OSC52 written to stdout instead of /dev/tty)
There was an error while loading. Please reload this page.