Skip to content

Commit

Permalink
don't implicitly or duplicatively add user selection in chat context (#…
Browse files Browse the repository at this point in the history
…5060)

It is still added if addEnhancedContext is true to preserve the behavior
for older non-webview clients for backcompat.

fix
https://linear.app/sourcegraph/issue/SRCH-819/duplicate-context-entries-appearing-when-only-using-the-selection

fix
https://linear.app/sourcegraph/issue/CODY-1972/file-selection-is-included-as-context-even-if-the-user-deletes-it



## Test plan

Open editor. Select code. Run chat. Ensure selection is not duplicated.
Now run chat without a selection @-mention. Ensure there is no selection
used in the context.
  • Loading branch information
sqs authored Jul 30, 2024
1 parent b534396 commit 4eaf4d8
Show file tree
Hide file tree
Showing 4 changed files with 259 additions and 550 deletions.
Loading

0 comments on commit 4eaf4d8

Please sign in to comment.