Skip to content

Fix/issue 59 app freezes crashes#60

Merged
Gerome-Elassaad merged 8 commits into
mainfrom
fix/issue-59-app-freezes-crashes
Dec 28, 2025
Merged

Fix/issue 59 app freezes crashes#60
Gerome-Elassaad merged 8 commits into
mainfrom
fix/issue-59-app-freezes-crashes

Conversation

@Gerome-Elassaad

Copy link
Copy Markdown
Member

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.

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 Gerome-Elassaad self-assigned this Dec 28, 2025
@Gerome-Elassaad Gerome-Elassaad added the bug Something isn't working label Dec 28, 2025
@Gerome-Elassaad Gerome-Elassaad requested a review from a team December 28, 2025 12:59

@Gerome-Elassaad Gerome-Elassaad left a comment

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All code changes have been reviewed and have succesfully fixed issue #59

@Gerome-Elassaad Gerome-Elassaad merged commit 1569deb into main Dec 28, 2025
3 checks passed
kizzlah pushed a commit to kizzlah/codinit-dev that referenced this pull request Mar 8, 2026
…reezes-crashes

Fix/issue 59 app freezes crashes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Critical] Application Freezes/Crashes during Next.js Code Generation (WebContainer/ActionRunner)

1 participant