From 54a3b6121e3b3e4ede4e79758549a9464311331b Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Fri, 13 Feb 2026 19:40:11 +0000 Subject: [PATCH] fix: Address code review feedback - use step title as key and add type safety Co-authored-by: itsababseh <36419647+itsababseh@users.noreply.github.com> --- .../backend/backend/api/features/chat/tools/models.py | 4 ++-- .../CreateAgent/components/AgentCreationChecklistCard.tsx | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/autogpt_platform/backend/backend/api/features/chat/tools/models.py b/autogpt_platform/backend/backend/api/features/chat/tools/models.py index 1e5c9001dd..fb2639b038 100644 --- a/autogpt_platform/backend/backend/api/features/chat/tools/models.py +++ b/autogpt_platform/backend/backend/api/features/chat/tools/models.py @@ -2,7 +2,7 @@ from datetime import datetime from enum import Enum -from typing import Any +from typing import Any, Literal from pydantic import BaseModel, Field @@ -293,7 +293,7 @@ class AgentCreationStep(BaseModel): title: str description: str - status: str = "pending" # pending, in_progress, completed + status: Literal["pending", "in_progress", "completed"] = "pending" class AgentCreationStepsResponse(ToolResponseBase): diff --git a/autogpt_platform/frontend/src/app/(platform)/copilot/tools/CreateAgent/components/AgentCreationChecklistCard.tsx b/autogpt_platform/frontend/src/app/(platform)/copilot/tools/CreateAgent/components/AgentCreationChecklistCard.tsx index 41f007c073..2f7af09fdf 100644 --- a/autogpt_platform/frontend/src/app/(platform)/copilot/tools/CreateAgent/components/AgentCreationChecklistCard.tsx +++ b/autogpt_platform/frontend/src/app/(platform)/copilot/tools/CreateAgent/components/AgentCreationChecklistCard.tsx @@ -3,7 +3,7 @@ import { CheckCircleIcon, CircleIcon } from "@phosphor-icons/react"; export interface AgentCreationChecklistStep { title: string; description: string; - status: "pending" | "completed"; + status: "pending" | "in_progress" | "completed"; } interface Props { @@ -17,8 +17,8 @@ export function AgentCreationChecklistCard({ steps }: Props) { Creating your custom agent...

- {steps.map((step, index) => ( -
+ {steps.map((step) => ( +
{step.status === "completed" ? (