fix: Stop setup discovery wedge and IPC fan-out at launch#2257
Merged
charlesvien merged 2 commits intoMay 20, 2026
Conversation
Contributor
Prompt To Fix All With AIFix the following 1 code review issue. Work through them one at a time, proposing concise fixes.
---
### Issue 1 of 1
apps/code/src/main/services/enrichment/service.ts:347-351
The `totalCandidates` field logs `posthogFiles.length`, which is the count of ALL files in the repo (before language filtering), not the number of parseable candidates. When the cap fires, `toParse.length` is exactly `MAX_FILES_TO_PARSE`, so the useful missing piece is how many total language-supported files existed before the cap truncated the list. Consider renaming the field to clarify its meaning.
```suggestion
log.info("Capping repo parse to keep main process responsive", {
repoPath,
totalRepoFiles: posthogFiles.length,
parseLimit: MAX_FILES_TO_PARSE,
});
```
Reviews (1): Last reviewed commit: "Stop setup discovery from wedging on boo..." | Re-trigger Greptile |
jonathanlab
approved these changes
May 20, 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.

Problem
App boot freezes when a persisted "running" discovery state auto-restarts a tree-sitter parse storm and per-task workspace creates fan out across IPC.
Changes
How did you test this?
Manually with Rafa as test subject
Publish to changelog?
no