mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-05-13 05:12:55 -07:00
feat: disable interactive shell in Forever Mode
Interactive shell (PTY) is unnecessary in long-running Forever Mode sessions and can cause hangs. Force-disable it when isForeverMode is true.
This commit is contained in:
@@ -2621,6 +2621,7 @@ export class Config implements McpContext {
|
|||||||
}
|
}
|
||||||
|
|
||||||
isInteractiveShellEnabled(): boolean {
|
isInteractiveShellEnabled(): boolean {
|
||||||
|
if (this.isForeverMode) return false;
|
||||||
return (
|
return (
|
||||||
this.interactive &&
|
this.interactive &&
|
||||||
this.ptyInfo !== 'child_process' &&
|
this.ptyInfo !== 'child_process' &&
|
||||||
|
|||||||
Reference in New Issue
Block a user