diff --git a/frontend/src/components/workspace/messages/message-list.tsx b/frontend/src/components/workspace/messages/message-list.tsx index ee38d08..a615515 100644 --- a/frontend/src/components/workspace/messages/message-list.tsx +++ b/frontend/src/components/workspace/messages/message-list.tsx @@ -154,16 +154,14 @@ export function MessageList({ />, ); } - if (tasks.size > 1) { - results.push( -
- {t.subtasks.executing(tasks.size)} -
, - ); - } + results.push( +
+ {t.subtasks.executing(tasks.size)} +
, + ); const taskIds = message.tool_calls?.map( (toolCall) => toolCall.id, ); diff --git a/frontend/src/components/workspace/messages/subtask-card.tsx b/frontend/src/components/workspace/messages/subtask-card.tsx index 772bc9c..924ffc1 100644 --- a/frontend/src/components/workspace/messages/subtask-card.tsx +++ b/frontend/src/components/workspace/messages/subtask-card.tsx @@ -98,7 +98,7 @@ export function SubtaskCard({ > {icon} {task.status === "in_progress" && diff --git a/frontend/src/core/i18n/locales/en-US.ts b/frontend/src/core/i18n/locales/en-US.ts index 3d87824..5c3cd49 100644 --- a/frontend/src/core/i18n/locales/en-US.ts +++ b/frontend/src/core/i18n/locales/en-US.ts @@ -214,7 +214,7 @@ export const enUS: Translations = { subtasks: { subtask: "Subtask", executing: (count: number) => - `Executing ${count} subtask${count === 1 ? "" : "s"} in parallel`, + `Executing ${count === 1 ? "" : count + " "}subtask${count === 1 ? "" : "s in parallel"}`, in_progress: "Running subtask", completed: "Subtask completed", failed: "Subtask failed", diff --git a/frontend/src/core/i18n/locales/zh-CN.ts b/frontend/src/core/i18n/locales/zh-CN.ts index 6d6db64..fbd2479 100644 --- a/frontend/src/core/i18n/locales/zh-CN.ts +++ b/frontend/src/core/i18n/locales/zh-CN.ts @@ -207,7 +207,8 @@ export const zhCN: Translations = { subtasks: { subtask: "子任务", - executing: (count: number) => `并行执行 ${count} 个子任务`, + executing: (count: number) => + `${count > 1 ? "并行" : ""}执行 ${count} 个子任务`, in_progress: "子任务运行中", completed: "子任务已完成", failed: "子任务失败",