From b98a1b28f8e4e8d42bfd028cdff83517a00b44cf Mon Sep 17 00:00:00 2001 From: YeonGyu-Kim Date: Fri, 2 Jan 2026 16:03:48 +0900 Subject: [PATCH] fix(non-interactive-env): inherit process.env before applying NON_INTERACTIVE_ENV overrides MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Previously, the hook only set NON_INTERACTIVE_ENV without inheriting the parent process environment, causing subprocess to run without proper PATH and other env vars. Now it properly inherits process.env first, then applies GIT_EDITOR=":" and EDITOR=":" to prevent interactive editors from spawning. 🤖 Generated with assistance of OhMyOpenCode https://github.com/code-yeongyu/oh-my-opencode --- src/hooks/non-interactive-env/index.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/hooks/non-interactive-env/index.ts b/src/hooks/non-interactive-env/index.ts index d4d9c00..74cd8e6 100644 --- a/src/hooks/non-interactive-env/index.ts +++ b/src/hooks/non-interactive-env/index.ts @@ -35,6 +35,7 @@ export function createNonInteractiveEnvHook(_ctx: PluginInput) { } output.args.env = { + ...process.env, ...(output.args.env as Record | undefined), ...NON_INTERACTIVE_ENV, }