fix: skills picked from the / menu are not applied to the reply (#31429)

Picking a skill from the / menu in the chat input inserted it as an @ mention, so the skill was never loaded and its raw tag ended up in the message the model received. Picking the same skill from the $ menu worked. A skill chosen through / is now sent the same way as through $ and gets applied.

Fixes #29978
This commit is contained in:
Classic298 2026-09-26 05:19:56 +02:00 • committed by GitHub
parent fe8b30438a
commit c402acb404
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1452,7 +1452,7 @@
.insertContentAt(range, [
{
type: 'mention',
attrs: props
attrs: { ...props, mentionSuggestionChar: '/' }
},
{ type: 'text', text: ' ' }
])