Skip to content

Commit bf00a92

Browse files
MartinWieyu
authored andcommitted
fix: always fall back to native clipboard after OSC52 (anomalyco#11994)
1 parent d11ff2c commit bf00a92

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

packages/opencode/src/cli/cmd/tui/util/clipboard.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -148,8 +148,9 @@ export namespace Clipboard {
148148
export async function copy(text: string): Promise<void> {
149149
const renderer = rendererRef.current
150150
if (renderer) {
151-
const copied = renderer.copyToClipboardOSC52(text)
152-
if (copied) return
151+
// Try OSC52 but don't early return - always fall back to native method
152+
// OSC52 may report success but not actually work in all terminals
153+
renderer.copyToClipboardOSC52(text)
153154
}
154155
await getCopyMethod()(text)
155156
}

0 commit comments

Comments
 (0)