mirror of
https://github.com/QwenLM/qwen-code.git
synced 2025-12-19 09:33:53 +00:00
Scotdensmore/first run auth fix (#1322)
This commit is contained in:
@@ -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);
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user