mirror of
https://github.com/QwenLM/qwen-code.git
synced 2026-04-30 04:30:48 +00:00
Scotdensmore/first run auth fix (#1322)
This commit is contained in:
parent
156feff5b1
commit
99d521569d
3 changed files with 84 additions and 3 deletions
|
|
@ -78,6 +78,13 @@ export function AuthDialog({
|
|||
|
||||
useInput((_input, key) => {
|
||||
if (key.escape) {
|
||||
if (settings.merged.selectedAuthType === undefined) {
|
||||
// Prevent exiting if no auth method is set
|
||||
setErrorMessage(
|
||||
'You must select an auth method to proceed. Press Ctrl+C twice to exit.',
|
||||
);
|
||||
return;
|
||||
}
|
||||
onSelect(undefined, SettingScope.User);
|
||||
}
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue