Skip to content

Conversation

@neriousy
Copy link
Contributor

What does this PR do?

Lets you CMD/CTRL+V to paste images.
Mimic's TUI behaviour

How did you verify your code works?

Paste images to prompt input

@github-actions
Copy link
Contributor

Thanks for your contribution!

This PR doesn't have a linked issue. All PRs must reference an existing issue.

Please:

  1. Open an issue describing the bug/feature (if one doesn't exist)
  2. Add Fixes #<number> or Closes #<number> to this PR description

See CONTRIBUTING.md for details.

@github-actions
Copy link
Contributor

The following comment was made by an LLM, it may be inaccurate:

I found potential related PRs:

  1. feat: auto-compress clipboard images to avoid API size limits (PR feat: auto-compress clipboard images to avoid API size limits #6455)

    • Related to clipboard image handling - might be relevant for image paste functionality
  2. fix(tui): support clipboard image paste with proper filename on WSL2 (PR fix(tui): support clipboard image paste with proper filename on WSL2 #8209)

    • Directly related to clipboard image paste functionality, similar to the current PR's paste images feature

These PRs address clipboard/image pasting functionality, which overlaps with the current PR's goal of enabling CMD/CTRL+V to paste images. PR #8209 appears particularly relevant as it already implements clipboard image paste support (though potentially for TUI on WSL2 specifically).

@neriousy neriousy marked this pull request as draft January 19, 2026 17:13
…sions

The keyboard handler was intercepting Ctrl+V and attempting to use
navigator.clipboard.read() which requires explicit browser permissions.
When denied (the default in web browsers), paste would fail silently.

Removed the keyboard handler to let the native paste event work normally
through the existing handlePaste handler.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant