diff options
| author | R44VC0RP <[email protected]> | 2026-01-31 12:11:30 -0500 |
|---|---|---|
| committer | Dax Raad <[email protected]> | 2026-02-01 19:26:23 -0500 |
| commit | cb6ec0a564cfc332e7af3c844157e145c1d86a60 (patch) | |
| tree | a98883e9a87a1af53dab529ba86dfe7434640cbc /packages/app/src | |
| parent | 12b8c4238768d4fc3aa57c7023c9724c4f705db2 (diff) | |
| download | opencode-cb6ec0a564cfc332e7af3c844157e145c1d86a60.tar.gz opencode-cb6ec0a564cfc332e7af3c844157e145c1d86a60.zip | |
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.
Diffstat (limited to 'packages/app/src')
| -rw-r--r-- | packages/app/src/components/prompt-input.tsx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/app/src/components/prompt-input.tsx b/packages/app/src/components/prompt-input.tsx index 9a9d589a7..2b63b6f5f 100644 --- a/packages/app/src/components/prompt-input.tsx +++ b/packages/app/src/components/prompt-input.tsx @@ -1728,7 +1728,7 @@ export const PromptInput: Component<PromptInputProps> = (props) => { </Show> </div> <div class="flex items-center gap-2 shrink-0"> - <Show when={cmd.type === "custom"}> + <Show when={cmd.type === "custom" && cmd.source !== "command"}> <span class="text-11-regular text-text-subtle px-1.5 py-0.5 bg-surface-base rounded"> {cmd.source === "skill" ? language.t("prompt.slash.badge.skill") |
