File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
examples/playground/components Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -59,14 +59,14 @@ export default function WebsiteAnalysisUI({
59
59
60
60
// For summary, check if:
61
61
// 1. We have runData
62
- // 2. Status is completed OR (the summary task is completed, even if run is still in progress )
62
+ // 2. Status is completed (only show when the entire flow is completed )
63
63
const summaryTaskCompleted = runData ?. step_tasks ?. some (
64
64
( task ) =>
65
65
task . step_slug === 'summary' &&
66
66
task . status === 'completed' &&
67
67
task . output ,
68
68
) ;
69
- const showSummary = runData && ( isCompleted || summaryTaskCompleted ) ;
69
+ const showSummary = runData && isCompleted ;
70
70
const showAnalyzeAnother = runData && ( isCompleted || isFailed ) ;
71
71
72
72
// Keep analysis section expanded when running or failed, collapse only when completed successfully
@@ -98,6 +98,7 @@ export default function WebsiteAnalysisUI({
98
98
} => {
99
99
console . log ( '=== Analysis Summary Called ===' ) ;
100
100
console . log ( 'isCompleted:' , isCompleted ) ;
101
+ console . log ( 'showSummary:' , showSummary ) ;
101
102
console . log ( 'runData.step_tasks:' , runData ?. step_tasks ) ;
102
103
103
104
if ( ! runData ?. step_tasks || runData . step_tasks . length === 0 ) {
You can’t perform that action at this time.
0 commit comments