Skip to content

fix(ui): show a mention whose id is not valid percent-encoding - #266

Open
xsahil03x wants to merge 2 commits into
mainfrom
fix/mention-id-decoding
Open

xsahil03x wants to merge 2 commits into
mainfrom
fix/mention-id-decoding

Conversation

@xsahil03x

Copy link
Copy Markdown
Member

Part of FLU-1389

What

StreamMessageText URL-decodes a mention's id before passing it to onTapMention / onTapAnyMention. When the id wasn't valid percent-encoding, decoding threw and the message rendered nothing. Now the id is decoded when it can be, and passed on as written when it can't, so the message and its mention still show. This applies to every mention kind (mention:, mention-role:, ...).

The callback docs and the changelog say what the id is in that case.

Verified

  • Widget tests: a valid id is still decoded (user%20123 → user 123); malformed and invalid UTF-8 ids (%ZZ, %, user%F, %FF, %C3, a%20%ZZ) render and report the id as written, through onTapMention and through onTapAnyMention for a role mention.
  • dart analyze --fatal-infos and dart format are clean.

🤖 Generated with Claude Code

xsahil03x and others added 2 commits November 26, 2026 16:01
A malformed escape such as %ZZ in a mention link's id threw while the
message was parsed, so the whole message failed to render. The raw id is
now kept instead.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@xsahil03x
xsahil03x requested a review from a team as a code owner November 26, 2026 15:59
@github-actions github-actions Bot added the ready Pull request ready to be reviewed label Nov 26, 2026

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ready Pull request ready to be reviewed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant