Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Accessible multi-select prompter does not respect defaults #10900

@BagToad

Description

@BagToad

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:

  1. GH_ACCESSIBLE_PROMPTER=true gh issue edit <number>
  2. Select Assignees
  3. 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 workingp3Affects a small number of users or is largely cosmetic

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions