From f27bcc15929bca6706ecef1a23d40bcd1336c913 Mon Sep 17 00:00:00 2001 From: Sandy Tao Date: Fri, 6 Mar 2026 22:37:32 -0800 Subject: [PATCH] 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. --- packages/core/src/config/config.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/core/src/config/config.ts b/packages/core/src/config/config.ts index 40ed969a82..ef5039acad 100644 --- a/packages/core/src/config/config.ts +++ b/packages/core/src/config/config.ts @@ -2621,6 +2621,7 @@ export class Config implements McpContext { } isInteractiveShellEnabled(): boolean { + if (this.isForeverMode) return false; return ( this.interactive && this.ptyInfo !== 'child_process' &&