Fix mention selection to respect filtered file count#557
Draft
RajPabnani03 wants to merge 1 commit intoathasdev:masterfrom
Draft
Fix mention selection to respect filtered file count#557RajPabnani03 wants to merge 1 commit intoathasdev:masterfrom
RajPabnani03 wants to merge 1 commit intoathasdev:masterfrom
Conversation
RajPabnani03
commented
Mar 9, 2026
Author
RajPabnani03
left a comment
There was a problem hiding this comment.
Fix hard-coded index bound in mention dropdown navigation
12d2db9 to
6e1f1f0
Compare
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.
Pull Request
Description
Fixed a bug in the AI chat mention selection where the
selectNextfunction was hardcoded to allow a maximum of 5 items (index 0-4), regardless of the actual number of filtered files available. This caused incorrect behavior when selecting through mentions with fewer items.Changes Made
selectNextaction to accepttotalItemsparameter instead of using hardcoded limit of 4maxIndexbased on the actual number of filtered filesAIChatActionsinterface to reflect the new parameterai-chat-input-bar.tsxto pass the filtered files count when invokingselectNextRelated Issues
Closes #
Checklist
https://claude.ai/code/session_01PwR8J37gjzpQ1tEbEJUgTi