fix(kugetsu): set GIT_EDITOR=cat for non-interactive git operations (fixes #70) #72
Reference in New Issue
Block a user
Delete Branch "fix/issue-70-git-editor"
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?
Summary
Set
GIT_EDITOR=catandEDITOR=catin kugetsu init to prevent vim from opening during git operations in headless mode.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.
Solution
In kugetsu init, before starting opencode session, set:
This tells git to use
catas editor, which outputs to stdout and exits immediately instead of opening vim.Changes
Fixes #70
lgtm