Skip to content

Commit 4adf048

Browse files
committed
chore: fix playground bug
1 parent 5fbdd39 commit 4adf048

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

examples/playground/components/website-analysis-ui.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,14 +59,14 @@ export default function WebsiteAnalysisUI({
5959

6060
// For summary, check if:
6161
// 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)
6363
const summaryTaskCompleted = runData?.step_tasks?.some(
6464
(task) =>
6565
task.step_slug === 'summary' &&
6666
task.status === 'completed' &&
6767
task.output,
6868
);
69-
const showSummary = runData && (isCompleted || summaryTaskCompleted);
69+
const showSummary = runData && isCompleted;
7070
const showAnalyzeAnother = runData && (isCompleted || isFailed);
7171

7272
// Keep analysis section expanded when running or failed, collapse only when completed successfully
@@ -98,6 +98,7 @@ export default function WebsiteAnalysisUI({
9898
} => {
9999
console.log('=== Analysis Summary Called ===');
100100
console.log('isCompleted:', isCompleted);
101+
console.log('showSummary:', showSummary);
101102
console.log('runData.step_tasks:', runData?.step_tasks);
102103

103104
if (!runData?.step_tasks || runData.step_tasks.length === 0) {

0 commit comments

Comments
 (0)