Files
open-webui/backend/open_webui
Classic298andClaude 0afe69e1a7 fix: stop deleting user text that looks like a skill mention (#29051)
Any `<$...>` run in a chat message was treated as an inline skill mention and removed before the request reached the model, so text like `<$(=MonthStart($(vMaxMonthEndINC)))"}, [Registration day] >` silently vanished mid-message and the model only saw the part before it.

The mention regexes accepted any character except `|` and `>` as the skill id, so they matched far more than real mentions. Skill ids are already validated as `[a-z0-9_-]+` when a skill is created, so both regexes now require that charset. Ordinary text passes through untouched while `<$id>`, `<$id|Label>` and `</id|Label>` still resolve and strip as before.

Verified against the reported message (now preserved verbatim) and the three mention forms.

Co-authored-by: Claude <noreply@anthropic.com>
2026-08-27 16:44:33 -04:00
..
…
2026-08-25 16:53:53 -04:00
2026-08-25 14:35:22 -04:00
2026-08-25 16:53:53 -04:00
2026-08-25 16:53:53 -04:00
2026-08-25 16:53:53 -04:00
2026-07-27 19:39:36 -04:00
2026-07-31 17:41:14 -04:00
2026-08-25 16:53:53 -04:00
2026-08-16 23:21:00 -07:00
2026-08-25 16:53:53 -04:00
2026-08-25 10:03:53 -04:00