@@ -9,7 +9,7 @@ import { ToolUse, AskApproval, HandleError, PushToolResult, RemoveClosingTag, To
99import { formatResponse } from "../prompts/responses"
1010import { unescapeHtmlEntities } from "../../utils/text-normalization"
1111import { telemetryService } from "../../services/telemetry/TelemetryService"
12- import { ExitCodeDetails , RooTerminalCallbacks , RooTerminalProcess } from "../../integrations/terminal/types"
12+ import { ExitCodeDetails , RooTerminalCallbacks } from "../../integrations/terminal/types"
1313import { TerminalRegistry } from "../../integrations/terminal/TerminalRegistry"
1414import { Terminal } from "../../integrations/terminal/Terminal"
1515
@@ -140,7 +140,6 @@ export async function executeCommand(
140140 }
141141
142142 let message : { text ?: string ; images ?: string [ ] } | undefined
143- let runInBackground = false
144143 let completed = false
145144 let result : string = ""
146145 let exitDetails : ExitCodeDetails | undefined
@@ -150,23 +149,9 @@ export async function executeCommand(
150149 const clineProvider = await cline . providerRef . deref ( )
151150
152151 const callbacks : RooTerminalCallbacks = {
153- onLine : async ( output : string , process : RooTerminalProcess ) => {
152+ onLine : async ( output : string ) => {
154153 const status : CommandExecutionStatus = { executionId, status : "output" , output }
155154 clineProvider ?. postMessageToWebview ( { type : "commandExecutionStatus" , text : JSON . stringify ( status ) } )
156-
157- if ( runInBackground ) {
158- return
159- }
160-
161- try {
162- const { response, text, images } = await cline . ask ( "command_output" , "" )
163- runInBackground = true
164-
165- if ( response === "messageResponse" ) {
166- message = { text, images }
167- process . continue ( )
168- }
169- } catch ( _error ) { }
170155 } ,
171156 onCompleted : ( output : string | undefined ) => {
172157 result = Terminal . compressTerminalOutput ( output ?? "" , terminalOutputLineLimit )
0 commit comments