Skip to content

Commit f1d3c44

Browse files
committed
Update plan property references in chat and service
Replaced usage of 'description' with 'initial_goal' in PlanChat component and updated plan status check from 'status' to 'overall_status' in TaskService. These changes align with updated plan data structure.
1 parent 7dbf4e3 commit f1d3c44

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/frontend/src/components/content/PlanChat.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -180,10 +180,10 @@ const PlanChat: React.FC<SimplifiedPlanChatProps> = ({
180180
}
181181

182182
// Check planData
183-
if (planData?.plan?.description &&
184-
planData.plan.description.trim() &&
185-
planData.plan.description !== 'Task submitted') {
186-
return planData.plan.description.trim();
183+
if (planData?.plan?.initial_goal &&
184+
planData.plan.initial_goal.trim() &&
185+
planData.plan.initial_goal !== 'Task submitted') {
186+
return planData.plan.initial_goal.trim();
187187
}
188188

189189
// Default fallback

src/frontend/src/services/TaskService.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ export class TaskService {
3939

4040
// Categorize based on plan status and completion
4141
if (
42-
plan.status === PlanStatus.COMPLETED ||
42+
plan.overall_status === PlanStatus.COMPLETED ||
4343
PlanDataService.isPlanComplete(plan)
4444
) {
4545
completed.push(task);

0 commit comments

Comments
 (0)