[Bug]: White Screen of Death (WSOD) - Maximum update depth exceeded in checkScroll
Platform
macOS (Apple Silicon)
AionUi Version
1.7.0
Bug Description
The UI crashes to a white screen after long conversations (~20 messages, ~150k tokens) using the gemini-3-flash-preview model. The crash is preceded by significant flickering and is caused by an infinite render loop in the scroll management logic.
Steps to Reproduce
- Start a long conversation with gemini-3-flash-preview.
- Accumulate approximately 20 messages and 150k tokens in the context.
- Observe UI flickering when the file list or chat history updates.
- UI eventually turns completely white.
Expected Behavior
The UI should handle long conversations and large token counts without performance degradation or crashing, maintaining stable rendering of the file list and chat history.
Actual Behavior
The UI begins to flicker and eventually triggers a "Maximum update depth exceeded" error in React, resulting in a White Screen of Death (WSOD).
Additional Context
The console logs show that the error originates in a checkScroll function, likely within the <HorizontalFileList> component.
Stack Trace: Uncaught Error: Maximum update depth exceeded. at getRootForUpdatedFiber (index.js:426621:11) at enqueueConcurrentHookUpdate (index.js:426581:14) at dispatchSetStateInternal (index.js:431164:18) at dispatchSetState (index.js:431124:7) at checkScroll (index.js:551603:9)
Other relevant errors captured:
- An error occurred in the <HorizontalFileList> component.
- An empty string ("") was passed to the src attribute.
(I have attached a screenshot of the developer console showing the full stack trace).