-
Notifications
You must be signed in to change notification settings - Fork 7.3k
Closed
Labels
accessibilitybugSomething isn't workingSomething isn't workingp3Affects a small number of users or is largely cosmeticAffects a small number of users or is largely cosmetic
Description
Describe the bug
Accessible multi-select prompter does not respect defaults. This can be seen in commands like gh issue edit
Affected version
❯ gh version
gh version 2.71.0 (2025-04-23)
https://github.com/cli/cli/releases/tag/v2.71.0
Steps to reproduce the behavior
With an issue that already has assignees:
GH_ACCESSIBLE_PROMPTER=true gh issue edit <number>- Select
Assignees - See that the currently assigned users are not already selected.
Expected vs actual behavior
Defaults should be respected. Compare to non-accessible prompter.
Logs
❯ GH_ACCESSIBLE_PROMPTER=true gh issue edit 1
What would you like to edit?
1. Title
2. Body
3. Assignees
4. Labels
5. Projects
6. Milestone
Select up to 6 options. 0 to continue.
Select: 3
Selected: Assignees
What would you like to edit?
1. Title
2. Body
3. ✓ Assignees
4. Labels
5. Projects
6. Milestone
Select up to 6 options. 0 to continue.
Select: 0
Selected: Assignees
Assignees
1. BagToad
Metadata
Metadata
Assignees
Labels
accessibilitybugSomething isn't workingSomething isn't workingp3Affects a small number of users or is largely cosmeticAffects a small number of users or is largely cosmetic