Skip to content

/exit and /quit slash commands missing in autocomplete (v1.14.42) #26549

Description

@SquirrelRat

Description

Slash commands /exit, /quit, and /q no longer appear in the autocomplete dropdown when typing /.

  • They do appear in the command palette (Ctrl+P)
  • They do not appear when typing / in the prompt

The command app.exit with slash: { name: "exit", aliases: ["quit", "q"] } is registered in app.tsx, and shows up in Ctrl+P as "Exit the app", but typing /exit or /quit in the prompt does not trigger autocomplete.

Version

OpenCode 1.14.42

Steps to reproduce

  1. Open OpenCode
  2. Type / in the prompt
  3. Expected: /exit appears in the autocomplete dropdown (along with other slash commands)
  4. Actual: No /exit, /quit, or /q in the dropdown

Workaround

  • Ctrl+P → type "exit" → select "Exit the app" → works
  • Ctrl+C / Ctrl+D → exit the app

Suspected cause

The v1.14.42 changelog mentions:

Simplified TUI keybinding config into a flat keybind format.

This refactor likely broke the slash command registration in the autocomplete. The app.exit command has the correct slash metadata in app.tsx, but the autocomplete's commands() function (which reads from command.slashes()) may no longer be picking it up correctly.

References

No activity

Activity on this issue will appear here.

Activity

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