From 6ca71ebeae0c4d748ab7c4c47211b3e48af7d939 Mon Sep 17 00:00:00 2001 From: Brennan Benson <79079362+brennanb2025@users.noreply.github.com> Date: Thu, 16 Jul 2026 14:34:03 -0700 Subject: [PATCH] fix(codex): restore envToDelete on client invocation type after base reconcile --- src/main/codex/codex-app-server-client.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/main/codex/codex-app-server-client.ts b/src/main/codex/codex-app-server-client.ts index 4e58c8348..4ae3a157b 100644 --- a/src/main/codex/codex-app-server-client.ts +++ b/src/main/codex/codex-app-server-client.ts @@ -18,6 +18,9 @@ export type CodexAppServerInvocation = { args: string[] /** Overlay applied on top of the inherited environment (e.g. CODEX_HOME). */ env?: Record + /** Env keys stripped from the inherited environment before spawn (e.g. an + * inherited CODEX_HOME, so a default-home grant runs against the real ~/.codex). */ + envToDelete?: readonly string[] /** Whole-session deadline. The codex child is SIGKILLed when it lapses. */ timeoutMs: number }