TUI blocks path input starting with / due to command matching #8432

Open
opened 2026-02-16 18:09:57 -05:00 by yindo · 3 comments
Owner

Originally created by @hiromesh on GitHub (Feb 3, 2026).

Originally assigned to: @rekram1-node on GitHub.

Description

Description:
When typing a path starting with / (e.g., /home/user/file.txt) in the TUI input, it triggers slash command autocomplete. Since paths don't match built-in commands (like /help, /models), it shows "No matching items" and prevents pressing Enter to submit the input.

Impact:
Users cannot input any absolute paths starting with / in the TUI, severely affecting normal usage.

Expected Behavior:

  • Allow users to submit input when no matching commands are found
  • Or avoid triggering command autocomplete when input appears to be a path format (e.g., /home/...)

Plugins

No response

OpenCode version

1.1.49

Steps to reproduce

  1. Type /home/user/file.txt in TUI input
  2. Shows "No matching items"
  3. Press Enter - input is blocked, cannot submit

Screenshot and/or share link

No response

Operating System

macos 26

Terminal

iterm2

Originally created by @hiromesh on GitHub (Feb 3, 2026). Originally assigned to: @rekram1-node on GitHub. ### Description **Description:** When typing a path starting with `/` (e.g., `/home/user/file.txt`) in the TUI input, it triggers slash command autocomplete. Since paths don't match built-in commands (like `/help`, `/models`), it shows "No matching items" and prevents pressing Enter to submit the input. **Impact:** Users cannot input any absolute paths starting with `/` in the TUI, severely affecting normal usage. **Expected Behavior:** - Allow users to submit input when no matching commands are found - Or avoid triggering command autocomplete when input appears to be a path format (e.g., `/home/...`) ### Plugins _No response_ ### OpenCode version 1.1.49 ### Steps to reproduce 1. Type `/home/user/file.txt` in TUI input 2. Shows "No matching items" 3. Press Enter - input is blocked, cannot submit ### Screenshot and/or share link _No response_ ### Operating System macos 26 ### Terminal iterm2
yindo added the opentuibug labels 2026-02-16 18:09:57 -05:00
Author
Owner

@github-actions[bot] commented on GitHub (Feb 3, 2026):

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

  • #8224: Enter key doesn't submit prompt when @ autocomplete has no matches (similar autocomplete blocking Enter behavior)
  • #3910: Pasting file paths with line references causes error and disables Enter button (related input validation blocking)

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

@github-actions[bot] commented on GitHub (Feb 3, 2026): This issue might be a duplicate of existing issues. Please check: - #8224: Enter key doesn't submit prompt when @ autocomplete has no matches (similar autocomplete blocking Enter behavior) - #3910: Pasting file paths with line references causes error and disables Enter button (related input validation blocking) Feel free to ignore if none of these address your specific case.
Author
Owner

@rekram1-node commented on GitHub (Feb 3, 2026):

type a space and then youll be able to submit

@rekram1-node commented on GitHub (Feb 3, 2026): type a space and then youll be able to submit
Author
Owner

@hiromesh commented on GitHub (Feb 3, 2026):

type a space and then youll be able to submit

Thanks! That works but isn't very intuitive 🤔. I've submitted a PR to handle this case automatically #11970

@hiromesh commented on GitHub (Feb 3, 2026): > type a space and then youll be able to submit Thanks! That works but isn't very intuitive 🤔. I've submitted a PR to handle this case automatically #11970
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#8432