File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -518,12 +518,12 @@ export class CopilotSession {
518518 await this . connection . sendRequest ( "session.destroy" , {
519519 sessionId : this . sessionId ,
520520 } ) ;
521-
521+
522522 // Wait briefly for any final notifications (e.g., session.shutdown)
523523 // to arrive before clearing handlers. The CLI may send these after
524524 // the RPC response.
525525 await new Promise ( ( resolve ) => setTimeout ( resolve , 100 ) ) ;
526-
526+
527527 this . eventHandlers . clear ( ) ;
528528 this . typedEventHandlers . clear ( ) ;
529529 this . toolHandlers . clear ( ) ;
Original file line number Diff line number Diff line change @@ -487,12 +487,12 @@ async def destroy(self) -> None:
487487 >>> await session.destroy()
488488 """
489489 await self ._client .request ("session.destroy" , {"sessionId" : self .session_id })
490-
490+
491491 # Wait briefly for any final notifications (e.g., session.shutdown)
492492 # to arrive before clearing handlers. The CLI may send these after
493493 # the RPC response.
494494 await asyncio .sleep (0.1 )
495-
495+
496496 with self ._event_handlers_lock :
497497 self ._event_handlers .clear ()
498498 with self ._tool_handlers_lock :
You can’t perform that action at this time.
0 commit comments