You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Desktop] File attachment button not working on macOS 26.3 #14669
When clicking the file attachment button (paperclip icon) in OpenCode Desktop, nothing happens. No file dialog appears, no error message is shown. The button click is registered but the native macOS file picker does not open.
Environment
macOS Version: 26.3 (Build 25D125)
OpenCode Desktop Version: 1.2.10
Hardware: Mac mini M4
Architecture: ARM64 (Apple Silicon)
Investigation
Permissions: All TCC permissions are granted (Desktop, Documents, Downloads folders)
App Signature: Valid Developer ID signature, notarized
Logs: No relevant error messages in ~/Library/Logs/ai.opencode.desktop/
Process: App runs normally otherwise
Possible Cause
This may be a compatibility issue between Tauri's dialog plugin and macOS 26.3 (Tahoe). The native file picker API may have changed or require additional entitlements on the latest macOS version.
Workaround
Currently, users can:
Provide file paths directly to the AI agent (agent reads via tools)
Drag and drop files (if supported)
Paste file contents directly
Plugins
oh-my-opencode, opencode-supermemory
OpenCode version
1.2.10
Steps to reproduce
Open OpenCode Desktop app on macOS 26.3
Start a new chat session
Click the paperclip/attachment button in the chat input area
Observe that nothing happens - no file dialog appears
No error message is shown in the UI
No relevant error logged in ~/Library/Logs/ai.opencode.desktop/
git clone https://github.com/Jones-BIGBIG/opencode-read-file
cd opencode-read-file && bun install && bun run build
I can reproduce a related issue on macOS in the latest OpenCode Desktop release: Cmd+U does open the native file picker dialog, but after selecting a file and confirming, the file is not actually attached to the prompt.
So on my setup the problem is slightly different from the original report:
clicking the attach button may fail to open the picker
but Cmd+U does open the picker
the selected file is then not added to the chat
Drag and drop still works as a workaround.
P.S. Sometimes it works, sometimes it doesnt. Feels like it works in existing sessions but not new, empty ones.
Activity
Jones-BIGBIG commentedon Feb 24, 2026
🎯 临时解决方案已发布!
受到这个 Issue 影响,我开发了一个替代方案插件来解决这个问题!
📦 opencode-read-file
一句话:用命令代替点击,体验更流畅!
✨ 核心优势
🚀 5秒上手
然后在
opencode.json中添加插件路径即可。📁 支持 30+ 文件格式
Tier 1(完全支持):
.txt.md.json.yaml.csv.js.ts.py.go.java.rs等Tier 2(支持读取):
.pdf.html.xml.log.shTier 3(开发中):
.xmind.docx.xlsx图片文件🔗 项目地址
👉 https://github.com/Jones-BIGBIG/opencode-read-file
欢迎 Star ⭐ 和 PR!有任何问题可以在 Issues 中反馈。
这是社区驱动的临时方案,期待官方修复原生附件功能。
LeonMueller-OneAndOnly commentedon Apr 1, 2026
I can reproduce a related issue on macOS in the latest OpenCode Desktop release:
Cmd+Udoes open the native file picker dialog, but after selecting a file and confirming, the file is not actually attached to the prompt.So on my setup the problem is slightly different from the original report:
Cmd+Udoes open the pickerDrag and drop still works as a workaround.
P.S. Sometimes it works, sometimes it doesnt. Feels like it works in existing sessions but not new, empty ones.
github-actions commentedon Jul 4, 2026
To stay organized issues are automatically closed after 60 days of no activity. If the issue is still relevant please open a new one.