Skip to content

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

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

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