@@ -279,6 +279,7 @@ impl Session {
279279 pub async fn request_patch_approval (
280280 & self ,
281281 sub_id : String ,
282+ call_id : String ,
282283 action : & ApplyPatchAction ,
283284 reason : Option < String > ,
284285 grant_root : Option < PathBuf > ,
@@ -287,6 +288,7 @@ impl Session {
287288 let event = Event {
288289 id : sub_id. clone ( ) ,
289290 msg : EventMsg :: ApplyPatchApprovalRequest ( ApplyPatchApprovalRequestEvent {
291+ call_id,
290292 changes : convert_apply_patch_to_protocol ( action) ,
291293 reason,
292294 grant_root,
@@ -1629,7 +1631,7 @@ async fn apply_patch(
16291631 // Compute a readable summary of path changes to include in the
16301632 // approval request so the user can make an informed decision.
16311633 let rx_approve = sess
1632- . request_patch_approval ( sub_id. clone ( ) , & action, None , None )
1634+ . request_patch_approval ( sub_id. clone ( ) , call_id . clone ( ) , & action, None , None )
16331635 . await ;
16341636 match rx_approve. await . unwrap_or_default ( ) {
16351637 ReviewDecision :: Approved | ReviewDecision :: ApprovedForSession => false ,
@@ -1667,7 +1669,13 @@ async fn apply_patch(
16671669 ) ) ;
16681670
16691671 let rx = sess
1670- . request_patch_approval ( sub_id. clone ( ) , & action, reason. clone ( ) , Some ( root. clone ( ) ) )
1672+ . request_patch_approval (
1673+ sub_id. clone ( ) ,
1674+ call_id. clone ( ) ,
1675+ & action,
1676+ reason. clone ( ) ,
1677+ Some ( root. clone ( ) ) ,
1678+ )
16711679 . await ;
16721680
16731681 if !matches ! (
@@ -1751,6 +1759,7 @@ async fn apply_patch(
17511759 let rx = sess
17521760 . request_patch_approval (
17531761 sub_id. clone ( ) ,
1762+ call_id. clone ( ) ,
17541763 & action,
17551764 reason. clone ( ) ,
17561765 Some ( root. clone ( ) ) ,
0 commit comments