Skip to content

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

Closed

Description

@hiromesh

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

Activity

  1. added
    opentuiThis relates to changes in v1.0, now that opencode uses opentui
    on Feb 3, 2026
  2. github-actions commented on Feb 3, 2026

    @github-actions
    Contributor

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

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

  3. rekram1-node commented on Feb 3, 2026

    @rekram1-node
    Collaborator

    type a space and then youll be able to submit

  4. hiromesh commented on Feb 3, 2026

    @hiromesh
    Author

    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

  5. github-actions commented on Apr 5, 2026

    @github-actions
    Contributor

    To stay organized issues are automatically closed after 90 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

bugSomething isn't workingopentuiThis relates to changes in v1.0, now that opencode uses opentui

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions