Skip to content

macOS bun-compiled binary doesn't bundle @mariozechner/clipboard optional dependency #4307

@xcfw

Description

@xcfw

What happened?

I install pi via (mise)[https://github.com/jdx/mise] on macos. macos bun-compiled binary doesn't bundle (clipboard)[https://github.com/badlogic/clipboard] optional dep => ctrl+v image paste broken.
macOS path has no shell fallback for image clipboard (only the native module). Linux has wl-paste/xclip fallbacks; macOS doesn't so /copy - works as expected.

Steps to reproduce

  1. install pi via bun-compiled single binary on macos and run
  2. ^v - when image is in clipboard
  3. require throws → clipboard = null (silently caught) → hasImage() never reached → C-v silently does nothing

Expected behavior

Build script needs explicit --external exclusion handled by sidecar .node, or include via bun build --compile --asset for the platform-specific .node file.

Version

0.73.0

Metadata

Metadata

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions