OpenTUI: Opening a chat with a file path breaks OpenCode #2460

Closed
opened 2026-02-16 17:35:44 -05:00 by yindo · 4 comments
Owner

Originally created by @Sewer56 on GitHub (Nov 1, 2025).

Originally assigned to: @thdxr on GitHub.

Description

Image Image

OpenCode version

1.0.10

Steps to reproduce

Paste a file path into the text box.
After sending the message, nothing happens.

Things work fine if the file path is prepended with some text, but if you paste in only a file path, opencode will break.

Originally created by @Sewer56 on GitHub (Nov 1, 2025). Originally assigned to: @thdxr on GitHub. ### Description <img width="1072" height="531" alt="Image" src="https://github.com/user-attachments/assets/c4ad76ac-fd0e-4887-9d56-76689b45aa8b" /> <img width="1128" height="454" alt="Image" src="https://github.com/user-attachments/assets/331e6419-1f73-44f2-bfec-e728351b1f21" /> ### OpenCode version 1.0.10 ### Steps to reproduce Paste a file path into the text box. After sending the message, nothing happens. Things work fine if the file path is prepended with some text, but if you paste in only a file path, opencode will break.
yindo added the opentuibug labels 2026-02-16 17:35:44 -05:00
yindo closed this issue 2026-02-16 17:35:44 -05:00
Author
Owner

@github-actions[bot] commented on GitHub (Nov 1, 2025):

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

  • #3624: Similar file path handling issues in OpenTUI where pasting file paths doesn't work properly and affects keyboard navigation

Feel free to ignore if none of these address your specific case.

@github-actions[bot] commented on GitHub (Nov 1, 2025): This issue might be a duplicate of existing issues. Please check: - #3624: Similar file path handling issues in OpenTUI where pasting file paths doesn't work properly and affects keyboard navigation Feel free to ignore if none of these address your specific case.
Author
Owner

@thdxr commented on GitHub (Nov 4, 2025):

this is because we're interpreting it as a slash command, will fix

@thdxr commented on GitHub (Nov 4, 2025): this is because we're interpreting it as a slash command, will fix
Author
Owner

@thdxr commented on GitHub (Nov 11, 2025):

should be fixed now

@thdxr commented on GitHub (Nov 11, 2025): should be fixed now
Author
Owner

@Armadillidiid commented on GitHub (Nov 18, 2025):

should be fixed now

Can the same be done for paths referenced with @ too? Currently, it detects as a normal string.

@Armadillidiid commented on GitHub (Nov 18, 2025): > should be fixed now Can the same be done for paths referenced with @ too? Currently, it detects as a normal string.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#2460