(progressMessagesForMessage: ProgressMessage<BashProgress>[], {
verbose,
tools: _tools,
terminalSize: _terminalSize,
inProgressToolCallCount: _inProgressToolCallCount
}: {
tools: Tool[];
verbose: boolean;
terminalSize?: {
columns: number;
rows: number;
};
inProgressToolCallCount?: number;
})
| 129 | return command; |
| 130 | } |
| 131 | export function renderToolUseProgressMessage(progressMessagesForMessage: ProgressMessage<BashProgress>[], { |
| 132 | verbose, |
| 133 | tools: _tools, |
| 134 | terminalSize: _terminalSize, |
| 135 | inProgressToolCallCount: _inProgressToolCallCount |
| 136 | }: { |
| 137 | tools: Tool[]; |
| 138 | verbose: boolean; |
| 139 | terminalSize?: { |
| 140 | columns: number; |
| 141 | rows: number; |
| 142 | }; |
| 143 | inProgressToolCallCount?: number; |
| 144 | }): React.ReactNode { |
| 145 | const lastProgress = progressMessagesForMessage.at(-1); |
| 146 | if (!lastProgress || !lastProgress.data) { |
| 147 | return <MessageResponse height={1}> |
| 148 | <Text dimColor>Running…</Text> |
| 149 | </MessageResponse>; |
| 150 | } |
| 151 | const data = lastProgress.data; |
| 152 | return <ShellProgressMessage fullOutput={data.fullOutput} output={data.output} elapsedTimeSeconds={data.elapsedTimeSeconds} totalLines={data.totalLines} totalBytes={data.totalBytes} timeoutMs={data.timeoutMs} taskId={data.taskId} verbose={verbose} />; |
| 153 | } |
| 154 | export function renderToolUseQueuedMessage(): React.ReactNode { |
| 155 | return <MessageResponse height={1}> |
| 156 | <Text dimColor>Waiting…</Text> |
nothing calls this directly
no outgoing calls
no test coverage detected