mirror of
https://github.com/chriswritescode-dev/opencode-manager.git
synced 2026-12-06 12:54:20 +01:00
feat(commands): align built-in slash commands with OpenCode v2
Replace the split built-in command name list and switch with one typed registry, so a registered command without a handler is a compile error. Remove the broken themes/share/unshare/editor entries and the hardcoded init; server and custom commands now win on a name clash and built-ins dispatch by registry identity. Add /copy, /btw, /rename, /fork (message picker), /timeline, /model, /agent, /variants, /mcp, /skills, /settings and /connect. Open the model picker through state so /model and the select-model shortcut work while a response is running, load full session history in the fork picker, and keep attachments when a built-in command is submitted. Extract shared clipboard and primary-agent helpers, reuse CopyButton in the manager token settings, and update the Quick Start and chat docs.
This commit is contained in:
1 parent
7cac8baade
commit
7e93eb4c34
35 files changed
+2291
-767
No files matched your search
@@ -30,7 +30,9 @@ Click the **model name** in the chat prompt area to open the quick model switche
|
||||
|
||||
## Slash Commands
|
||||
|
||||
Type `/` to see available commands. Built-in commands are covered in the [Quick Start](../getting-started/quickstart.md#useful-commands).
|
||||
Type `/` to see available commands. Built-in commands are covered in the [Quick Start](../getting-started/quickstart.md#useful-commands). OpenCode's own commands, such as `/init` and `/review`, appear in the same list.
|
||||
|
||||
The fork keyboard shortcut opens the same message picker as `/fork`.
|
||||
|
||||
### Custom Commands
|
||||
|
||||
@@ -49,7 +51,7 @@ template: |
|
||||
{{selection}}
|
||||
```
|
||||
|
||||
Use with `/review` in chat.
|
||||
Use with `/review` in chat. A custom command with the same name as a built-in command replaces the built-in.
|
||||
|
||||
## File Mentions
|
||||
|
||||
|
||||
@@ -86,9 +86,26 @@ If you already used standalone OpenCode in those repositories, existing chats ap
|
||||
|
||||
| Command | Description |
|
||||
|---------|-------------|
|
||||
| `/help` | Show available commands |
|
||||
| `/new` | Start a new session |
|
||||
| `/help`, `/settings` | Open settings |
|
||||
| `/new`, `/clear` | Start a new session |
|
||||
| `/sessions`, `/resume`, `/continue` | List and switch between sessions |
|
||||
| `/model`, `/models` | Open the model picker, also while a response is running |
|
||||
| `/agent` | Switch to the next primary agent |
|
||||
| `/variants` | Cycle the model's reasoning variant |
|
||||
| `/compact` | Reduce session context |
|
||||
| `/rename [title]` | Rename the session; with no title, regenerate it |
|
||||
| `/fork` | Fork the session from a chosen message, or the entire conversation |
|
||||
| `/timeline` | Jump to a loaded message in the conversation |
|
||||
| `/btw <question>` | Ask a side question without adding it to the conversation |
|
||||
| `/copy` | Copy the full transcript as Markdown |
|
||||
| `/export` | Download the full transcript as Markdown |
|
||||
| `/undo`, `/redo` | Undo or redo the last message |
|
||||
| `/details` | Toggle tool execution details |
|
||||
| `/mcp` | Manage MCP servers |
|
||||
| `/skills` | Load a skill |
|
||||
| `/connect` | Connect a provider |
|
||||
|
||||
Built-in commands use only the command text. Attached files and images are kept in the composer for your next message.
|
||||
|
||||
### File Mentions
|
||||
|
||||
|
||||
Reference in new issue
Block a user