fix: improve subagent UI display and interruption handling (#330)

Co-authored-by: Letta <noreply@letta.com>
This commit is contained in:
Charles Packer
2025-12-21 00:09:12 -08:00
committed by GitHub
parent 90d84482ef
commit 0852ce26fe
14 changed files with 161 additions and 29 deletions

View File

@@ -87,7 +87,7 @@ const AgentRow = memo(({ agent, isLast }: AgentRowProps) => {
<Text dimColor>{" ⎿ Done"}</Text>
) : (
<Text color={colors.subagent.error}>
{" ⎿ Error: "}
{" ⎿ "}
{agent.error}
</Text>
)}
@@ -109,12 +109,18 @@ export const SubagentGroupStatic = memo(
}
const statusText = `Ran ${agents.length} subagent${agents.length !== 1 ? "s" : ""}`;
const hasErrors = agents.some((a) => a.status === "error");
// Use error color for dot if any subagent errored
const dotColor = hasErrors
? colors.subagent.error
: colors.subagent.completed;
return (
<Box flexDirection="column">
{/* Header */}
<Box flexDirection="row">
<Text color={colors.subagent.completed}></Text>
<Text color={dotColor}></Text>
<Text color={colors.subagent.header}> {statusText}</Text>
</Box>