sourcegraph / cody

Type less, code more: Cody is an AI code assistant that uses advanced search and codebase context to help you write and fix code.
https://cody.dev
Apache License 2.0
2.53k stars 261 forks source link

Rerank local and remote context, display alt context in UI #5089

Closed beyang closed 1 month ago

beyang commented 1 month ago

Show chat ranking alternatives by setting the cody.internal.showChatAlternatives setting:

https://github.com/user-attachments/assets/febf1781-842b-4b8e-8429-5dee41c4a4d5

Only affects behavior when the cody.internal.serverSideContext flag is set.

Test plan

Check out the branch and set cody.internal.showChatAlternatives and cody.internal.serverSideContext. Ask a question with enhanced context turned on.

github-actions[bot] commented 1 month ago

‼️ Hey @sourcegraph/cody-security, please review this PR carefully as it introduces the usage of an unsafe_ function or abuses PromptString.