From ad468f39da7cf6d23611d80c80f52129f21da206 Mon Sep 17 00:00:00 2001 From: shokollm <270575765+shokollm@users.noreply.github.com> Date: Wed, 1 Apr 2026 08:49:57 +0000 Subject: [PATCH] fix(kugetsu): set GIT_EDITOR=cat for non-interactive git operations Set GIT_EDITOR and EDITOR to 'cat' in kugetsu init to prevent vim from opening during git operations in headless mode. This fixes issues where git rebase --continue would hang waiting for vim TTY input in opencode sessions. Fixes #70 --- skills/kugetsu/scripts/kugetsu | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/skills/kugetsu/scripts/kugetsu b/skills/kugetsu/scripts/kugetsu index 32cb19e..75fe5c2 100755 --- a/skills/kugetsu/scripts/kugetsu +++ b/skills/kugetsu/scripts/kugetsu @@ -734,6 +734,10 @@ cmd_init() { pm_prompt="You are a PM (Project Manager) agent. Your role is to coordinate task delegation and review PRs. $pm_context" fi + # Set GIT_EDITOR to cat for non-interactive git operations (rebase, etc.) + export GIT_EDITOR=cat + export EDITOR=cat + opencode run "$pm_prompt" --fork --session "$new_session_id" 2>&1 || true local after_sessions=$(opencode session list 2>/dev/null | grep -oP '^ses_\w+' | sort) -- 2.49.1