[GH-ISSUE #327] Why is the chat record message field empty every time I commit #112

Closed
opened 2026-03-02 04:11:54 +03:00 by kerem · 4 comments
Owner

Originally created by @wangkaizhuang on GitHub (Jan 7, 2026).
Original GitHub issue: https://github.com/git-ai-project/git-ai/issues/327

Image When the hook is triggered, it displays "right", which appears to be an error output. I'm not sure if this is normal, but every time I submit a commit, I can't find the chat record content
Originally created by @wangkaizhuang on GitHub (Jan 7, 2026). Original GitHub issue: https://github.com/git-ai-project/git-ai/issues/327 <img width="673" height="552" alt="Image" src="https://github.com/user-attachments/assets/604a9bfe-d7fd-4864-9889-7b8c26863ecf" /> When the hook is triggered, it displays "right", which appears to be an error output. I'm not sure if this is normal, but every time I submit a commit, I can't find the chat record content
kerem closed this issue 2026-03-02 04:11:55 +03:00
Author
Owner

@svarlamov commented on GitHub (Jan 7, 2026):

Thanks for using Git AI @wangkaizhuang! It looks like everything's working correctly.

Have you enabled prompt storage to notes? https://github.com/acunniffe/git-ai?tab=readme-ov-file#prompt-storage

git-ai config set prompt_storage notes

This command should help. Please let me know if you have any other issues and would love to hear more about how you're using Git AI https://calendly.com/acunniffe/meeting-with-git-ai-authors

<!-- gh-comment-id:3719386383 --> @svarlamov commented on GitHub (Jan 7, 2026): Thanks for using Git AI @wangkaizhuang! It looks like everything's working correctly. Have you enabled prompt storage to notes? https://github.com/acunniffe/git-ai?tab=readme-ov-file#prompt-storage ``` git-ai config set prompt_storage notes ``` This command should help. Please let me know if you have any other issues and would love to hear more about how you're using Git AI https://calendly.com/acunniffe/meeting-with-git-ai-authors
Author
Owner

@wangkaizhuang commented on GitHub (Jan 8, 2026):

@svarlamov thank you,I also discovered this issue yesterday and tried making some modifications. Actually, it's like this, but I didn't configure it in config.json before, and it still works. Is it a new modification made recently? Also, I'm curious about how your chat records with AI are synchronized to the official repository. After I pushed to the fork repository, the notes couldn't be synchronized to the official repository. I'm curious about how your team overcame this. Because after downloading, I saw the chat records in your code, and I tried both GitHub and Bitbucket, but neither worked

<!-- gh-comment-id:3722502813 --> @wangkaizhuang commented on GitHub (Jan 8, 2026): @svarlamov thank you,I also discovered this issue yesterday and tried making some modifications. Actually, it's like this, but I didn't configure it in config.json before, and it still works. Is it a new modification made recently? Also, I'm curious about how your chat records with AI are synchronized to the official repository. After I pushed to the fork repository, the notes couldn't be synchronized to the official repository. I'm curious about how your team overcame this. Because after downloading, I saw the chat records in your code, and I tried both GitHub and Bitbucket, but neither worked
Author
Owner

@wangkaizhuang commented on GitHub (Jan 8, 2026):

Additionally, I noticed that git-ai does not seem to be compatible with Sourcetree. When I submit code using Sourcetree, I cannot see the notes in the fork repository

<!-- gh-comment-id:3722539027 --> @wangkaizhuang commented on GitHub (Jan 8, 2026): Additionally, I noticed that git-ai does not seem to be compatible with Sourcetree. When I submit code using Sourcetree, I cannot see the notes in the fork repository
Author
Owner

@svarlamov commented on GitHub (Jan 8, 2026):

Great to hear the command helped! Yes, it was a somewhat recent change to the prompt storage API, as we found a lot of users did not want their prompts pushed into the notes by default.

Thank you for opening the issue about forks -- it's definitely possible but will require some feature work in git-ai and possibly with workflows/actions to consistently copy the notes over. Open to any ideas/input on this if you have!

compatible with Sourcetree. When I submit code using Sourcetree, I cannot see the notes in the fork repository

I'm not sure I follow understand this. Is Sourcetree completely incompatible with git notes (e.g., nothing works) or it only doesn't work with forks (similar to Github, Gitlab).

Going to close this issue since we've resolved it, but please feel free to keep the conversation going here or in the forks issue 😄

<!-- gh-comment-id:3725113216 --> @svarlamov commented on GitHub (Jan 8, 2026): Great to hear the command helped! Yes, it was a somewhat recent change to the prompt storage API, as we found a lot of users did not want their prompts pushed into the notes by default. Thank you for opening the issue about forks -- it's definitely possible but will require some feature work in git-ai and possibly with workflows/actions to consistently copy the notes over. Open to any ideas/input on this if you have! >compatible with Sourcetree. When I submit code using Sourcetree, I cannot see the notes in the fork repository I'm not sure I follow understand this. Is Sourcetree completely incompatible with git notes (e.g., nothing works) or it only doesn't work with forks (similar to Github, Gitlab). Going to close this issue since we've resolved it, but please feel free to keep the conversation going here or in the forks issue 😄
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/git-ai#112
No description provided.