Aider-AI / aider

aider is AI pair programming in your terminal
https://aider.chat/
Apache License 2.0
21.89k stars 2.03k forks source link

commit message creation `/commit` creates messages with unwanted text #975

Closed kenowessels closed 3 months ago

kenowessels commented 3 months ago

Issue

Since the change to the commit message prompt, it does not seem to work properly for me.

I get messages like these running /commit:

feat(foo): add support for bar

The commit message follows the Conventional Commits guidelines:

feat(foo): add support for bar

This happened for multiple commit messages I tried to create.

Version and model info

Aider v0.47.0 Models: claude-3-5-sonnet-20240620 with diff edit format, weak model claude-3-haiku-20240307 Git repo: .git with 13,733 files Repo-map: using 1024 tokens

AIDER_AUTO_COMMITS=false

lightningRalf commented 3 months ago

This just got introduced in 0.47.0. you can see the prompts here: https://github.com/paul-gauthier/aider/blob/main/aider/prompts.py Also there was a change in 0.47.1. Maybe try again and report back, or edit the prompt.

paul-gauthier commented 3 months ago

Thanks for trying aider and filing this issue.

The latest 0.47.1 should be better for this.

paul-gauthier commented 3 months ago

I'm going to close this issue for now, but feel free to add a comment here and I will re-open or file a new issue any time.