Skip to content

Can not paste image path as text #19892

Closed as not planned
Closed as not planned

Description

@wusland

Description

When paste the path of an image into the TUI, since the model does not support images and cannot obtain the actual path of the image, I need to paste the image path as plain text.
However, a valid path is automatically parsed into the format [image1] instead of plain text, and an invalid path (such as a non-existent xxx.png) cannot be pasted into TUI.

Plugins

cc-safety-net, @tarquinen/opencode-dcp@latest

OpenCode version

1.3.5

Steps to reproduce

  1. paste an existent image path.
  2. paste a not existent or invalid image path (such as "xxx.png" or any text ends with ".png" or ".jpg")

Screenshot and/or share link

No response

Operating System

windows, linux

Terminal

windows terminal, git bash

Activity

  1. added
    coreAnything pertaining to core functionality of the application (opencode server stuff)
    on Mar 29, 2026
  2. github-actions commented on Mar 29, 2026

    @github-actions
    Contributor

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

    If your issue is the same as #11148, please add a comment there instead so the reports can be consolidated.

  3. removed
    bugSomething isn't working
    coreAnything pertaining to core functionality of the application (opencode server stuff)
    on May 3, 2026
  4. agung2001 commented on Jun 23, 2026

    @agung2001

    I also have the same issue, hope this will be fixed soon 🔜

  5. flben233 commented on Jun 23, 2026

    @flben233

    It's a severe issue that significantly affects the user experience.

  6. daiark commented on Jul 1, 2026

    @daiark

    Same issue here

  7. oleksandr-kupenko commented on Jul 3, 2026

    @oleksandr-kupenko

    I agree. That’s a major issue, since I can't pass the image file path to a non-multimodal model.

  8. thanh-abaii commented on Aug 14, 2026

    @thanh-abaii

    Same issue here.

    Environment: Windows 11, opencode 1.18.18 (VS Code extension + Windows Terminal).
    I use "Copy as path" then paste into the prompt, and it's immediately converted to [image 1] instead of the text path. My model doesn't support image input, so I have no way to reference the file path as text.

    Please add an option to paste a file path as plain text.

  9. morningD commented on Aug 24, 2026

    @morningD

    +1 — Same here: pasting a plain-text file path (e.g. copied via ⌥⌘C in Finder) is force-converted to an attachment. When the model doesn't support that file type (e.g. PDF), the paste is rejected and the agent never sees the path at all. Please provide a way to paste paths as plain text (or skip auto-attach when the model can't ingest the type). Still reproducible on v1.18.21, macOS + Ghostty.

  10. thdxr commented on Oct 11, 2026

    @thdxr
    Member

    Thanks for the report! OpenCode 2.0 is now out and development is focused on V2, so we're closing issues filed against OpenCode 1. Please upgrade (opencode upgrade --major, details: https://anoma.ly/notes/opencode-2-0), and if this is still relevant on 2.0, reopen this issue or open a new one with your 2.0 version.

    — from 𝕺𝖕𝖊𝖓𝕮𝖔𝖉𝖊

  11. Lao-Ax commented on Oct 15, 2026

    @Lao-Ax

    Yep, it is still here even on 2.0.29

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

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