From a4812801b4393f3a0e2d9ebda8ec293b6003a4ca Mon Sep 17 00:00:00 2001 From: YeonGyu-Kim Date: Sat, 3 Jan 2026 11:20:40 +0900 Subject: [PATCH] fix(non-interactive-env): add line continuation for command display MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Improves readability by placing the git command on its own line instead of concatenating it directly after environment variables. The VAR=value prefix now continues to the next line with proper shell escaping. 🤖 GENERATED WITH ASSISTANCE OF [OhMyOpenCode](https://github.com/code-yeongyu/oh-my-opencode) --- src/hooks/non-interactive-env/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hooks/non-interactive-env/index.ts b/src/hooks/non-interactive-env/index.ts index df119b7..0d21044 100644 --- a/src/hooks/non-interactive-env/index.ts +++ b/src/hooks/non-interactive-env/index.ts @@ -75,7 +75,7 @@ export function createNonInteractiveEnvHook(_ctx: PluginInput) { // OpenCode's bash tool uses hardcoded `...process.env` in spawn(), // ignoring any args.env we might set. Prepend to command instead. const envPrefix = buildEnvPrefix(NON_INTERACTIVE_ENV) - output.args.command = `${envPrefix} ${command}` + output.args.command = `${envPrefix} \\\n${command}` log(`[${HOOK_NAME}] Prepended non-interactive env vars to git command`, { sessionID: input.sessionID,