Skip to content

Drag-dropped images lose absolute file path, preventing tools from accessing them #17488

Closed as not planned

Description

@fenlyin0420

Description

When an image is drag-dropped or pasted as a file path into the TUI, the absolute file path is not preserved. The source.path field ends up containing just the filename instead of the full path.

Plugins

oh-my-opencode

OpenCode version

1.2.26

Steps to reproduce

  1. Run bun dev
  2. Drag an image file into the terminal (or paste a file path)
  3. Observe that source.path only contains the filename, not the absolute path

Screenshot and/or share link

No response

Operating System

ubuntu24.04

Terminal

kitty

Activity

  1. added
    coreAnything pertaining to core functionality of the application (opencode server stuff)
    on Mar 14, 2026
  2. kvn1351 commented on Mar 15, 2026

    @kvn1351

    Yes, I have the same issue. I don't get why they did it this way.

  3. YuLaiZ commented on Mar 24, 2026

    @YuLaiZ

    I'm experiencing the same issue on opencode v1.3.0 (macOS, Terminal). When I paste a full file path like /Users/yulaiz/Desktop/Xnip2026-03-23_11-30-23.jpg, it gets automatically converted to an image upload with only the filename preserved, losing the absolute path. This makes it impossible for tools to access the file. Please prioritize fixing this bug.

  4. removed
    bugSomething isn't working
    coreAnything pertaining to core functionality of the application (opencode server stuff)
    on May 3, 2026
  5. github-actions commented on Jul 7, 2026

    @github-actions
    Contributor

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

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