Repository navigation
fix(dashboard): Keep composer typeahead open across spaces in a query - #4402
Merged
Merged
Conversation
Co-Authored-By: BYK <[email protected]>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes using default effort and found 1 potential issue.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit e3bf422. Configure here.
…p at a trailing space
Contributor
Contributor
|
1 screenshot change — 1 changed · 0 added · 0 removed Review screenshots in Frameshift
|
BYK
approved these changes
Nov 26, 2026
BYK
enabled auto-merge (squash)
November 26, 2026 11:08
…d-multi-word Co-Authored-By: BYK <[email protected]> # Conflicts: # packages/junior-dashboard/e2e/composer-references.spec.ts # packages/junior-dashboard/src/client/conversations/composerReferences.ts
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

![Fix with [code]smith](https://pr-comments-assets.blacksmith.sh/codesmith/fix-with-codesmith-light-v2-3x.png)
The
$,@, and#menus in the composer stopped matching at the first space, so you could not find@Avery Chen, a Conversation called "Investigate checkout latency", or a PR by its title.Root cause
The trigger regexes.
skillTokenAt,mentionTokenAt, andhashTokenAteach read the query as a run of name characters right before the caret, and a space is not a name character. After@avery, no reference was at the caret, souseLexicalTypeaheadclosed the menu. The menus and the search APIs already split a query into words:quickOpenMatchandsearchSkillssplit on whitespace, and the people, code change, and Conversation searches match each word.Fix
The three finders now share
composerTokenFinder. It reads words of name characters with one space between them. The regex has a single way to split the words, so a miss does not backtrack.Closing rule
The menu stays open across one space and searches the words together. It closes when:
$skillinsert, the words typed after it are text. A@or#chip already ends the text node.@,# heading).ComposerTypeahead.end(), so the words typed after it are text and send no searches. Backspace to a shorter query opens it again. This stops$5 for lunchor#1 priority is…from searching each word, and stops Enter from being held while those searches load.ask @casey about itopens nothing. A menu that is already open stays open while the caret moves inside its query.I picked "a space with no rows ends it" over a word or length limit. It reuses the result the menu already has, and it ends a sentence after the first word that matches nothing.
The mock people search now matches each word, like the API. It used to match only the whole query as one prefix.
Screenshots
@avery ch#link pullvia @BYK.
--
View Session [Sentry]