Add AI-generated commit messages#74
Merged
Merged
Conversation
Surface provider error bodies through AiRequestError, keep the Anthropic version header for keyless requests, and cap commit prompt file summaries. Add docs/ai-features.md and make Icon.Sparkle use a collision-free gradient mark.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds AI-generated commit messages to the Changes tab: a provider-agnostic AI layer in the main process, a settings pane to configure a provider/model/key, and composer controls to generate a commit message from the staged diff.
What's included
src/main/ai/) — provider registry, HTTP client, commit-context builder, and prompt construction, with encrypted credential storage (cipher.ts+store.ts).aihandlers wired throughshared/types.ts→shared/ipc.ts→preload→main/ipc.AiComposerControlsin the commit composer to generate/insert messages, plus anAiPanein Settings to pick provider, model, and API key.features/ai.css.docs/ai-features.mddocumenting setup and usage.Notes
Signing, provider keys, and all git/network work stay in the main process; the renderer talks to it only through the IPC contract.