mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-04-04 18:31:36 -07:00
fix(cli): Exit CLI when trust save unsuccessful during launch (#11968)
This commit is contained in:
@@ -62,9 +62,12 @@ export function PermissionsModifyTrustDialog({
|
||||
onExit();
|
||||
}
|
||||
if (needsRestart && key.name === 'r') {
|
||||
commitTrustLevelChange();
|
||||
relaunchApp();
|
||||
onExit();
|
||||
const success = commitTrustLevelChange();
|
||||
if (success) {
|
||||
relaunchApp();
|
||||
} else {
|
||||
onExit();
|
||||
}
|
||||
}
|
||||
},
|
||||
{ isActive: true },
|
||||
|
||||
Reference in New Issue
Block a user