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:
R44VC0RP
2026-01-31 12:11:30 -05:00
committed by Dax Raad
parent 12b8c42387
commit cb6ec0a564
2 changed files with 4 additions and 1 deletions

View File

@@ -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")