The open source coding agent.
TypeScript
fix: always fall back to native clipboard after OSC52 (#11994)
MartinWie82dd4b69080a
diff --git a/packages/opencode/src/cli/cmd/tui/util/clipboard.ts b/packages/opencode/src/cli/cmd/tui/util/clipboard.tsindex 5c27a26cd03..ad1f86e3070 100644--- a/packages/opencode/src/cli/cmd/tui/util/clipboard.ts+++ b/packages/opencode/src/cli/cmd/tui/util/clipboard.ts@@ -148,8 +148,9 @@ export namespace Clipboard {export async function copy(text: string): Promise<void> {const renderer = rendererRef.currentif (renderer) {- const copied = renderer.copyToClipboardOSC52(text)- if (copied) return+ // Try OSC52 but don't early return - always fall back to native method+ // OSC52 may report success but not actually work in all terminals+ renderer.copyToClipboardOSC52(text)}await getCopyMethod()(text)}