File tree Expand file tree Collapse file tree
src/ui/compoments/MessageView Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -234,7 +234,21 @@ export function renderMessageToStdout(message: SessionMessage, mode: RawMode): s
234234 const name = payload . name || metaFunctionName || "tool" ;
235235 const metaParams = typeof message . meta ?. paramsMd === "string" ? message . meta . paramsMd . trim ( ) : "" ;
236236 const params = name . toLowerCase ( ) === "bash" ? metaParams : truncate ( metaParams , 120 ) ;
237- return `${ chalk ( "✧" ) } ${ chalk ( formatStatusName ( name ) ) } ${ params ? ` ${ chalk ( params ) } ` : "" } ` ;
237+ const statusLine = `${ chalk ( "✧" ) } ${ chalk ( formatStatusName ( name ) ) } ${ params ? ` ${ chalk ( params ) } ` : "" } ` ;
238+
239+ const summary : ToolSummary = {
240+ name,
241+ params,
242+ ok : payload . ok !== false ,
243+ metadata : payload . metadata ,
244+ } ;
245+ const planLines = getUpdatePlanPreviewLines ( summary ) ;
246+ if ( planLines . length > 0 ) {
247+ const planText = planLines . map ( ( line ) => ` ${ line } ` ) . join ( "\n" ) ;
248+ return `${ statusLine } \n${ chalk . dim ( " └ Plan" ) } \n${ planText } ` ;
249+ }
250+
251+ return statusLine ;
238252 }
239253
240254 if ( message . role === "system" ) {
You can’t perform that action at this time.
0 commit comments