fix: handle snapshot initialization on big repos#9778
Open
catrielmuller wants to merge 4 commits intomainfrom
Open
fix: handle snapshot initialization on big repos#9778catrielmuller wants to merge 4 commits intomainfrom
catrielmuller wants to merge 4 commits intomainfrom
Conversation
Contributor
Code Review SummaryStatus: No Issues Found | Recommendation: Merge Files Reviewed (2 files)
Reviewed by gpt-5.5-20260423 · 688,961 tokens |
Contributor
|
From a newcomer's perspective, I would appreciate a link to an article that explains what snapshots are, and the consequences of enabling/disabling them |
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.
Summary
On huge repos (e.g. 270k+ untracked files) the initial
Snapshot.track()can take tens of seconds and wedge the turn before the LLM is even called. This wrapstrack()with a 10s timeout (configurable viaKILO_SNAPSHOT_TRACK_TIMEOUT_MS) and prompts the user to keep waiting or disable snapshots for the project; choosing disable writes"snapshot": falseto.kilo/kilo.jsondirectly so the live instance isn't torn down. While the snapshot is running, a synthetic "Initializing snapshot…" text part is injected into the live assistant message so there's a visible reason for the wait — the part is removed when the snapshot finishes, which required plumbingmessage.part.removedthrough the SDK → extension → webview.Also repositions the VS Code standalone question dock above the prompt input (was floating mid-scroll on short conversations) so the slow-repo prompt docks in the expected place.
2026-05-01_20-20-41.mp4