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
Owner

Summary

Set GIT_EDITOR=cat and EDITOR=cat in 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:

Vim: Warning: Output is not to a terminal
Vim: Warning: Input is not from a terminal

This causes operations to hang waiting for input.

Solution

In kugetsu init, before starting opencode session, set:

export GIT_EDITOR=cat
export EDITOR=cat

This tells git to use cat as editor, which outputs to stdout and exits immediately instead of opening vim.

Changes

  • Added GIT_EDITOR=cat and EDITOR=cat exports in kugetsu init before opencode run

Fixes #70

## Summary Set `GIT_EDITOR=cat` and `EDITOR=cat` in 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: ``` Vim: Warning: Output is not to a terminal Vim: Warning: Input is not from a terminal ``` This causes operations to hang waiting for input. ## Solution In kugetsu init, before starting opencode session, set: ```bash export GIT_EDITOR=cat export EDITOR=cat ``` This tells git to use `cat` as editor, which outputs to stdout and exits immediately instead of opening vim. ## Changes - Added GIT_EDITOR=cat and EDITOR=cat exports in kugetsu init before opencode run Fixes #70
shoko added 1 commit 2026-04-01 10:50:14 +02:00
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
han approved these changes 2026-04-01 10:54:14 +02:00
han left a comment
First-time contributor

lgtm

lgtm
shoko merged commit 2b2515ed3e into main 2026-04-01 10:55:00 +02:00
Sign in to join this conversation.