mirror of
https://github.com/anomalyco/opencode.git
synced 2026-05-27 00:31:00 +00:00
fix(app): hide badge for builtin slash commands
Add source: 'command' to builtin and config-defined commands so they don't show a 'custom' badge. Only MCP and skill commands show badges.
This commit is contained in:
parent
12b8c42387
commit
cb6ec0a564
2 changed files with 4 additions and 1 deletions
|
|
@ -63,6 +63,7 @@ export namespace Command {
|
|||
[Default.INIT]: {
|
||||
name: Default.INIT,
|
||||
description: "create/update AGENTS.md",
|
||||
source: "command",
|
||||
get template() {
|
||||
return PROMPT_INITIALIZE.replace("${path}", Instance.worktree)
|
||||
},
|
||||
|
|
@ -71,6 +72,7 @@ export namespace Command {
|
|||
[Default.REVIEW]: {
|
||||
name: Default.REVIEW,
|
||||
description: "review changes [commit|branch|pr], defaults to uncommitted",
|
||||
source: "command",
|
||||
get template() {
|
||||
return PROMPT_REVIEW.replace("${path}", Instance.worktree)
|
||||
},
|
||||
|
|
@ -85,6 +87,7 @@ export namespace Command {
|
|||
agent: command.agent,
|
||||
model: command.model,
|
||||
description: command.description,
|
||||
source: "command",
|
||||
get template() {
|
||||
return command.template
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue