{"version":"2.1.246","anchor":"stale-autocomplete-results-and-duplicate-submits-are-now-dis","canonical_anchor":"stale-autocomplete-results-and-duplicate-submits-are-now-dis","heading":"Stale autocomplete results and duplicate submits are now discarded","tier":"notice","area":"Autocomplete","scope":null,"heads_up":null,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.246\/e\/stale-autocomplete-results-and-duplicate-submits-are-now-dis","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.246","markdown":"### Stale autocomplete results and duplicate submits are now discarded\n\nAutocomplete stops overwriting newer typing with slow results, and double Enter no longer double-submits.\n\n**What**\n\nAutocomplete gained three fixes. Slow async completions (file path lookups, `\/resume` title search, command argument completion) that arrive after you have typed more are now dropped instead of overwriting the newer suggestions. A second Enter with an unchanged prompt buffer is swallowed, preventing a duplicate submit. And Enter with suggestions showing but nothing selected now submits for custom-title, file and Slack-channel suggestions, not just commands.\n\n**Details**\n\n- Late results are rejected by a request counter that increments on every new lookup.\n- Duplicate submits are caught by comparing against the last submitted value and calling preventDefault on the keypress.\n- Suggestions and their type now live in one external store updated in a single transaction, so the list and its type can no longer disagree mid-render.\n\n**Evidence**\n\n`suggestionType`\n\n- Area: Autocomplete\n- Names: `\/resume`\n- Tier: You'll notice\n- Useful: 4\/5\n- Signal: 1\/5"}