Fix/issue 59 app freezes crashes#60
Merged
Merged
Conversation
Reduces frequency of file streaming updates by 5x to prevent UI freezes during large file generation. Part of Phase 1 fix for issue #59.
Reduces file system event processing frequency by batching more events together, preventing event buffer overflow during rapid file creation. Part of Phase 1 fix for issue #59.
Batches file system updates to occur every 500ms instead of per-file, dramatically reducing React re-render cascades during rapid file creation. This reduces UI freezing when AI generates many files simultaneously. Part of Phase 2 fix for issue #59.
Caps pending actions at 50 with graceful degradation via warning alerts. Prevents unbounded memory growth during rapid AI code generation. Part of Phase 3 fix for issue #59.
Allows up to 5 file writes to execute concurrently instead of strictly sequential processing. This improves throughput by 3-5x during large project generation and prevents blocking bottlenecks. Part of Phase 3 fix for issue #59.
Limits file content chunks during streaming to 1MB maximum, preventing single files from consuming excessive memory and causing browser crashes during large file generation. Part of Phase 4 fix for issue #59.
Allows browser to process rendering frames and user input between heavy file operations by yielding to the main thread at strategic points. This prevents UI from becoming unresponsive during large file generation. Part of Phase 4 fix for issue #59.
Gerome-Elassaad
commented
Dec 28, 2025
Gerome-Elassaad
left a comment
Member
Author
There was a problem hiding this comment.
All code changes have been reviewed and have succesfully fixed issue #59
kizzlah
pushed a commit
to kizzlah/codinit-dev
that referenced
this pull request
Mar 8, 2026
…reezes-crashes Fix/issue 59 app freezes crashes
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.
This PR fixes critical performance regressions that caused the UI to freeze, terminal output to stall, and the browser to crash (“Aw, Snap!”) during multi-file generation. The changes introduce concurrency limits, batched state updates, and targeted optimizations for the Windows file system.