continuedev / continue

⏩ Continue is the leading open-source AI code assistant. You can connect any models and any context to build custom autocomplete and chat experiences inside VS Code and JetBrains
https://docs.continue.dev/
Apache License 2.0
13.66k stars 959 forks source link

Using newly added docs only works after reloading window #1528

Open nmcostello opened 1 month ago

nmcostello commented 1 month ago

Before submitting your bug report

Relevant environment info

- OS: maxOS
- Continue: Latest VS Code
- IDE: VS Code

Description

I have noticed that after I add a new doc, I reference it and I get a generic response from the LLM because it is clearly not using the doc as context. However, I run cmd + shift + p: Developer: Reload Window and then it works.

To reproduce

  1. @docs: add a new doc
  2. Wait for message that the doc indexes
  3. @docs and reference newly indexed doc
  4. Get some non-specific answer back
  5. Reload window
  6. Run the same command and question
  7. It works

Log output

N/A

menjilx commented 1 month ago
image

I added Google Search Console API but after restarting VS Code the docs was gone.

sestinj commented 2 weeks ago

This should now be resolved in the latest release, along with the ability to delete docs that have been added manually.

@menjilx my first thought is that this could be happening if the docs were still in the process of being indexed when the window was reloaded. Can you verify that this is still happening on the latest release?