fix(vscode): keep indexing status in sync - #13796
Merged
Merged
Conversation
This comment has been minimized.
This comment has been minimized.
marius-kilocode
enabled auto-merge
September 4, 2026 13:41
WebReflection
approved these changes
Sep 4, 2026
This was referenced Sep 6, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What Problem This Solves
Codebase indexing can remain on an old "Indexing is initializing" status after the worker has finished. A delayed consent HTTP response can overwrite a newer completion event, status events can be discarded when a repository subfolder differs from the resolved indexing root, and reconnecting does not refresh the status.
Directories containing characters outside the HTTP header ByteString range also prevent the consent request from being sent at all. Closes #13769.
Why This Change Was Made
Keep HTTP responses and live status events tied to the same indexing target. Newer events invalidate pending status snapshots, superseded targets cannot overwrite the current view, and project-scoped events retain their project ID. Explicit consent revocation keeps its authoritative Disabled response even if old progress arrives in flight. A delayed save for another project still applies consent without replacing the selected status target. Refresh indexing on reconnect without waiting for the profile request. Encode the directory header using the same convention as the SDK.
The patch is limited to extension consent and status handling. It does not change embedding requests, indexing concurrency, file discovery, or diagnostic logging, and does not claim to fix every backend indexing stall.
User Impact
Indexing can be enabled from Unicode-named paths. Repository subfolders receive completion updates for their resolved project root, and a late response no longer puts a completed index back into an initializing state.
Evidence
IDX Complete. The completed state also appeared after reloading VS Code. After the consent-race fixes, disabling showedIDX Disabledand re-enabling returned toIDX Complete. The isolated instances were cleaned up afterward. The original reporter's Windows environment was not available.