Make CoPilot todo/task list card expanded by default (#12168)

The todo card rendered by GenericTool was collapsed by default,
requiring users to click to see their checklist items. Now passes
`defaultExpanded` when the category is `"todo"` so the task list is
immediately visible.

**File changed:**
`autogpt_platform/frontend/src/app/(platform)/copilot/tools/GenericTool/GenericTool.tsx`

Resolves [SECRT-2017](https://linear.app/autogpt/issue/SECRT-2017)
This commit is contained in:
Otto
2026-02-20 05:36:16 +00:00
committed by GitHub
parent 0a1591fce2
commit 7718c49f05

View File

@@ -704,6 +704,7 @@ export function GenericTool({ part }: Props) {
title={accordionData.title}
description={accordionData.description}
titleClassName={isError ? "text-red-500" : undefined}
defaultExpanded={category === "todo"}
>
{accordionData.content}
</ToolAccordion>