sourcegraph / cody

AI that knows your entire codebase
https://cody.dev
Apache License 2.0
2.24k stars 213 forks source link

Update prompt template for openctx context items #4634

Closed thenamankumar closed 1 week ago

thenamankumar commented 1 week ago

closes: https://linear.app/sourcegraph/issue/CODY-2509/update-prompt-template-for-openctx-context-items

The current prompt template for all the context items is Codebase context from file {filePath{inRepo}:\n{languageID}\n{content}.

For OpenCtx context items such as Linear issues, it doesn't make sense.

The updated prompt template for OpenCtx items is Content for "{title}" from {displayPath}:\n{content}.

Test plan

manually tested