Skip to content

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

Closed as not planned

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

Activity

  1. github-actions commented on May 9, 2026

    @github-actions
    Contributor

    This issue might be a duplicate of (or regression from) a previously fixed issue. Please check:

  2. AaronFeledy commented on May 9, 2026

    @AaronFeledy

    Same on v1.14.43

  3. mattisking commented on May 9, 2026

    @mattisking

    Same on 1.14.4

  4. kagura-chen commented on May 10, 2026

    @kagura-chen
    Contributor

    I've identified the root cause: the app.exit command has an enabled function that returns false when the prompt has input, but the slash autocomplete list is built from entries filtered by visibility: "reachable", which excludes disabled commands. So typing / (non-empty input) hides /exit from the dropdown. Working on a fix.

  5. jackusay commented on May 10, 2026

    @jackusay

    Same on 1.14.46

  6. hugalafutro commented on May 10, 2026

    @hugalafutro

    not a single slash command works for me in 1.14.46 /models /status nothing - i can mash enter for a minute and then suddenly it will open

  7. CasualDeveloper commented on May 10, 2026

    @CasualDeveloper
    Contributor

    Experiencing /exit missing too on a local build based on b8ca71d309 (0.0.0-b8ca71d309-casual-202605100320).

    I left an implementation note on the linked fix PR (#26606); keeping the technical discussion there.

    P.S. @hugalafutro For me, /models and /status still appear and work. (Update: /compact too)

  8. XiaoPengYouCode commented on May 10, 2026

    @XiaoPengYouCode

    Still reproducible in v1.14.46. PR #26606 looks like the right fix — would be great to get it reviewed and merged.

  9. hugalafutro commented on May 10, 2026

    @hugalafutro

    @CasualDeveloper it's not that they don't appear, the list activates, but I cannot activate any of the commands I can press enter on any command in the list and the list doesn't go away and activate it just stays open and i can browse or type to filter but enter does nothing, but occasionaly it does. I can't manage to reproduce it meaningfully

  10. khoata107 commented on May 10, 2026

    @khoata107

    /compact are gone too

  11. wangguodong-f commented on May 10, 2026

    @wangguodong-f

    I'm really fed up with OpenCode's bugs. The stability of the released software is terrible, there's no quality control at all, and for several consecutive versions, they've reintroduced previously fixed issues into the newly released official versions.

  12. kommander commented on May 11, 2026

    @kommander
    Contributor

    /exit etc. should be back in v1.14.47. I cannot reproduce an issue with /compact.

    Screenshot 2026-05-11 at 03.43.29.png

  13. vparseval commented on May 12, 2026

    @vparseval

    Oh. Is /compact context-sensitive by any chance? I don't seem to have it as available command when it would be the first thing in a new session. It's available on the second prompt. If that's intentional, I can understand the rationale but I'd still find it a bit weird.

  14. kommander commented on May 15, 2026

    @kommander
    Contributor

    It is context sensitive, yes. The default behaviour will stay like that. You can make it always visible via a plugin registering a command that just delegates to the compaction command and is always visible.

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