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

Closed
opened 2026-02-16 17:31:31 -05:00 by yindo · 8 comments
Owner

Originally created by @jahands on GitHub (Sep 1, 2025).

Originally assigned to: @adamdotdevin on GitHub.

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

Originally created by @jahands on GitHub (Sep 1, 2025). Originally assigned to: @adamdotdevin on GitHub. We have command aliases like `/clear` implemented: https://github.com/sst/opencode/blob/dev/packages/tui/internal/commands/command.go#L217 ![Image](https://github.com/user-attachments/assets/fc9173f6-2105-40ac-929c-8635877278be) But it doesn't work: ![Image](https://github.com/user-attachments/assets/0183e291-387f-49c8-8a90-618be4692c87)
yindo closed this issue 2026-02-16 17:31:31 -05:00
Author
Owner

@fahimanwer commented on GitHub (Sep 10, 2025):

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

@fahimanwer commented on GitHub (Sep 10, 2025): Yes, I have to just keep on opening /new session or exit or comeback, am I doing something wrong?
Author
Owner

@flaviolivolsi commented on GitHub (Sep 10, 2025):

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

Image
@flaviolivolsi commented on GitHub (Sep 10, 2025): Fresh install and no command works for me, if I type `/help`, `/new` or so it just considers them as a chat messages. <img width="767" height="757" alt="Image" src="https://github.com/user-attachments/assets/2ff0593d-5002-46cd-bfad-87a1a02c25a0" />
Author
Owner

@rekram1-node commented on GitHub (Sep 10, 2025):

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

Can you run:

opencode --version
@rekram1-node commented on GitHub (Sep 10, 2025): @flaviolivolsi how did you install?? That doesn't look like opencode Can you run: ``` opencode --version ```
Author
Owner

@rekram1-node commented on GitHub (Sep 10, 2025):

yeah you definitely have wrong opencode

@rekram1-node commented on GitHub (Sep 10, 2025): yeah you definitely have wrong opencode
Author
Owner

@rekram1-node commented on GitHub (Sep 10, 2025):

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

@rekram1-node commented on GitHub (Sep 10, 2025): there is another repo that caused some confusion: https://github.com/sst/opencode?tab=readme-ov-file#whats-the-other-repo
Author
Owner

@flaviolivolsi commented on GitHub (Sep 10, 2025):

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!

@flaviolivolsi commented on GitHub (Sep 10, 2025): > 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!
Author
Owner

@rekram1-node commented on GitHub (Sep 10, 2025):

np

@rekram1-node commented on GitHub (Sep 10, 2025): np
Author
Owner

@rekram1-node commented on GitHub (Dec 27, 2025):

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

@rekram1-node commented on GitHub (Dec 27, 2025): [automated] Closing due to 90+ days of inactivity. Feel free to reopen if you still need this!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#1556