Skip to content

bug: builtin command aliases like /clear don't work #2355

Closed

Description

@jahands

We have command aliases like /clear implemented: https://github.com/sst/opencode/blob/dev/packages/tui/internal/commands/command.go#L217

Image

But it doesn't work:

Image

Activity

  1. fahimanwer commented on Sep 10, 2025

    @fahimanwer

    Yes, I have to just keep on opening /new session or exit or comeback, am I doing something wrong?

  2. flaviolivolsi commented on Sep 10, 2025

    @flaviolivolsi

    Fresh install and no command works for me, if I type /help, /new or so it just considers them as a chat messages.

    Image
  3. rekram1-node commented on Sep 10, 2025

    @rekram1-node
    Collaborator

    @flaviolivolsi how did you install?? That doesn't look like opencode

    Can you run:

    opencode --version
    
  4. rekram1-node commented on Sep 10, 2025

    @rekram1-node
    Collaborator

    yeah you definitely have wrong opencode

  5. rekram1-node commented on Sep 10, 2025

    @rekram1-node
    Collaborator

    there is another repo that caused some confusion: https://github.com/sst/opencode?tab=readme-ov-file#whats-the-other-repo

  6. flaviolivolsi commented on Sep 10, 2025

    @flaviolivolsi

    there is another repo that caused some confusion: https://github.com/sst/opencode?tab=readme-ov-file#whats-the-other-repo

    Ah damn! I installed through curl -fsSL https://opencode.ai/install | bash but maybe I installed another version a few months ago and the alias is still set to that one. I'll look into it, sorry and thanks for now!

  7. rekram1-node commented on Sep 10, 2025

    @rekram1-node
    Collaborator

    np

  8. rekram1-node commented on Dec 28, 2025

    @rekram1-node
    Collaborator

    [automated] Closing due to 90+ days of inactivity. Feel free to reopen if you still need this!

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