fix(web): only open slash variable picker when / is typed (#39755) - #39761
Open
Souravrajvi0 wants to merge 1 commit into
Open
fix(web): only open slash variable picker when / is typed (#39755)#39761Souravrajvi0 wants to merge 1 commit into
Souravrajvi0 wants to merge 1 commit into
Conversation
Clicking the caret after an existing slash in prompt text (for example in a URL) no longer opens the workflow variable picker. The slash menu now opens only when the user inserts / via text input. Fixes langgenius#39755
Souravrajvi0
requested review from
CodingOnStar,
hyoban,
iamjoel and
zxhlyh
as code owners
July 29, 2026 10:32
crazywoola
approved these changes
Jul 29, 2026
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.
Important
Fixes #<issue number>.Summary
/via text input/characters in prompt content (for example URLs)beforeinputand clear it on pointer clicks so re-clicking an old slash does not reopen the menu/vs clicking after an existing slash in URL textFixes #39755
Root cause
ComponentPickerBlockuseduseBasicTypeaheadTriggerMatchwithminLength: 0for the/trigger. That matches any caret position immediately after an existing slash, so clicking inside URL text likehttps://...reopened the variable picker even though the user did not type/.Impact
Workflow Agent prompt editing no longer opens the variable picker when users click inside existing prompt text that happens to contain
/. Typing/still opens the picker as before, including when filtering with additional characters after the slash.Screenshots
Checklist
Validation
/vs clicking after an existing slash)