Repository navigation
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (1)
📝 WalkthroughWalkthroughWSL sessions no longer prefer OSC 52 clipboard writes. SSH sessions retain OSC 52 preference. The WSL clipboard test now expects native clipboard handling. ChangesClipboard selection
Estimated code review effort: 1 (Trivial) | ~5 minutes 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
Greptile SummaryThis PR changes clipboard routing so local WSL sessions try the native platform clipboard first while SSH sessions continue to prefer OSC 52.
Confidence Score: 5/5The PR appears safe to merge with native clipboard failure still falling back to OSC 52. Local WSL now attempts the native clipboard first, SSH sessions still select OSC 52 directly, and unsuccessful native writes continue through the existing OSC 52 fallback.
|
| Filename | Overview |
|---|---|
| src/selection.rs | Updates the WSL clipboard preference decision and its regression test while preserving SSH routing and native-write fallback behavior. |
Reviews (1): Last reviewed commit: "fix: prefer native clipboard on WSL" | Re-trigger Greptile
|
thanks for the report. osc 52 is the widely supported terminal-native clipboard path and is currently the most robust option for wsl because the attaching terminal writes directly to the windows clipboard. we intentionally made it the wsl default in #333 after wslg tools such as this appears to be a hyper limitation. hyper’s osc 52 support request remains open, although xterm.js added support in xtermjs/xterm.js#4220. this pr is therefore not a safe general fix. it changes clipboard routing for every local wsl session and would restore the behavior that caused #333. the osc 52 fallback does not prevent that regression because a wslg clipboard command can return success without updating windows clipboard history. hyper should add osc 52 support rather than changing herdr’s wsl default. |
Summary
Problem
Herdr 0.7.5 forced OSC 52 for every WSL session. In Hyper under WSL, the OSC 52 sequence was not applied to the host clipboard, leaving the clipboard stale after selecting text in a pane. The native WSL clipboard bridge works correctly.
Testing