@@ -1402,8 +1402,12 @@ export class Cline {
14021402 isCheckpointPossible = true
14031403 }
14041404
1405- const askApproval = async ( type : ClineAsk , partialMessage ?: string ) => {
1406- const { response, text, images } = await this . ask ( type , partialMessage , false )
1405+ const askApproval = async (
1406+ type : ClineAsk ,
1407+ partialMessage ?: string ,
1408+ progressStatus ?: ToolProgressStatus ,
1409+ ) => {
1410+ const { response, text, images } = await this . ask ( type , partialMessage , false , progressStatus )
14071411 if ( response !== "yesButtonClicked" ) {
14081412 // Handle both messageResponse and noButtonClicked with text
14091413 if ( text ) {
@@ -1819,11 +1823,8 @@ export class Cline {
18191823 if ( this . diffStrategy && this . diffStrategy . getProgressStatus ) {
18201824 toolProgressStatus = this . diffStrategy . getProgressStatus ( block , diffResult )
18211825 }
1822- await this . ask ( "tool" , completeMessage , block . partial , toolProgressStatus ) . catch (
1823- ( ) => { } ,
1824- )
18251826
1826- const didApprove = await askApproval ( "tool" , completeMessage )
1827+ const didApprove = await askApproval ( "tool" , completeMessage , toolProgressStatus )
18271828 if ( ! didApprove ) {
18281829 await this . diffViewProvider . revertChanges ( ) // This likely handles closing the diff view
18291830 break
0 commit comments