mirror of
https://gitea.toothfairyai.com/ToothFairyAI/tf_code.git
synced 2026-04-08 01:39:12 +00:00
fix: display MCP tag for prompts in autocomplete but not in prompt (#6531)
This commit is contained in:
@@ -195,7 +195,7 @@ export namespace MCP {
|
||||
for (const prompt of prompts.prompts) {
|
||||
const sanitizedClientName = clientName.replace(/[^a-zA-Z0-9_-]/g, "_")
|
||||
const sanitizedPromptName = prompt.name.replace(/[^a-zA-Z0-9_-]/g, "_")
|
||||
const key = sanitizedClientName + ":" + sanitizedPromptName + " (MCP)"
|
||||
const key = sanitizedClientName + ":" + sanitizedPromptName
|
||||
|
||||
commands[key] = { ...prompt, client: clientName }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user