Skip to content

Conversation

sharon-wang
Copy link
Member

@sharon-wang sharon-wang commented Aug 16, 2025

Summary

Release Notes

New Features

QA Notes

See this PR for usage: #8257

Git features enabled by default!

  • positron.assistant.gitIntegration.enable setting still available in the settings UI but is now enabled by default

Source Control... context option disabled by default for Web/Workbench

  • On Web / Workbench, the Source Control... context option should be missing:

    image
  • On Desktop, it should be available (some extra options because of my clipboard and editor state):

    image

positron.assistant.gitIntegration.enable setting can be used to make Source Control... context option available on Web/Workbench

  • Add "positron.assistant.sourceControlHistoryContext.enable": true to the settings JSON in a web build to enable the Source Control... context option (helpful for debugging)

Copy link

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

readme  valid tags

georgestagg added a commit that referenced this pull request Aug 19, 2025
* Completes the second half of the work requested by @jennybc in #8207,
so that specific commit IDs can be added as context.

* This should probably be merged and tested before enabling git
integration by default, in #9073.

### QA Notes

To test this integration:

0) Enable git integrations in user settings:
`"positron.assistant.gitIntegration.enable": true`.

1) Load a project with an existing git repo and history into Positron.

2) Open a fresh chat window. Click "Add Context", "Source Control" and
then select a specific commit from the quick pick menu.

3) Ensure the commit has been added as context:
<img width="404" height="142" alt="Screenshot 2025-08-18 at 11 01 36"
src="https://github.com/user-attachments/assets/38de2de3-877e-4950-8406-8e2f5d4cb75a"
/>

4) Ask assistant about the commit. Confirm assistant can see the
changes.

<img width="656" height="572" alt="Screenshot 2025-08-18 at 11 02 56"
src="https://github.com/user-attachments/assets/30a237f3-a890-4f3d-8f32-389cd124d95a"
/>
georgestagg
georgestagg previously approved these changes Aug 19, 2025
Copy link
Contributor

@georgestagg georgestagg left a comment

Choose a reason for hiding this comment

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

#9075 has been merged, fixing a bug with git integration.

With that done, this LGTM!

nstrayer pushed a commit that referenced this pull request Aug 20, 2025
* Completes the second half of the work requested by @jennybc in #8207,
so that specific commit IDs can be added as context.

* This should probably be merged and tested before enabling git
integration by default, in #9073.

### QA Notes

To test this integration:

0) Enable git integrations in user settings:
`"positron.assistant.gitIntegration.enable": true`.

1) Load a project with an existing git repo and history into Positron.

2) Open a fresh chat window. Click "Add Context", "Source Control" and
then select a specific commit from the quick pick menu.

3) Ensure the commit has been added as context:
<img width="404" height="142" alt="Screenshot 2025-08-18 at 11 01 36"
src="https://github.com/user-attachments/assets/38de2de3-877e-4950-8406-8e2f5d4cb75a"
/>

4) Ask assistant about the commit. Confirm assistant can see the
changes.

<img width="656" height="572" alt="Screenshot 2025-08-18 at 11 02 56"
src="https://github.com/user-attachments/assets/30a237f3-a890-4f3d-8f32-389cd124d95a"
/>
@jonvanausdeln
Copy link
Contributor

Might want to wait for a decision about #9125 before merging this.

@sharon-wang sharon-wang force-pushed the assistant/enable-git-integration-by-default branch from 80f4a1f to db16fff Compare August 26, 2025 18:40
@sharon-wang
Copy link
Member Author

sharon-wang commented Aug 26, 2025

An update!

this will be helpful for enabling the source control context to debug the error in a web build, but still disables it by default for web and enables it by default for desktop
@sharon-wang sharon-wang merged commit dbb9d7e into main Aug 27, 2025
9 checks passed
@sharon-wang sharon-wang deleted the assistant/enable-git-integration-by-default branch August 27, 2025 14:55
@github-actions github-actions bot locked and limited conversation to collaborators Aug 27, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants