Skip to content

Commit 6f7363b

Browse files
committed
Guarantee the creation of the "After changes approved" checkpoint by moving the checkpoint logic inside the finally block
1 parent 3c03770 commit 6f7363b

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

‎packages/vscode/src/commands/apply-chat-response-command/apply-chat-response-command.ts‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -265,6 +265,12 @@ export const apply_chat_response_command = (
265265
}
266266
} finally {
267267
panel_provider.send_message({ command: 'HIDE_APPLYING_CHANGES' })
268+
await create_checkpoint(
269+
workspace_provider,
270+
context,
271+
'After changes approved',
272+
args?.raw_instructions
273+
)
268274
}
269275
}
270276
}

0 commit comments

Comments
 (0)