@@ -201,12 +201,12 @@ export function parseToolCallDetails(
201
201
} else if ( name === 'think' ) {
202
202
return {
203
203
toolName : 'Thought' ,
204
- invocationMessage : content
204
+ invocationMessage : content || 'Thought' ,
205
205
} ;
206
206
} else if ( name === 'report_progress' ) {
207
207
const details : ParsedToolCallDetails = {
208
208
toolName : 'Progress Update' ,
209
- invocationMessage : `${ args . prDescription } ` || content
209
+ invocationMessage : `${ args . prDescription } ` || content || 'Progress Update'
210
210
} ;
211
211
if ( args . commitMessage ) {
212
212
details . originMessage = `Commit: ${ args . commitMessage } ` ;
@@ -217,7 +217,7 @@ export function parseToolCallDetails(
217
217
const bashContent = [ command , content ] . filter ( Boolean ) . join ( '\n' ) ;
218
218
const details : ParsedToolCallDetails = {
219
219
toolName : 'Run Bash command' ,
220
- invocationMessage : bashContent
220
+ invocationMessage : bashContent || 'Run Bash command' ,
221
221
} ;
222
222
223
223
// Use the terminal-specific data for bash commands
@@ -235,7 +235,7 @@ export function parseToolCallDetails(
235
235
// Unknown tool type
236
236
return {
237
237
toolName : name || 'unknown' ,
238
- invocationMessage : content
238
+ invocationMessage : content || name || 'unknown'
239
239
} ;
240
240
}
241
241
}
0 commit comments