-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Tighten textbox skill fuzzy filtering #5348
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
+860
−85
Merged
Changes from 3 commits
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
1bfad75
test: cover textbox skill fuzzy filtering
lawrencecchen 0b275b4
fix: tighten textbox skill fuzzy filtering
lawrencecchen dba6f4a
Merge remote-tracking branch 'origin/main' into issue-textbox-skill-f…
lawrencecchen 3b699f7
fix: preserve filtered mention rows while typing
lawrencecchen d8b156e
fix: hide stale textbox mention rows
lawrencecchen bcdfa2a
fix: fill validated mention results
lawrencecchen 010835b
fix: invalidate filtered mention placeholders
lawrencecchen 4d789aa
fix: bound stale mention filtering
lawrencecchen aa0566c
fix: clear mention rows on bare query
lawrencecchen 8417901
fix: refresh textbox mention fuzzy matches
lawrencecchen 7a6fa9d
fix: avoid redundant mention refresh scans
lawrencecchen 7b6a29b
fix: avoid full mention scans after selective nucleo matches
lawrencecchen bcf22d6
fix: refresh textbox mentions after direct insertions
lawrencecchen 25d689b
Move Swift interpreter guidance out of skills
lawrencecchen 611714a
test: harden textbox mention XCUITest socket launch
lawrencecchen File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
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
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
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
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
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
queryChangedToNonEmptyfires on every non-empty keystroke, not just the bare-trigger → first-character transitionThe condition checks
previousQuery != query.query && !query.query.isEmpty, which is true on every character typed or deleted that leaves a non-empty query — for example, backspacing/iterate-prto/iterate-psets it totrueand clears the stale rows. The name and the PR description ("clear stale bare-trigger rows when the same trigger changes to a non-empty query") imply the intent is the empty→non-empty edge only, but the implementation acts on any→non-empty. The old test explicitly asserted that editing within the same trigger kept rows visible; that assertion was removed rather than updated, so there is no coverage of the typing-within-a-query path. Every keystroke beyond the first now shows a loading spinner instead of the previous results, which is the flicker the original design was trying to avoid.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed in 3b699f7 by making the clear condition require the previous query to be empty. Added a regression test that keeps rows visible when a same-trigger query stays nonempty.
— Claude Code