Skip to content

fix(tui-v2): skip ChoiceList when ask_user has no candidates#616

Open
ChaiRZy wants to merge 1 commit into
lsdefine:mainfrom
ChaiRZy:fix/v2-ask-user-empty-candidates
Open

fix(tui-v2): skip ChoiceList when ask_user has no candidates#616
ChaiRZy wants to merge 1 commit into
lsdefine:mainfrom
ChaiRZy:fix/v2-ask-user-empty-candidates

Conversation

@ChaiRZy

@ChaiRZy ChaiRZy commented Jun 15, 2026

Copy link
Copy Markdown

When candidates is empty/absent, the picker would still create a ChoiceList with only a free-text option, stealing focus from the input. Check candidates early and return if there are none.

  • 0 net line change, no comment needed
  • v3 (tui_v3.py) already has the same guard (dfab299)
  • v2 parity with v3

When candidates is empty/absent, the picker would still create a
ChoiceList with only a free-text option, stealing focus from the
input. Check candidates early and return if there are none.

- 0 net line change, no comment needed
- v3 (tui_v3.py) already has the same guard (dfab299)
- v2 parity with v3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant