Double context when using @Codebase in prompt and clicking 'Use Codebase'
Before submitting your bug report
- [X] I believe this is a bug. I'll try to join the Continue Discord for questions
- [X] I'm not able to find an open issue that reports the same bug
- [X] I've seen the troubleshooting guide on the Continue Docs
Relevant environment info
- OS:Win 11
- Continue: 8.51
- IDE: VSCode
- Model: Many, N/A
- config.json: N/A
"embeddingsProvider": {
"provider": "openai",
"model": "voyage-code-2",
"apiBase": "https://api.voyageai.com/v1/",
"apiKey": "zzzz"
},
"reranker": {
"name": "voyage",
"params": {
"apiKey": "zzzz"
}
Description
When using @Codebase in prompt and clicking 'Use Codebase' instead of 'Enter' you will see double the context items created and double 'Instructions'. I didn't understand that 'Use Codebase' was an alternative way to use @Codebase and wasn't sure if I needed to click it to use the RAG or if 'Enter' was the way to go. When you use both I think the preferred behavior would still be to execute the context provider only once.
To reproduce
- Open a repo in VSCode
- Ctrl L, open a continue prompt
- Start with @codebase then a query then click 'Use Codebase'
- Look at context items, you will see 2x the usual context. Contrast with clicking enter.
Log output
No response
Thanks for the feedback here @shermanhuman ! We updated the text to say @codebase to try and make this more clear.
This issue hasn't been updated in 90 days and will be closed after an additional 10 days without activity. If it's still important, please leave a comment and share any new information that would help us address the issue.
This issue was closed because it wasn't updated for 10 days after being marked stale. If it's still important, please reopen + comment and we'll gladly take another look!