@@ -606,7 +606,7 @@ export async function handleSlashCommand(
606606 return true ;
607607 }
608608 try {
609- await state . activeSession . destroy ( ) ;
609+ await state . activeSession . disconnect ( ) ;
610610 state . activeSession = await state . copilotClient . createSession ( {
611611 sessionId : makeSessionId ( ) ,
612612 model : state . currentModel ,
@@ -810,7 +810,7 @@ export async function handleSlashCommand(
810810 // If no match, pass through — the SDK will error if invalid
811811 }
812812 if ( state . activeSession ) {
813- await state . activeSession . destroy ( ) ;
813+ await state . activeSession . disconnect ( ) ;
814814 }
815815 state . activeSession = await state . copilotClient . resumeSession (
816816 targetId ,
@@ -1007,7 +1007,7 @@ export async function handleSlashCommand(
10071007
10081008 case "/history" : {
10091009 // Display recent conversation messages from the active session.
1010- // Uses the SDK's session.getMessages () to retrieve the full
1010+ // Uses the SDK's session.getEvents () to retrieve the full
10111011 // event log, then filters for user & assistant messages.
10121012 if ( ! state . activeSession ) {
10131013 console . log ( ` ${ C . err ( "❌ No active session." ) } ` ) ;
@@ -1018,7 +1018,7 @@ export async function handleSlashCommand(
10181018 const showCount =
10191019 Number . isFinite ( histCount ) && histCount > 0 ? histCount : 10 ;
10201020 try {
1021- const events = await state . activeSession . getMessages ( ) ;
1021+ const events = await state . activeSession . getEvents ( ) ;
10221022 // Filter to user/assistant messages — skip tool calls, deltas, etc.
10231023 const messages = events
10241024 . filter (
0 commit comments