-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Fix: CLI suggestions now select first entry by default #4731
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
Conversation
🦋 Changeset detectedLatest commit: d24db47 The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
✅ No Issues Found3 files reviewed | Confidence: 95% | Recommendation: Merge Review DetailsFiles:
Checked: Security, bugs, logic errors, edge cases, code patterns Analysis:
|
✅ No Issues Found3 files reviewed | Confidence: 95% | Recommendation: Merge Review DetailsFiles Reviewed:
Summary: Root Cause & Fix: Checked:
Code Quality:
|
✅ No Issues Found3 files reviewed | Confidence: 95% | Recommendation: Merge Review DetailsFiles:
Summary: Root Cause Analysis: Fix Verification:
Checked: Security, bugs, logic errors, edge cases, test coverage |
✅ No Issues Found3 files reviewed | Confidence: 95% | Recommendation: Merge Review DetailsFiles:
Changes Analyzed:
Checked: Security, bugs, state management, edge cases, test coverage Quality Notes:
|
|
An alternative solution is in #4708. That solution sets selectedIndexAtom to -1 if there are no suggestions of all types. |
|
Closing this. We adopt the approach of #4708 instead. |
Problem: When typing / in the CLI to trigger command autocomplete, the first entry was not visually selected, requiring users to press arrow down before they could select a command.
Root Cause: The suggestion action atoms were resetting selectedIndexAtom to -1 when clearing suggestions.
This works for all autocompletion (@ / and also model selections)