mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-04-25 04:24:51 -07:00
Fix/windows pty crash (#12587)
Co-authored-by: LayorX <yor31117@gmail.com> Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
This commit is contained in:
@@ -771,9 +771,11 @@ export class ShellExecutionService {
|
||||
if (
|
||||
e instanceof Error &&
|
||||
(('code' in e && e.code === 'ESRCH') ||
|
||||
e.message === 'Cannot resize a pty that has already exited')
|
||||
e.message.includes('Cannot resize a pty that has already exited'))
|
||||
) {
|
||||
// ignore
|
||||
// On Unix, we get an ESRCH error.
|
||||
// On Windows, we get a message-based error.
|
||||
// In both cases, it's safe to ignore.
|
||||
} else {
|
||||
throw e;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user