From 924fa79bd3e0b1b2c330ccc5743144e44166eefb Mon Sep 17 00:00:00 2001 From: YeonGyu-Kim Date: Fri, 2 Jan 2026 22:52:39 +0900 Subject: [PATCH] style: improve git command env prefix readability with line continuation MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 🤖 GENERATED WITH ASSISTANCE OF [OhMyOpenCode](https://github.com/code-yeongyu/oh-my-opencode) --- src/hooks/non-interactive-env/index.ts | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/hooks/non-interactive-env/index.ts b/src/hooks/non-interactive-env/index.ts index 08622c2..df119b7 100644 --- a/src/hooks/non-interactive-env/index.ts +++ b/src/hooks/non-interactive-env/index.ts @@ -34,13 +34,16 @@ function shellEscape(value: string): string { } /** - * Build env prefix string: VAR1=val1 VAR2=val2 ... + * Build env prefix string with line continuation for readability: + * VAR1=val1 \ + * VAR2=val2 \ + * ... * OpenCode's bash tool ignores args.env, so we must prepend to command. */ function buildEnvPrefix(env: Record): string { return Object.entries(env) .map(([key, value]) => `${key}=${shellEscape(value)}`) - .join(" ") + .join(" \\\n") } export function createNonInteractiveEnvHook(_ctx: PluginInput) {