continue
continue copied to clipboard
fix: do not delete docs indexes on resync
Description
When Continue loads, it takes several seconds for it to fetch the remote assistant configs. Until then, it defaults back to the local assistant config. If the user has their docs set up in the remote assistant but not in the local assistant, then this code to delete all non-existent docs from the index will cause all doc indexes to be cleared out on every restart, which is the behavior I am seeing in #6139. This would also be an issue for users who have multiple assistants with different docs in each one.
Fixes #6139.
Checklist
- [x] I've read the contributing guide
- [x] The relevant docs, if any, have been updated or created
- [x] The relevant tests, if any, have been updated or created
Tests
Manually verified that the fix works. There were no automated tests covering this functionality, and it is only deleting code.