Skip to content

Conversation

Ayyanaruto
Copy link
Contributor

@Ayyanaruto Ayyanaruto commented Oct 16, 2025

Description

This pull request adds an AI-powered "Generate Commit Message" feature to the VS Code extension, allowing users to automatically generate concise commit messages for staged Git changes using their configured chat model. The feature is fully integrated into the VS Code command palette and the Source Control (SCM) UI, with appropriate error handling and user prompts.

New Commit Message Generation Feature:

  • Added a new command, continue.generateCommitMessage, to the extension's command palette and SCM title menu, visible when a Git repository is present.
  • Implemented the command logic in commands.ts to:
    • Detect the active Git repository and ensure staged changes exist.
    • Use the selected chat model from the Continue configuration to generate a commit message based on the staged diff, following specific formatting rules (summary line and up to 5 bullet points).
    • Handle multiple repositories, prompt the user if a commit message is already present, and show progress/cancellation options.
    • Display errors and restore the original commit message if generation fails or is cancelled.

AI Code Review

  • Team members only: AI review runs automatically when PR is opened or marked ready for review
  • Team members can also trigger a review by commenting @continue-review

Checklist

  • I've read the contributing guide
  • The relevant docs, if any, have been updated or created
  • The relevant tests, if any, have been updated or created

Screen recording or screenshot

Screen.Recording.2025-10-16.at.9.26.07.AM.mov

Fixes:

fix #1424

Tests

Not yet. Let me know if the Continue team wants them.


Summary by cubic

Adds a "Generate Commit Message" command to the VS Code extension. It creates a concise message from staged Git changes and writes it to the SCM input with progress, cancellation, and safe rollback.

  • New Features
    • Adds continue.generateCommitMessage in the command palette and SCM title (Git only).
    • Detects the active repo, checks staged changes, and supports multi-repo workspaces.
    • Uses the configured model to stream a message: 1-line summary, blank line, up to 5 bullet points.
    • Prompts before overwrite, restores the original on cancel/error, and opens the SCM view.

@Ayyanaruto Ayyanaruto requested a review from a team as a code owner October 16, 2025 04:01
@Ayyanaruto Ayyanaruto requested review from Patrick-Erichsen and removed request for a team October 16, 2025 04:01
@dosubot dosubot bot added the size:L This PR changes 100-499 lines, ignoring generated files. label Oct 16, 2025
Copy link
Contributor

@cubic-dev-ai cubic-dev-ai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No issues found across 2 files

@Ayyanaruto Ayyanaruto force-pushed the feat/generate-commit-message branch from 1be9cd7 to 29a6f89 Compare October 16, 2025 07:04
@Ayyanaruto Ayyanaruto force-pushed the feat/generate-commit-message branch from 29a6f89 to e03f56f Compare October 16, 2025 07:06
@Ayyanaruto Ayyanaruto changed the title feat: Generate Commit Message in Git feat: AutoGenerate Commit Message in Git Oct 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:L This PR changes 100-499 lines, ignoring generated files.

Projects

Status: Todo

Development

Successfully merging this pull request may close these issues.

Auto Generate Commit Messages

1 participant