Skip to content

Single-token slash commands are swallowed when no local TUI slash matches #25932

Closed as not planned

Description

@G17hao

Description

After adding direct execution for local TUI slash commands, a standalone slash command like /review can be intercepted before the normal command path runs.

If no local TUI slash matches, the prompt input gets cleared and the slash command is lost instead of being handled normally.

Plugins

A TUI plugin that registers a local slash command

OpenCode version

1.14.39

Steps to reproduce

  1. Run OpenCode with any TUI plugin that registers a local slash command.
  2. Type a standalone slash command that is not one of those local slash commands, for example /review.
  3. Press Enter.
  4. Notice that the prompt is cleared instead of falling through to the normal slash command handling.

Screenshot and/or share link

No response

Operating System

macOS

Terminal

zsh

Activity

  1. github-actions commented on Jul 5, 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