Skip to content

desktop: attaching a file fails with "Desktop IPC handler failed" #50177

Description

@r4ty94dh84-lang

Summary

Attaching a file to the composer in OpenCode Desktop fails with the error "La demande a échoué / Desktop IPC handler failed" (request failed, Desktop IPC handler failed). The files themselves are readable on disk; the failure is in the app's IPC attachment flow.

Environment

  • opencode version: Desktop 2.0.11 (bundled CLI v2.0.11)
  • OS: macOS, Darwin 27.0.0, arm64 (Apple Silicon M1)
  • Terminal: N/A (Desktop app)
  • Shell: /bin/bash
  • Install/channel: stable
  • Active plugins: none

Reproduction

  1. Open OpenCode Desktop on macOS
  2. Click the attach (paperclip) button in the composer and select a file (observed with a PNG screenshot on the Desktop)
  3. The request fails with "Desktop IPC handler failed"

Expected Behavior

The selected file is attached to the message.

Actual Behavior

An error toast appears: "La demande a échoué / Desktop IPC handler failed". No file is attached. Reproduces consistently.

Additional Context

Activity

  1. xiaoliwe commented on Sep 21, 2026

    @xiaoliwe

    same problem.

  2. Hona commented on Sep 22, 2026

    @Hona
    Member

    Fixed in #50599 (merged to v2 as 8e62ad7). The renderer sent optional picker fields as undefined, which the main process's JSON schema codec rejected before the handler ran. The fix lands in the next desktop release after 2.0.12.

    Workaround until then: drag and drop or paste from the clipboard.

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

Metadata

Metadata

Assignees

No one assigned

    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