Repository navigation
[FEATURE]: Support drag-and-drop / paste of images in the question tool UI #31791
Description
Description
When the agent invokes the question tool (MCQ / structured question UI), there is currently no way to attach images or screenshots while answering. Drag-and-drop and clipboard paste work (or are planned) for the main chat prompt, but the question interface appears to be text/selection-only.
This is a common workflow gap: the agent asks a clarifying question, and the user wants to respond with a screenshot (e.g. "which layout do you mean?" → drop a UI screenshot) without dismissing the question modal or switching back to the main prompt.
Expected behavior
While the question tool UI is open, users should be able to:
- Drag and drop image files (PNG, JPG, GIF, WebP) into the question interface
- Paste screenshots from the clipboard (Cmd/Ctrl+V)
- See attached images as thumbnails/previews before submitting answers
- Have attached images included in the question response sent back to the agent
Actual behavior
- Dropping images onto the question UI does nothing (no dropzone, no attachment)
- Pasting a screenshot while focused on the question UI does not attach it
- Users must dismiss or work around the question flow and attach images via the main prompt instead
Motivation / use cases
- Agent asks "Which error screen are you seeing?" → user drops a screenshot inline
- Agent asks "Which of these UI variants should we match?" → user attaches reference images
- Debugging sessions where visual context is faster than describing UI state in text
Related issues
These cover image attach for the main prompt, but not the question tool UI specifically:
- Feature request: Paste to attach image #906 — Feature request: Paste to attach image
- [FEATURE] Ctrl+V paste images from clipboard into chat (Windows desktop app) #26111 — Windows desktop Ctrl+V + drag-drop
- [Bug] Images silently discarded with local Ollama vision models + TUI lacks drag-and-drop #26780 — TUI drag-and-drop support
- [FEATURE]: Add attach button in terminal TUI for images/screenshots #20169 — TUI attach button when drag-drop fails
- [FEATURE]: Desktop should accept more dropped file types in prompt input #18143 — Desktop dropped files in prompt
Question tool UI issues (layout/behavior, not image attach):
- [Bug]: Question Tool popup doesn't appear casually, and opencode auto-selects an option then continue outputting or editing #31383 — Question Tool popup doesn't appear casually
- Long question tool makes opencode unusable #11367 — Long question tool makes opencode unusable
- [FEATURE]: Generic UI Intent Channel for cross-client plugin-driven UX #6330 — Generic UI Intent Channel (broader cross-client question UI architecture)
Suggested implementation notes
- Reuse existing prompt attachment / dropzone infrastructure where possible (
prompt.dropzone.labeli18n strings already exist for desktop/web) - Extend the question tool response schema to support optional image attachments per answer or as freeform context
- Ensure parity across Desktop, Web, and TUI clients (or document platform limitations)
OpenCode version
Latest (observed June 2026)
Steps to reproduce
- Start a session where the agent invokes the
questiontool - When the question UI appears, try dragging a PNG/JPG screenshot onto it
- Alternatively, copy a screenshot to clipboard and press Cmd/Ctrl+V while the question UI is focused
- Observe that no image is attached and the answer can only be text/selection-based
Operating System
macOS (likely affects Desktop/Web/TUI generally)
Terminal
N/A (Desktop app / question modal)
Activity
github-actions commentedon Jun 10, 2026
This issue might be a duplicate of existing issues. Please check:
questionstool answer #24199: [FEATURE]: Paste images into built-inquestionstool answer — covers the same clipboard paste use case for the question tool UI specificallyPlease review the linked issue and consider whether your request adds anything beyond what is already tracked there. If so, please clarify the distinction in your issue.
GraveEaterMadison commentedon Jun 10, 2026
I hope this gets implemented soon
rekram1-node commentedon Jun 23, 2026
Automated: closing question issues.
GitHub Issues are for bug reports and feature requests only — questions / support are no longer tracked here.
If this is a bug or feature request, please open a new issue with the appropriate template.
rekram1-node commentedon Jun 23, 2026
Reopening – this was incorrectly closed by automated question-issue cleanup. Sorry for the noise.
barreiroleo commentedon Aug 9, 2026
+1 on this, it would reduce a lot of friction during ui grilling sessions
kitlangton commentedon Aug 14, 2026
I still want this for the V2 form flow. During UI review and grilling, a structured question often needs a screenshot as the custom response. Without attachment support, the practical escape hatch is to cancel the form and send a free-form prompt, which loses the structured flow and any in-progress answers.
If the architecture permits it, I would prefer attachments to remain separate from scalar
Form.Answervalues and be associated with the relevant field, rather than encoding an image or temporary path as the answer string. This can be follow-up work and does not need to block the current question-form UX changes.github-actions commentedon Oct 14, 2026
To stay organized issues are automatically closed after 60 days of no activity. If the issue is still relevant please open a new one.