Skip to content

autocomplete: Options list can persistently lag behind query #226

Open

Description

@chrisbobbe

It's normal for the options list to lag behind the query by some small amount, perhaps several milliseconds, because we do expensive filtering computations asynchronously.

The symptom here is different: for example, you type "@", and after waiting even multiple seconds, the list of @-mention autocomplete options doesn't come up. That's because RawAutocomplete updates the list with a listener on the TextEditingValue, not on the MentionAutocompleteView.

To recognize a change from one result set to another, we should have the UI listen and respond to MentionAutocompleteView, not TextEditingValue.

References

Activity

  1. added
    a-composeCompose box, autocomplete, attaching files/images
    on Jul 19, 2023
  2. added this to the Launch milestone on Jul 19, 2023
  3. chrisbobbe commented on Jul 21, 2023

    @chrisbobbe
    MemberAuthor

    For a brain-dump of one possible approach, where we have RawAutocomplete grow a new feature, see discussion.

  4. modified the milestones: Launch, Post-launch on Jul 31, 2024
  5. added
    upstreamWould benefit from work in Flutter or another upstream
    on Nov 22, 2024
  6. chrisbobbe commented on Dec 13, 2024

    @chrisbobbe
    MemberAuthor

    The symptom here is different: for example, you type "@", and after waiting even multiple seconds, the list of @-mention autocomplete options doesn't come up.

    A user reported this symptom in beta feedback:

    Also in the beta if you put the focus in the topic input you don’t get any propositions until you type something (and then remove it to see the list of all topics).

    (They saw it with topic autocomplete, not @-mention autocomplete, but we use some of the same code for both and that code is where the bug is.)

  7. 19 remaining items

  8. gnprice commented on Mar 28, 2025

    @gnprice
    Member

    More on the user impact of this, again in the topic autocomplete (i.e. the topic input when you're composing from a channel feed):
    #mobile > reply goes to "no topic" @ 💬

  9. modified the milestones: MXA: Later, M8: 2026Q1 on Oct 22, 2025
  10. modified the milestones: M8: 2026Q1, M9: 2026Q2 on Jan 9, 2026
  11. chrisbobbe commented on Jan 26, 2026

    @chrisbobbe
    MemberAuthor

    We've had another report of this, at zulip/zulip-mobile#5932.

  12. chrisbobbe commented on Mar 18, 2026

    @chrisbobbe
    MemberAuthor

    Sent flutter/flutter#183705 upstream for this.

  13. self-assigned this
    on Aug 20, 2026
  14. sm-sayedi commented on Oct 8, 2026

    @sm-sayedi
    Collaborator

    A user reported this on CZO yesterday.

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

Metadata

Metadata

Assignees

Labels

a-composeCompose box, autocomplete, attaching files/imagesbeta feedbackThings beta users have specifically asked forlaunch feedbackThings users specifically asked for upon launchupstreamWould benefit from work in Flutter or another upstreamuser feedbackThings users have specifically asked for

Type

No type

Projects

Relationships

None yet

Development

No branches or pull requests

Issue actions