MCPcopy Create free account
hub / github.com/codeaashu/claude-code / renderToolUseProgressMessage

Function renderToolUseProgressMessage

src/tools/BashTool/UI.tsx:131–153  ·  view source on GitHub ↗
(progressMessagesForMessage: ProgressMessage<BashProgress>[], {
  verbose,
  tools: _tools,
  terminalSize: _terminalSize,
  inProgressToolCallCount: _inProgressToolCallCount
}: {
  tools: Tool[];
  verbose: boolean;
  terminalSize?: {
    columns: number;
    rows: number;
  };
  inProgressToolCallCount?: number;
})

Source from the content-addressed store, hash-verified

129 return command;
130}
131export 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}
154export function renderToolUseQueuedMessage(): React.ReactNode {
155 return <MessageResponse height={1}>
156 <Text dimColor>Waiting…</Text>

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected