Преглед изворни кода

fix(tui): detect backgrounded subagents

Dax Raad пре 1 месец
родитељ
комит
f044def957
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      packages/tui/src/routes/session/index.tsx

+ 1 - 1
packages/tui/src/routes/session/index.tsx

@@ -2282,7 +2282,7 @@ function Subagent(props: ToolProps) {
       {formatSubagentTitle(
       {formatSubagentTitle(
         Locale.titlecase(stringValue(props.input.agent) ?? stringValue(props.input.subagent_type) ?? "General"),
         Locale.titlecase(stringValue(props.input.agent) ?? stringValue(props.input.subagent_type) ?? "General"),
         description() ?? "Subagent",
         description() ?? "Subagent",
-        props.metadata.background === true,
+        props.input.background === true || props.metadata.status === "running",
       )}
       )}
     </InlineTool>
     </InlineTool>
   )
   )