@@ -152,15 +152,15 @@ export async function executeCommand(
152152
153153 const callbacks : RooTerminalCallbacks = {
154154 onLine : async ( output : string , process : RooTerminalProcess ) => {
155- const compressed = Terminal . compressTerminalOutput ( output , terminalOutputLineLimit )
156- cline . say ( "command_output ", compressed )
155+ const status : CommandExecutionStatus = { executionId , status : " output" , output }
156+ clineProvider ?. postMessageToWebview ( { type : "commandExecutionStatus ", text : JSON . stringify ( status ) } )
157157
158158 if ( runInBackground ) {
159159 return
160160 }
161161
162162 try {
163- const { response, text, images } = await cline . ask ( "command_output" , compressed )
163+ const { response, text, images } = await cline . ask ( "command_output" , "" )
164164 runInBackground = true
165165
166166 if ( response === "messageResponse" ) {
@@ -171,10 +171,11 @@ export async function executeCommand(
171171 } ,
172172 onCompleted : ( output : string | undefined ) => {
173173 result = Terminal . compressTerminalOutput ( output ?? "" , terminalOutputLineLimit )
174+ cline . say ( "command_output" , result )
174175 completed = true
175176 } ,
176177 onShellExecutionStarted : ( pid : number | undefined ) => {
177- const status : CommandExecutionStatus = { executionId, status : "running " , pid }
178+ const status : CommandExecutionStatus = { executionId, status : "started " , pid, command }
178179 clineProvider ?. postMessageToWebview ( { type : "commandExecutionStatus" , text : JSON . stringify ( status ) } )
179180 } ,
180181 onShellExecutionComplete : ( details : ExitCodeDetails ) => {
0 commit comments