GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

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 #31791

New issue
Copy link
New issue
Copy link
Closed as not planned
Closed as not planned
[FEATURE]: Support drag-and-drop / paste of images in the question tool UI#31791
Copy link
Assignees
Hona

Description

@dl-alexandre
dl-alexandre
opened on Jun 10, 2026
Issue body actions

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

  1. Agent asks "Which error screen are you seeing?" → user drops a screenshot inline
  2. Agent asks "Which of these UI variants should we match?" → user attaches reference images
  3. 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.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

  1. Start a session where the agent invokes the question tool
  2. When the question UI appears, try dragging a PNG/JPG screenshot onto it
  3. Alternatively, copy a screenshot to clipboard and press Cmd/Ctrl+V while the question UI is focused
  4. 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

Activity

  1. github-actions
    assigned
    Hona
    on Jun 10, 2026
  2. github-actions commented on Jun 10, 2026

    @github-actions
    github-actionsBot
    on Jun 10, 2026 – with GitHub Actions
    Contributor
    More actions

    This issue might be a duplicate of existing issues. Please check:

    • [FEATURE]: Paste images into built-in questions tool answer #24199: [FEATURE]: Paste images into built-in questions tool answer — covers the same clipboard paste use case for the question tool UI specifically

    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.

  3. GraveEaterMadison commented on Jun 10, 2026

    @GraveEaterMadison
    GraveEaterMadison
    on Jun 10, 2026
    More actions

    I hope this gets implemented soon

  4. rekram1-node commented on Jun 23, 2026

    @rekram1-node
    rekram1-node
    on Jun 23, 2026
    Member
    More actions

    Automated: closing question issues.

    GitHub Issues are for bug reports and feature requests only — questions / support are no longer tracked here.

    • For help & questions: https://discord.gg/opencode
    • Billing issues with Opencode Go / Zen: [email protected]

    If this is a bug or feature request, please open a new issue with the appropriate template.

  5. rekram1-node
    closed this as not plannedon Jun 23, 2026
  6. rekram1-node commented on Jun 23, 2026

    @rekram1-node
    rekram1-node
    on Jun 23, 2026
    Member
    More actions

    Reopening – this was incorrectly closed by automated question-issue cleanup. Sorry for the noise.

  7. rekram1-node
    reopened this on Jun 23, 2026
  8. barreiroleo commented on Aug 9, 2026

    @barreiroleo
    barreiroleo
    on Aug 9, 2026
    More actions

    +1 on this, it would reduce a lot of friction during ui grilling sessions

  9. kitlangton commented on Aug 14, 2026

    @kitlangton
    kitlangton
    on Aug 14, 2026
    Contributor
    More actions

    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.

    Reacted by Leo Barreiro
  10. github-actions commented on Oct 14, 2026

    @github-actions
    github-actionsBot
    on Oct 14, 2026 – with GitHub Actions
    Contributor
    More actions

    To stay organized issues are automatically closed after 60 days of no activity. If the issue is still relevant please open a new one.

  11. github-actions
    closed this as not plannedon Oct 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @Hona
    Hona

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    You are visitor 01402775 — GeezerVison does not store the pages you look up.
    Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.