Skip to content

fix: stop deleting user text that looks like a skill mention - #29051

Open
Classic298 wants to merge 1 commit into
open-webui:devfrom
Classic298:claude/commit-review-workflow-lx6kcv
Open

fix: stop deleting user text that looks like a skill mention#29051
Classic298 wants to merge 1 commit into
open-webui:devfrom
Classic298:claude/commit-review-workflow-lx6kcv

Conversation

@Classic298

@Classic298 Classic298 commented Aug 26, 2026

Copy link
Copy Markdown
Member

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.

Fixes: #29041

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

Contributor License Agreement

Note

Deleting the CLA section will lead to immediate closure of your PR and it will not be merged in.

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.
@Classic298
Classic298 force-pushed the claude/commit-review-workflow-lx6kcv branch from c507b35 to 1276993 Compare August 26, 2026 09:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants