You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
The confirm should always accept y/n, or be configurable with multiple values that represent y #2279
In Chinese, "是/否" means "yes/no", and it should be used as yesLabel and noLabel. However, when users enter options in the terminal, typing the Chinese characters "是" or "否" requires multiple keystrokes, while typing y/n requires only a single keystroke each, so most users are still accustomed to entering y/n.
The current situation is that if the label is set to "是/否", users cannot enter n to cancel; if the label is kept as "yes/no", then the answer displayed after the question cannot be shown in Chinese.
Activity
SBoudrias commentedon Oct 3, 2026
Thanks for the report! A fix was just merged and will be part of the next release.
fix(confirm): always accept y/n and reject unrecognized input (SBoudr…