Skip to content

Assistant: Initial experimental git integration #8257

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

georgestagg
Copy link
Contributor

This PR adds initial experimental git integration with Positron Assistant.

Both features are hidden behind an experimental config switch for the moment.

QA Notes

  1. Enable the experimental config switch:
    "positron.assistant.gitIntegration.enable": true,
  1. Open a workspace containing an active git repo. Make some changes for the LLM to see. Optionally stage some of them.

  2. Ask the LLM about the changes (optionally hitting # and adding the new context item #changes). It should be able to see both your staged and unstaged changes.

Screenshot 2025-06-24 at 14 00 24

  1. In the Git pane, hit the new sparkle button to generate a git commit message. If there are staged changes, only they should be considered. Otherwise, all changes and new untracked files should be considered.

Screenshot 2025-06-24 at 14 18 14

@georgestagg georgestagg requested a review from sharon-wang June 24, 2025 13:34
Copy link

github-actions bot commented Jun 24, 2025

E2E Tests 🚀
This PR will run tests tagged with: @:critical

readme  valid tags

@georgestagg georgestagg requested a review from seeM June 24, 2025 13:34
seeM
seeM previously approved these changes Jun 25, 2025
Copy link
Contributor

@seeM seeM left a comment

Choose a reason for hiding this comment

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

I like it!

#changes works as expected in the chat pane ✅

image

I can generate the commit message, and cancel generation ✅

Screen.Recording.2025-06-25.at.14.24.57.mov

And neither of the above appear when the feature flag is disabled.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants