Skip to content

fix: macOS cmd+v image paste in TUI #22194

@hernandezsanti

Description

@hernandezsanti

Summary

On macOS, pasting images into the TUI prompt with cmd+v does not work reliably.

Repro

  • Platform: macOS
  • Terminals tested:
    • Ghostty
    • iTerm2
    • Terminal.app

Steps:

  1. Copy an image to the clipboard
  2. Focus the OpenCode TUI prompt
  3. Press cmd+v

Expected

The image should attach to the prompt.

Actual

cmd+v does not consistently attach the image. In my testing, behavior differs by terminal.

Notes

I have a local prototype that improves cmd+v image paste handling on macOS.

Metadata

Metadata

Assignees

Labels

opentuiThis relates to changes in v1.0, now that opencode uses opentui

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