feat(kugetsu): set GIT_EDITOR=cat in kugetsu init for non-interactive git operations #70
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem
When PM or dev agents run git rebase/conflict resolution in headless mode, git opens vim which requires TTY. This causes operations to hang waiting for input.
Example error:
Solution
In kugetsu init, set
GIT_EDITOR=catin the opencode session environment. This tells git to usecatas editor, which outputs to stdout and exits immediately instead of opening vim.Implementation
In kugetsu init, when creating base session and pm-agent session, set environment:
This ensures all git operations (rebase, commit --amend, etc.) that might open an editor use cat instead.
Tasks