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

Use server proxy for web mentions in Cody Web #5085

Closed camdencheek closed 1 month ago

camdencheek commented 1 month ago

This updates the web context provider to optionally use the new endpoint in the GraphQL API (introduced here) to fetch web context in cody web to get around CORS issues.

Test plan

Tested dev build against local Sourcegraph instance. Also tested that web mentions still work in VSCode. screenshot-2024-08-01_14-40-53@2x

vovakulikov commented 1 month ago

@camdencheek merging this since we still need to bump the version in the Sourcegraph client. Change seems very safe since only Cody Web uses new Web URL mention logic

sqs commented 1 month ago

this is awesome, thanks!!