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:
Sandy Tao
2026-03-06 22:37:32 -08:00
parent 651c1a28b8
commit f27bcc1592

View File

@@ -2621,6 +2621,7 @@ export class Config implements McpContext {
}
isInteractiveShellEnabled(): boolean {
if (this.isForeverMode) return false;
return (
this.interactive &&
this.ptyInfo !== 'child_process' &&