You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: handle navigation when all files are harmful content
When all uploaded files contain harmful content, the backend processes
them very fast (before WebSocket connects), causing the UI to get stuck
loading indefinitely. This fix:
- Detects already-completed batches on initial fetch and navigates directly
- Checks both batch status and individual file terminal states
- Adds navigation guard (useRef) to prevent duplicate navigations
- Prevents resetting allFilesCompleted state after it's been finalized
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
0 commit comments