Skip to content

Conversation

@cybernova2
Copy link

This PR updates the @-mention autocomplete behavior to match the web app.

When a user backspaces inside a formatted mention (e.g. @**Chris Bobbe**),
the autocomplete is now reopened by stripping the formatting and re-evaluating
the mention query, instead of suppressing autocomplete entirely.

As part of this change:

  • Mention autocomplete logic was updated to normalize formatted mentions
    before matching.
  • Model tests were updated to reflect the new behavior when backspacing
    inside formatted mentions.
  • Widget tests were updated to assert the correct lifecycle of the
    autocomplete UI, which is now unmounted when no valid intent exists
    instead of remaining visible with empty results.
  • Async widget tests were fully settled after choosing an option to avoid
    pending timers at teardown.

Screenshots attached show the behavior before and after this change.

Before: Backspacing inside a formatted mention does not reopen autocomplete.
WhatsApp Image 2025-12-14 at 18 44 11_3d0d395c

After: Autocomplete reopens correctly, matching web behavior.
Screenshot_20251214_183837

Fixes #1967

…ted mentions

Match web behavior by reopening mention autocomplete when backspacing
inside formatted mentions like @**Name**. Update model and widget tests
to reflect the new autocomplete lifecycle.
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.

After choosing an @-mention option, backspacing should reopen autocomplete

1 participant