diff options
| author | Shehab <[email protected]> | 2025-08-07 20:26:55 +0300 |
|---|---|---|
| committer | GitHub <[email protected]> | 2025-08-07 17:26:55 +0000 |
| commit | 7596481a9d537715ce74309b2b3da85d192d059a (patch) | |
| tree | 4f9a1718ce876410ecd1a31226307a6b7355f61c /packages/cli/src/ui/App.tsx | |
| parent | 8bac9e7d048c7ff97f0942b23edb0167ee6ca83e (diff) | |
feat(cli): Allow Exiting Authentication Menu with CTRL+C (SIGINT) (#4482)
Co-authored-by: Seth Troisi <[email protected]>
Diffstat (limited to 'packages/cli/src/ui/App.tsx')
| -rw-r--r-- | packages/cli/src/ui/App.tsx | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/packages/cli/src/ui/App.tsx b/packages/cli/src/ui/App.tsx index 2be681e5..d311facf 100644 --- a/packages/cli/src/ui/App.tsx +++ b/packages/cli/src/ui/App.tsx @@ -632,6 +632,10 @@ const App = ({ config, settings, startupWarnings = [], version }: AppProps) => { ) { setShowIDEContextDetail((prev) => !prev); } else if (key.ctrl && (input === 'c' || input === 'C')) { + if (isAuthenticating) { + // Let AuthInProgress component handle the input. + return; + } handleExit(ctrlCPressedOnce, setCtrlCPressedOnce, ctrlCTimerRef); } else if (key.ctrl && (input === 'd' || input === 'D')) { if (buffer.text.length > 0) { |
