fix(kugetsu): set GIT_EDITOR=cat for non-interactive git operations (fixes #70) #72

Merged
shoko merged 1 commits from fix/issue-70-git-editor into main 2026-04-01 10:55:00 +02:00
Showing only changes of commit ad468f39da - Show all commits

View File

@@ -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)