Fix progress tracking synchronization issues
- Enhanced EventSource message handling to properly reset UI state on completion - Added completion detection based on all steps being finished - Extended session deletion timeout from 1s to 3s for better UI updates - Separated loading state management for single vs multi-timeframe analysis - Ensured loading state is only reset by progress tracking for single timeframe - Added immediate UI reset on errors to prevent stuck loading states - Improved completion logging and state management
This commit is contained in:
@@ -645,8 +645,8 @@ Analyze all provided screenshots comprehensively and return only the JSON respon
|
||||
|
||||
if (sessionId) {
|
||||
progressTracker.updateStep(sessionId, 'analysis', 'completed', 'AI analysis completed successfully!')
|
||||
// Mark session as complete
|
||||
setTimeout(() => progressTracker.deleteSession(sessionId), 1000)
|
||||
// Mark session as complete with longer delay to ensure UI receives updates
|
||||
setTimeout(() => progressTracker.deleteSession(sessionId), 3000)
|
||||
}
|
||||
|
||||
return {
|
||||
|
||||
Reference in New Issue
Block a user