continue icon indicating copy to clipboard operation
continue copied to clipboard

Double context when using @Codebase in prompt and clicking 'Use Codebase'

Open shermanhuman opened this issue 1 year ago • 1 comments

Before submitting your bug report

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

  1. Open a repo in VSCode
  2. Ctrl L, open a continue prompt
  3. Start with @codebase then a query then click 'Use Codebase'
  4. Look at context items, you will see 2x the usual context. Contrast with clicking enter.

Log output

No response

shermanhuman avatar Sep 13 '24 18:09 shermanhuman

Thanks for the feedback here @shermanhuman ! We updated the text to say @codebase to try and make this more clear.

Screenshot 2024-09-20 at 7 50 55 PM

Patrick-Erichsen avatar Sep 21 '24 02:09 Patrick-Erichsen

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.

github-actions[bot] avatar Mar 03 '25 04:03 github-actions[bot]

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!

github-actions[bot] avatar Mar 15 '25 02:03 github-actions[bot]