bug: unable to paste filenames from MacOS finder into opencode #4795

Open
opened 2026-02-16 17:45:28 -05:00 by yindo · 2 comments
Owner

Originally created by @zeke on GitHub (Jan 11, 2026).

Originally assigned to: @kommander on GitHub.

I have noticed that when I copy a filename in MacOS finder, then attempt to paste it into opencode, nothing is pasted.

$ opencode --version
1.0.220
$ uname -a
Darwin ezekiels-mbp.lan 25.1.0 Darwin Kernel Version 25.1.0: Mon Oct 20 19:34:03 PDT 2025; root:xnu-12377.41.6~2/RELEASE_ARM64_T8142 arm64
Originally created by @zeke on GitHub (Jan 11, 2026). Originally assigned to: @kommander on GitHub. I have noticed that when I copy a filename in MacOS finder, then attempt to paste it into opencode, nothing is pasted. ``` $ opencode --version 1.0.220 ``` ``` $ uname -a Darwin ezekiels-mbp.lan 25.1.0 Darwin Kernel Version 25.1.0: Mon Oct 20 19:34:03 PDT 2025; root:xnu-12377.41.6~2/RELEASE_ARM64_T8142 arm64 ```
yindo added the opentui label 2026-02-16 17:45:28 -05:00
Author
Owner

@github-actions[bot] commented on GitHub (Jan 11, 2026):

This issue might be a duplicate of existing issues. Please check:

  • #4004: On macOS, copying an image file from Finder results in pasting a generic image icon, instead of the image data
  • #6560: Paste into PowerShell OpenCode instance not working
  • #7341: Clipboard image pasting not supported with GLM-4.7 model + ZAI MCP in OpenCode
  • #7297: CLI input issues on WSL Ubuntu: no multiline input and copy/paste not working
  • #5046: Can't copy text from opencode through mouse selection in Windows Terminal

These issues all involve clipboard/paste functionality problems in the TUI. Your specific case with Finder file name paste might be related to how the clipboard content is being parsed or transmitted.

Feel free to ignore if none of these address your specific case.

@github-actions[bot] commented on GitHub (Jan 11, 2026): This issue might be a duplicate of existing issues. Please check: - #4004: On macOS, copying an image file from Finder results in pasting a generic image icon, instead of the image data - #6560: Paste into PowerShell OpenCode instance not working - #7341: Clipboard image pasting not supported with GLM-4.7 model + ZAI MCP in OpenCode - #7297: CLI input issues on WSL Ubuntu: no multiline input and copy/paste not working - #5046: Can't copy text from opencode through mouse selection in Windows Terminal These issues all involve clipboard/paste functionality problems in the TUI. Your specific case with Finder file name paste might be related to how the clipboard content is being parsed or transmitted. Feel free to ignore if none of these address your specific case.
Author
Owner

@Philogy commented on GitHub (Jan 27, 2026):

having this issue as well, does not seem to be a duplicate of the above.

Details: opencode version 1.1.30, MacOS

Can paste flamechart_UniVMTest_test_simpleV3Swap, cannot paste flamechart_UniVMTest_test_simpleV3Swap.svg

@Philogy commented on GitHub (Jan 27, 2026): having this issue as well, does not seem to be a duplicate of the above. Details: opencode version 1.1.30, MacOS Can paste `flamechart_UniVMTest_test_simpleV3Swap`, cannot paste `flamechart_UniVMTest_test_simpleV3Swap.svg`
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#4795