@@ -443,6 +443,9 @@ function buildCommandOutputProgressLine(
443443 if ( ! line || ! status ) {
444444 return line ;
445445 }
446+ if ( status === "completed" ) {
447+ return line ;
448+ }
446449 if ( ! line . detail || line . detail === status ) {
447450 const statusLine = {
448451 ...line ,
@@ -1055,11 +1058,14 @@ function getProgressDraftLineText(line: string | ChannelProgressDraftLine): stri
10551058 const label = line . label . trim ( ) ;
10561059 const detail = line . detail ?. trim ( ) ;
10571060 const status = line . status ?. trim ( ) ;
1061+ const displayStatus = status === "completed" ? undefined : status ;
10581062 if ( detail ) {
10591063 const compactCommandLine =
10601064 line . toolName === "exec" || line . toolName === "bash" || line . toolName === "shell" ;
1061- if ( line . kind === "command-output" && status && detail !== status ) {
1062- const outputDetail = detail . startsWith ( `${ status } ;` ) ? detail : `${ status } ; ${ detail } ` ;
1065+ if ( line . kind === "command-output" && displayStatus && detail !== displayStatus ) {
1066+ const outputDetail = detail . startsWith ( `${ displayStatus } ;` )
1067+ ? detail
1068+ : `${ displayStatus } ; ${ detail } ` ;
10631069 if ( compactCommandLine ) {
10641070 return `${ prefix } ${ outputDetail } ` ;
10651071 }
@@ -1070,11 +1076,11 @@ function getProgressDraftLineText(line: string | ChannelProgressDraftLine): stri
10701076 }
10711077 return `${ prefix } ${ detail } ` ;
10721078 }
1073- if ( status ) {
1079+ if ( displayStatus ) {
10741080 if ( label ) {
1075- return `${ prefix } ${ label } : ${ status } ` ;
1081+ return `${ prefix } ${ label } : ${ displayStatus } ` ;
10761082 }
1077- return `${ prefix } ${ status } ` ;
1083+ return `${ prefix } ${ displayStatus } ` ;
10781084 }
10791085 const text = line . text . trim ( ) ;
10801086 if ( ! icon && text && text !== label ) {
0 commit comments