/** * @license * Copyright 2026 Google LLC * SPDX-License-Identifier: Apache-2.0 */ import type React from 'react'; import { Box, Text } from 'ink'; import type { HistoryItemSubagent } from '../../types.js'; interface SubagentHistoryMessageProps { item: HistoryItemSubagent; terminalWidth: number; } export const SubagentHistoryMessage: React.FC = ({ item, terminalWidth, }) => ( 🤖 {item.agentName} Trace ({item.history.length} items) {item.history.map((activity) => ( {activity.type === 'thought' ? '🧠' : '🛠️'} {activity.content} {activity.status === 'running' && ' (Running...)'} {activity.status === 'completed' && ' ✅'} {activity.status === 'error' && ' ❌'} ))} );