From 11dbfafd445a5a3de17c3c9e539fe4af04d3f50f Mon Sep 17 00:00:00 2001 From: Miroslav Drbal Date: Sun, 10 May 2026 15:56:33 +0200 Subject: [PATCH] fix(coding-agent): disable PTY bash in rpc-ui mode rpc-ui sets hasUI=true which causes the bash tool to take the runInteractiveBashPty path when pty=true. RpcExtensionUIContext.custom() is a stub returning undefined, so result.cancelled dereferences undefined and throws. PTY bash requires a live TUI overlay; rpc-ui only provides dialog-style UI. Set PI_NO_PTY for rpc-ui so the usePty guard in bash.ts stays false. --- packages/coding-agent/src/main.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/coding-agent/src/main.ts b/packages/coding-agent/src/main.ts index 753ff8569..8c52f145d 100644 --- a/packages/coding-agent/src/main.ts +++ b/packages/coding-agent/src/main.ts @@ -659,7 +659,7 @@ export async function runRootCommand(parsed: Args, rawArgs: string[]): Promise