From 4434a59cf0602d651c7700cdb34682688400048c Mon Sep 17 00:00:00 2001 From: YeonGyu-Kim Date: Fri, 2 Jan 2026 11:55:18 +0900 Subject: [PATCH] fix(non-interactive-env): use shell no-op for editor env vars MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Changed GIT_EDITOR, EDITOR, GIT_SEQUENCE_EDITOR from 'true' to ':' (shell no-op builtin) - Changed VISUAL from 'true' to '' (empty string to prevent fallback issues) - Added GIT_MERGE_AUTOEDIT: 'no' to prevent merge editor prompts Fixes SIGTERM issues when git tries to open editors in non-interactive environments. 🤖 Generated with assistance of OhMyOpenCode (https://github.com/code-yeongyu/oh-my-opencode) --- src/hooks/non-interactive-env/constants.ts | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/hooks/non-interactive-env/constants.ts b/src/hooks/non-interactive-env/constants.ts index 2636802..40ac056 100644 --- a/src/hooks/non-interactive-env/constants.ts +++ b/src/hooks/non-interactive-env/constants.ts @@ -7,10 +7,11 @@ export const NON_INTERACTIVE_ENV: Record = { GCM_INTERACTIVE: "never", HOMEBREW_NO_AUTO_UPDATE: "1", // Block interactive editors - git rebase, commit, etc. - GIT_EDITOR: "true", - EDITOR: "true", - VISUAL: "true", - GIT_SEQUENCE_EDITOR: "true", + GIT_EDITOR: ":", + EDITOR: ":", + VISUAL: "", + GIT_SEQUENCE_EDITOR: ":", + GIT_MERGE_AUTOEDIT: "no", // Block pagers GIT_PAGER: "cat", PAGER: "cat",