Richard Boisvert and Christopher Biscardi
6d605b393c
git_ui: Add setting for custom commit message instructions ( #58188 )
...
There's currently no way to customize AI-generated commit messages on a
per-commit basis. You can put instructions in AGENTS.md or a project
rules file, but those get fed into every agent interaction, not just
commit generation. The built-in "Commit message" prompt used to be
editable in the Rules Library, but that was replaced by Skills, which
aren't used when generating commit messages.
This PR adds an `agent.commit_message_instructions` setting. Its
contents are added to the commit message prompt in their own section,
alongside any project rules, so you can ask for a specific format
(Conventional Commits, a ticket prefix, etc.) without changing how the
agent behaves elsewhere:
```json
{
"agent": {
"commit_message_instructions": "Use the Conventional Commits format: <type>(<scope>): <description>."
}
}
```
Self-Review Checklist:
- [x] I've reviewed my own diff for quality, security, and reliability
- [x] Unsafe blocks (if any) have justifying comments
- [x] The content is consistent with the [UI/UX
checklist](https://github.com/zed-industries/zed/blob/main/CONTRIBUTING.md#uiux-checklist )
- [x] Tests cover the new/changed behavior
- [x] Performance impact has been considered and is acceptable
Addresses #26503
Release Notes:
- Added an `agent.commit_message_instructions` setting to customize
AI-generated git commit messages.
---------
Co-authored-by: Christopher Biscardi <chris@christopherbiscardi.com >
2026-06-01 03:19:28 +00:00
..
2026-05-29 15:27:28 +00:00
2026-05-20 20:51:56 +00:00
2026-05-27 10:31:57 +00:00
2026-05-15 12:01:31 +00:00
2026-06-01 03:19:28 +00:00
2026-05-26 15:11:19 +00:00
2026-06-01 03:19:28 +00:00
2026-05-28 23:04:44 +00:00
2026-06-01 03:19:28 +00:00
2026-05-29 07:06:57 +00:00
2026-05-28 18:20:11 +00:00
2026-04-23 23:47:30 +00:00
2026-05-29 15:21:53 +00:00
2026-05-27 10:31:53 +00:00
2026-05-01 22:33:54 +00:00
2026-05-26 20:49:22 +00:00
2026-05-28 17:45:54 +00:00
2026-03-13 08:00:22 +00:00
2026-05-27 10:31:53 +00:00
2026-05-31 18:32:46 +00:00
2026-05-29 15:58:02 +00:00
2026-05-11 15:53:20 +00:00
2026-05-27 16:39:19 +00:00
2026-02-25 08:12:04 +01:00
2026-05-18 14:49:40 +00:00
2026-05-21 08:32:23 +00:00
2026-05-11 15:22:43 +00:00
2026-04-02 17:06:57 -03:00
2026-05-31 19:17:28 +00:00
2026-05-08 15:53:40 +00:00
2026-03-27 18:06:56 -07:00
2026-05-27 16:08:52 +00:00
2026-05-29 07:06:57 +00:00
2026-05-29 07:06:57 +00:00
2026-05-19 17:45:07 +00:00
2026-05-28 15:00:31 +00:00
2026-05-28 15:00:31 +00:00
2026-05-15 17:08:40 +00:00
2026-05-04 06:30:47 +00:00
2026-04-02 17:06:57 -03:00
2026-05-15 11:12:41 +00:00
2026-04-27 08:42:45 +00:00
2026-04-29 10:27:47 +00:00
2026-04-24 10:29:51 +00:00
2026-05-13 23:35:10 +00:00
2026-05-25 11:53:12 +00:00
2026-05-25 17:01:58 +00:00
2026-04-29 10:27:47 +00:00
2026-05-29 05:12:28 +00:00
2026-05-28 17:30:36 +00:00
2026-04-30 11:10:14 +00:00
2026-05-29 07:21:30 +00:00
2026-05-27 14:11:23 +00:00
2026-05-20 22:42:31 +00:00
2026-05-27 14:11:23 +00:00
2026-04-10 13:27:04 -04:00
2026-05-21 15:23:20 +00:00
2026-05-31 23:41:08 +00:00
2026-05-06 09:28:05 +00:00
2026-05-08 10:36:03 +00:00
2026-04-07 12:28:19 -03:00
2026-02-28 21:47:30 -05:00
2026-05-27 16:21:30 +00:00
2026-02-19 18:57:49 +01:00
2026-02-28 22:42:19 -05:00
2026-05-21 08:32:23 +00:00
2026-04-29 07:27:05 +00:00
2026-05-21 08:32:23 +00:00
2026-05-27 10:31:53 +00:00
2026-05-21 08:32:23 +00:00
2026-05-29 14:10:02 +00:00
2026-04-18 06:34:19 +00:00
2026-05-04 06:30:47 +00:00
2026-05-27 10:31:53 +00:00
2026-05-27 15:35:46 +00:00
2026-02-19 18:57:49 +01:00
2026-04-03 11:00:13 +00:00
2026-05-06 10:56:20 +00:00
2026-05-27 20:59:01 +00:00
2026-05-26 02:10:47 +00:00
2026-04-30 14:17:32 +00:00
2026-06-01 03:19:28 +00:00
2026-05-26 13:41:28 +00:00
2026-05-21 10:00:29 +00:00
2026-05-30 20:37:39 +00:00
2026-05-27 18:17:59 +00:00
2026-05-27 18:17:59 +00:00
2026-05-26 14:32:45 +00:00
2026-03-24 11:05:12 +00:00
2026-04-24 08:58:26 +00:00
2026-04-14 18:14:31 +02:00
2026-04-23 23:47:30 +00:00
2026-05-26 12:59:21 +00:00
2026-05-26 14:32:45 +00:00
2026-05-27 18:17:59 +00:00
2026-05-31 18:42:00 +00:00
2026-04-07 11:19:21 +05:30
2026-05-26 02:10:47 +00:00
2026-05-08 10:36:03 +00:00
2026-04-22 22:22:10 +00:00
2026-05-14 22:20:34 +00:00
2026-05-26 12:59:21 +00:00
2026-05-05 22:41:13 +00:00
2026-04-29 10:27:47 +00:00
2026-05-31 18:42:51 +00:00
2026-05-31 18:42:00 +00:00
2026-04-18 00:55:44 +02:00
2026-04-02 12:52:42 +00:00
2026-05-27 13:05:55 +00:00
2026-05-26 10:00:34 +00:00
2026-05-29 16:28:27 +00:00
2026-05-15 16:27:11 +00:00
2026-03-25 12:07:34 -06:00
2026-05-08 10:36:03 +00:00
2026-05-20 14:12:42 +00:00
2026-05-26 14:58:09 +00:00
2026-05-08 10:36:03 +00:00
2026-05-29 15:21:53 +00:00
2026-03-06 16:49:55 +00:00
2026-05-27 10:31:53 +00:00
2026-05-28 13:47:58 +00:00
2026-05-28 13:47:58 +00:00
2026-05-27 16:27:18 +00:00
2026-05-04 22:51:56 +00:00
2026-04-23 18:41:52 +00:00
2026-05-06 12:27:58 +00:00
2026-05-31 15:19:20 +00:00
2026-02-20 13:36:04 +00:00
2026-05-27 04:39:26 +00:00
2026-05-29 07:06:57 +00:00
2026-05-14 21:03:56 +00:00
2026-04-15 02:21:56 -04:00
2026-05-29 07:06:57 +00:00
2026-05-29 11:23:56 +00:00
2026-05-21 03:59:50 +00:00
2026-05-26 10:00:34 +00:00
2026-05-28 17:45:54 +00:00
2026-05-05 05:10:46 +00:00
2026-05-27 12:43:06 +00:00
2026-05-12 15:52:52 +00:00
2026-05-14 16:30:08 +00:00
2026-05-06 14:06:48 +00:00
2026-04-08 00:34:54 +00:00
2026-03-31 12:48:22 +03:00
2026-05-31 19:17:28 +00:00
2026-05-05 22:41:13 +00:00
2026-05-26 13:41:44 +00:00
2026-05-05 22:41:13 +00:00
2026-05-29 15:27:28 +00:00
2026-05-31 19:17:28 +00:00
2026-05-21 19:48:43 +00:00
2026-05-15 21:17:43 +00:00
2026-05-29 15:58:02 +00:00
2026-04-16 16:36:09 -07:00
2026-05-31 19:17:28 +00:00
2026-05-28 20:14:34 +00:00
2026-05-08 21:03:40 +00:00
2026-05-27 10:31:53 +00:00
2026-05-26 07:09:47 +00:00
2026-05-27 20:35:32 +00:00
2026-05-29 15:58:02 +00:00
2026-03-27 14:41:25 +01:00
2026-05-25 11:53:12 +00:00
2026-03-18 12:05:57 -07:00
2026-05-28 15:25:54 +00:00
2026-06-01 03:19:28 +00:00
2026-03-25 12:07:34 -06:00
2026-04-02 00:44:53 +00:00
2026-05-29 07:06:57 +00:00
2026-05-05 16:25:56 +00:00
2026-05-29 03:47:05 +00:00
2026-05-28 23:04:44 +00:00
2026-04-29 10:27:47 +00:00
2026-05-05 22:41:13 +00:00
2026-04-24 10:29:51 +00:00
2026-05-27 19:33:04 +00:00
2026-05-27 10:31:53 +00:00
2026-03-29 14:43:05 +00:00
2026-03-31 08:06:37 -06:00
2026-05-04 06:30:47 +00:00
2026-05-27 10:31:53 +00:00
2026-05-12 16:20:53 +00:00
2026-05-29 17:49:11 +00:00
2026-05-28 22:24:22 +00:00
2026-05-28 09:34:57 +00:00
2026-05-27 10:31:53 +00:00
2026-05-20 02:33:07 +00:00
2026-03-27 14:41:25 +01:00
2026-03-27 14:41:25 +01:00
2026-04-23 23:47:30 +00:00
2026-05-21 22:16:01 +00:00
2026-05-28 19:43:30 +00:00
2026-05-27 20:02:48 +00:00
2026-05-08 10:36:03 +00:00
2026-05-29 07:06:57 +00:00
2026-05-29 07:06:57 +00:00
2026-05-29 07:06:57 +00:00
2026-03-27 14:41:25 +01:00
2026-05-25 16:20:30 +00:00
2026-05-31 19:27:21 +00:00
2026-03-19 12:53:26 -04:00
2026-05-27 10:31:53 +00:00
2026-05-12 19:40:00 +00:00
2026-03-27 14:41:25 +01:00
2026-05-01 22:33:54 +00:00
2026-05-29 07:06:57 +00:00
2026-05-31 19:28:18 +00:00
2026-02-19 18:57:49 +01:00
2026-05-29 16:28:27 +00:00
2026-05-29 19:43:26 +00:00
2026-05-27 16:08:52 +00:00
2026-04-02 17:06:57 -03:00
2026-04-02 17:06:57 -03:00
2026-05-13 11:34:50 +00:00
2026-03-03 08:37:58 +00:00
2026-05-28 20:19:17 +00:00
2026-05-28 20:19:17 +00:00