[PR #9717] feat(tui): show warning if model doesn't support image input #13205

Open
opened 2026-02-16 18:18:04 -05:00 by yindo · 0 comments
Owner

Original Pull Request: https://github.com/anomalyco/opencode/pull/9717

State: open
Merged: No


Fixes #5359

What does this PR do?

  • Shows a toast warning w/ message if the user tries to paste an image as input to a model that doesn't have image capabilities
  • Doesn't add the image to the prompt (or create an extmark)
  • Adds the model's input capabilities to the local.model.parsed() accessor for easy access

How did you verify your code works?

https://github.com/user-attachments/assets/79828fde-0a7f-4451-a9ce-22642a4b6681

**Original Pull Request:** https://github.com/anomalyco/opencode/pull/9717 **State:** open **Merged:** No --- Fixes #5359 ### What does this PR do? - Shows a toast warning w/ message if the user tries to paste an image as input to a model that doesn't have image capabilities - Doesn't add the image to the prompt (or create an extmark) - Adds the model's input capabilities to the `local.model.parsed()` accessor for easy access ### How did you verify your code works? https://github.com/user-attachments/assets/79828fde-0a7f-4451-a9ce-22642a4b6681
yindo added the pull-request label 2026-02-16 18:18:04 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#13205