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

Cody Web: Remove implicit context in cody web #5095

Closed vovakulikov closed 1 month ago

vovakulikov commented 1 month ago

Closes https://linear.app/sourcegraph/issue/SRCH-820/make-cody-web-context-explicit

Prior to this PR, Cody Web used the initial context repository as a default source of context files for prompting. This raised some concerns about implicit context fetching, so this PR remotes this feature, and now chat relies only on user-provided file/repo/urls mentions in the message textbox.

Test plan

vovakulikov commented 1 month ago

@camdencheek only when you have this file as a mention in the textbox, which we still will have by default when you open the sidepanel cody chat, follow up questions which don't have mentions be default though won't have any context fetched *unless user enter mention again.

This is how it works in vscode at the moment.