Skip to content

[Desktop] File attachment button not working on macOS 26.3 #14669

Closed as not planned

Description

@Jones-BIGBIG

Description

Description

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

  1. Permissions: All TCC permissions are granted (Desktop, Documents, Downloads folders)
  2. App Signature: Valid Developer ID signature, notarized
  3. Logs: No relevant error messages in ~/Library/Logs/ai.opencode.desktop/
  4. 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:

  1. Provide file paths directly to the AI agent (agent reads via tools)
  2. Drag and drop files (if supported)
  3. Paste file contents directly

Plugins

oh-my-opencode, opencode-supermemory

OpenCode version

1.2.10

Steps to reproduce

  1. Open OpenCode Desktop app on macOS 26.3
  2. Start a new chat session
  3. Click the paperclip/attachment button in the chat input area
  4. Observe that nothing happens - no file dialog appears
  5. No error message is shown in the UI
  6. No relevant error logged in ~/Library/Logs/ai.opencode.desktop/

Screenshot and/or share link

No response

Operating System

macOS 26.3 (Build 25D125)

Terminal

N/A (Desktop app)

Activity

  1. Jones-BIGBIG commented on Feb 24, 2026

    @Jones-BIGBIG
    Author

    🎯 临时解决方案已发布!

    受到这个 Issue 影响,我开发了一个替代方案插件来解决这个问题!

    📦 opencode-read-file

    一句话:用命令代替点击,体验更流畅!

    用户:读取 /Users/xxx/Desktop/data.json
    Agent:[自动读取并返回格式化内容]
    

    ✨ 核心优势

    对比项 原生附件按钮 opencode-read-file
    操作步骤 点击→选择文件→等待 直接说路径,秒回
    支持格式 常见格式 30+ 种
    JSON格式化 ❌ ✅ 自动美化
    CSV表格化 ❌ ✅ Markdown表格
    代码高亮 ❌ ✅ 语法高亮
    macOS 26.3 ❌ 失效 ✅ 完美兼容

    🚀 5秒上手

    git clone https://github.com/Jones-BIGBIG/opencode-read-file
    cd opencode-read-file && bun install && bun run build

    然后在 opencode.json 中添加插件路径即可。

    📁 支持 30+ 文件格式

    Tier 1(完全支持):.txt .md .json .yaml .csv .js .ts .py .go .java .rs 等

    Tier 2(支持读取):.pdf .html .xml .log .sh

    Tier 3(开发中):.xmind .docx .xlsx 图片文件

    🔗 项目地址

    👉 https://github.com/Jones-BIGBIG/opencode-read-file

    欢迎 Star ⭐ 和 PR!有任何问题可以在 Issues 中反馈。


    这是社区驱动的临时方案,期待官方修复原生附件功能。

  2. LeonMueller-OneAndOnly commented on Apr 1, 2026

    @LeonMueller-OneAndOnly
    Contributor

    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.

  3. removed
    bugSomething isn't working
    webRelates to opencode on web / desktop
    on May 3, 2026
  4. github-actions commented on Jul 4, 2026

    @github-actions
    Contributor

    To stay organized issues are automatically closed after 60 days of no activity. If the issue is still relevant please open a new one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions