fix: display MCP tag for prompts in autocomplete but not in prompt (#6531)

This commit is contained in:
Paolo Ricciuti
2025-12-31 16:34:36 +01:00
committed by GitHub
parent 6e3ead198e
commit 5249f04ea0
5 changed files with 8 additions and 2 deletions

View File

@@ -259,7 +259,7 @@ export function Autocomplete(props: {
const s = session()
for (const command of sync.data.command) {
results.push({
display: "/" + command.name,
display: "/" + command.name + (command.mcp ? " (MCP)" : ""),
description: command.description,
onSelect: () => {
const newText = "/" + command.name + " "