GeezerVison is showing github.com — [FEATURE]: Support drag-and-drop / paste of images in the question tool UI · Issue #31791 · anomalyco/opencode
[FEATURE]: Support drag-and-drop / paste of images in the question tool UI #31791DescriptionDescription
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:
Question tool UI issues (layout/behavior, not image attach):
Suggested implementation notes
- Reuse existing prompt attachment / dropzone infrastructure where possible (
prompt.dropzone.label i18n 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
question tool
- 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) Reacted by The Architect and Leo Barreiro Activitygithub-actions commented on Jun 10, 2026 This issue might be a duplicate of existing issues. Please check:
Please 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 commented on Jun 10, 2026 I hope this gets implemented soon rekram1-node commented on 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 commented on Jun 23, 2026 Reopening – this was incorrectly closed by automated question-issue cleanup. Sorry for the noise. barreiroleo commented on Aug 9, 2026 +1 on this, it would reduce a lot of friction during ui grilling sessions kitlangton commented on 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.Answer values 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 commented on 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.
MetadataMetadataDevelopmentNo branches or pull requestsIssue actions
|