Skip to content

fix: refresh codebase index on config change #6131

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

shssoichiro
Copy link

Description

Updates the CodebaseIndexer to refresh the index when the assistant config is changed. The DocsService already does this, so this change copies the approach that the DocsService is using.

The biggest current issue is that the codebase indexing will begin before Continue has loaded remote assistant configs, which means it will use whatever model is available locally (usually Transformers.js in VSCode), or worse, silently fail. By refreshing after the config loads, we will ensure we are indexing the codebase using the user's configured embed model.

Checklist

  • I've read the contributing guide
  • The relevant docs, if any, have been updated or created
  • The relevant tests, if any, have been updated or created

Screenshots

N/A This is a backend change.

Tests

Added appropriate tests to CodebaseIndexer.test.ts

@shssoichiro shssoichiro requested a review from a team as a code owner June 15, 2025 19:16
@shssoichiro shssoichiro requested review from RomneyDa and removed request for a team June 15, 2025 19:16
@dosubot dosubot bot added the size:L This PR changes 100-499 lines, ignoring generated files. label Jun 15, 2025
Copy link

netlify bot commented Jun 15, 2025

Deploy Preview for continuedev ready!

Name Link
🔨 Latest commit cc82654
🔍 Latest deploy log https://app.netlify.com/projects/continuedev/deploys/6850f01e52d83a0008b0ec3c
😎 Deploy Preview https://deploy-preview-6131--continuedev.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

Copy link

recurseml bot commented Jun 15, 2025

😱 Found 1 issue. Time to roll up your sleeves! 😱

@shssoichiro shssoichiro force-pushed the refresh-codebase-index branch from 5f3296c to 0623705 Compare June 15, 2025 19:23
@shssoichiro shssoichiro force-pushed the refresh-codebase-index branch from 0623705 to cc82654 Compare June 17, 2025 04:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
size:L This PR changes 100-499 lines, ignoring generated files.
Projects
Status: Todo
Development

Successfully merging this pull request may close these issues.

1 participant