= ({
{backgroundCommandLabel}
- {onStopAllBackgroundCommands ? (
+ {hasBackgroundCommands && onStopAllBackgroundCommands ? (
= ({
data-bf-component="flow-chat-header"
data-bf-part="activitySection"
>
- {displayBackgroundCommands.map((command) => (
+ {hasBackgroundCommands ? displayBackgroundCommands.map((command) => (
= ({
{renderBackgroundCommandActions(command)}
- ))}
+ )) : (
+
+ {t('flowChatHeader.backgroundCommandEmpty')}
+
+ )}
)}
diff --git a/src/web-ui/src/locales/en-US/flow-chat.json b/src/web-ui/src/locales/en-US/flow-chat.json
index 2521dcdca..5689c6700 100644
--- a/src/web-ui/src/locales/en-US/flow-chat.json
+++ b/src/web-ui/src/locales/en-US/flow-chat.json
@@ -1257,6 +1257,7 @@
"idle": "Idle"
},
"backgroundCommands": "Background commands ({{count}})",
+ "backgroundCommandEmpty": "No background commands",
"backgroundCommandUntitled": "Background command",
"backgroundCommandSession": "Session #{{id}}",
"backgroundCommandStatusRunning": "Active",
diff --git a/src/web-ui/src/locales/zh-CN/flow-chat.json b/src/web-ui/src/locales/zh-CN/flow-chat.json
index 568bcd63f..fda9e5a86 100644
--- a/src/web-ui/src/locales/zh-CN/flow-chat.json
+++ b/src/web-ui/src/locales/zh-CN/flow-chat.json
@@ -1257,6 +1257,7 @@
"idle": "空闲"
},
"backgroundCommands": "后台命令({{count}})",
+ "backgroundCommandEmpty": "暂无后台命令",
"backgroundCommandUntitled": "后台命令",
"backgroundCommandSession": "会话 #{{id}}",
"backgroundCommandStatusRunning": "进行中",
diff --git a/src/web-ui/src/locales/zh-TW/flow-chat.json b/src/web-ui/src/locales/zh-TW/flow-chat.json
index e17b26716..570c704f0 100644
--- a/src/web-ui/src/locales/zh-TW/flow-chat.json
+++ b/src/web-ui/src/locales/zh-TW/flow-chat.json
@@ -1257,6 +1257,7 @@
"idle": "閒置"
},
"backgroundCommands": "背景命令({{count}})",
+ "backgroundCommandEmpty": "目前沒有背景命令",
"backgroundCommandUntitled": "背景命令",
"backgroundCommandSession": "會話 #{{id}}",
"backgroundCommandStatusRunning": "進行中",