Skip to content

Copilot not existing executing non-interactive prompt #286

@jason0x43

Description

@jason0x43

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

  1. In a git repo, make a change
  2. Run `git commit --all"
  3. 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions