-
Notifications
You must be signed in to change notification settings - Fork 757
Open
Labels
Description
Describe the bug
I'm using Copilot to generate commit messages by having it directly edit a COMMIT_EDITMSG file with a simple prompt like:
copilot --allow-tool write -p "Update .git/COMMIT_EDITMSG with an appropriate commit
message. The file already exists, so don't try to create it. Do not try to run any
tools. All the information you need is in the COMMIT_EDITMSG file."
This works fine for generating commit messages, but Copilot almost never exits after generating the message. It will show that it read the COMMIT_EDITMSG file, and show the diff from editing it, and I can see that the file was properly updated. Copilot never "finishes", though; it remains running, but apparently doing nothing, until I hit ctrl+c. Only once out of 10 or so runs has it actually exited after updating the commit message.
Affected version
0.0.339 Commit: 66f4dfe
Steps to reproduce the behavior
- In a git repo, make a change
- Run `git commit --all"
- With the commit message editor open, in another terminal in the repo room directory, run
copilot --allow-tool write -p "Update .git/COMMIT_EDITMSG with an appropriate commit message. The file already exists, so don't try to create it. Do not try to run any tools. All the information you need is in the COMMIT_EDITMSG file."
Expected behavior
Copilot should update the COMMIT_EDITMSG file and exit.
Additional context
- OS: macOS 26.0.1
- Terminal: kitty 0.43.1
- Shell: fish 4.1.2