Skip to content

[Bug]: most of the time it does not work at all #523

@casidiablo

Description

@casidiablo

Opencommit Version

3.2.10

Node Version

24.10

NPM Version

11.6.0

What OS are you seeing the problem on?

Mac

What happened?

I would say 90% of the time OCO does not work; instead it returns:

❯ oco
┌  open-commit
│
◇  3 staged files:
  journals/2025_10_21.md
  journals/2025_10_23.md
  logseq/custom.css
│
◇  ✖ Failed to generate the commit message
Error: EMPTY_MESSAGE
    at generateCommitMessageByDiff (/opt/homebrew/lib/node_modules/opencommit/out/cli.cjs:67375:13)
    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
    at async generateCommitMessageFromGitDiff (/opt/homebrew/lib/node_modules/opencommit/out/cli.cjs:67595:25)
    at async trytm (/opt/homebrew/lib/node_modules/opencommit/out/cli.cjs:67563:18)
    at async commit (/opt/homebrew/lib/node_modules/opencommit/out/cli.cjs:67768:35)
│
└  ✖ EMPTY_MESSAGE

When it does work it is amazing and brings me to tears; but yeah, most of the time it does not.

If it's worth anything, I am using a Gemini token and the model is set to Gemini 2.5 Flash (tried other models too, but got same behavior)

Expected Behavior

It should work always; or at the very least print a better error message.

Current Behavior

It just fails

Possible Solution

No response

Steps to Reproduce

No response

Relevant log output

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions