feat: make skills invokable as slash commands in the TUI (#11390)

This commit is contained in:
Dax
2026-01-31 00:41:55 -05:00
committed by GitHub
parent c0e71c4261
commit 81ac41e089
5 changed files with 25 additions and 6 deletions

View File

@@ -345,8 +345,9 @@ export function Autocomplete(props: {
const results: AutocompleteOption[] = [...command.slashes()]
for (const serverCommand of sync.data.command) {
const label = serverCommand.source === "mcp" ? ":mcp" : serverCommand.source === "skill" ? ":skill" : ""
results.push({
display: "/" + serverCommand.name + (serverCommand.mcp ? " (MCP)" : ""),
display: "/" + serverCommand.name + label,
description: serverCommand.description,
onSelect: () => {
const newText = "/" + serverCommand.name + " "