@@ -2,15 +2,13 @@ use std::{rc::Rc, sync::Arc};
22
33use agent_client_protocol_schema:: {
44 AuthenticateRequest , AuthenticateResponse , CancelNotification , Error , ExtNotification ,
5- ExtRequest , ExtResponse , InitializeRequest , InitializeResponse , LoadSessionRequest ,
6- LoadSessionResponse , NewSessionRequest , NewSessionResponse , PromptRequest , PromptResponse ,
7- Result , SetSessionConfigOptionRequest , SetSessionConfigOptionResponse , SetSessionModeRequest ,
8- SetSessionModeResponse ,
5+ ExtRequest , ExtResponse , InitializeRequest , InitializeResponse , ListSessionsRequest ,
6+ ListSessionsResponse , LoadSessionRequest , LoadSessionResponse , NewSessionRequest ,
7+ NewSessionResponse , PromptRequest , PromptResponse , Result , SetSessionConfigOptionRequest ,
8+ SetSessionConfigOptionResponse , SetSessionModeRequest , SetSessionModeResponse ,
99} ;
1010#[ cfg( feature = "unstable_session_fork" ) ]
1111use agent_client_protocol_schema:: { ForkSessionRequest , ForkSessionResponse } ;
12- #[ cfg( feature = "unstable_session_list" ) ]
13- use agent_client_protocol_schema:: { ListSessionsRequest , ListSessionsResponse } ;
1412#[ cfg( feature = "unstable_session_resume" ) ]
1513use agent_client_protocol_schema:: { ResumeSessionRequest , ResumeSessionResponse } ;
1614#[ cfg( feature = "unstable_session_model" ) ]
@@ -154,7 +152,6 @@ pub trait Agent {
154152 /// Lists existing sessions known to the agent.
155153 ///
156154 /// Only available if the Agent supports the `sessionCapabilities.list` capability.
157- #[ cfg( feature = "unstable_session_list" ) ]
158155 async fn list_sessions ( & self , _args : ListSessionsRequest ) -> Result < ListSessionsResponse > {
159156 Err ( Error :: method_not_found ( ) )
160157 }
@@ -246,7 +243,7 @@ impl<T: Agent> Agent for Rc<T> {
246243 ) -> Result < SetSessionConfigOptionResponse > {
247244 self . as_ref ( ) . set_session_config_option ( args) . await
248245 }
249- # [ cfg ( feature = "unstable_session_list" ) ]
246+
250247 async fn list_sessions ( & self , args : ListSessionsRequest ) -> Result < ListSessionsResponse > {
251248 self . as_ref ( ) . list_sessions ( args) . await
252249 }
@@ -305,7 +302,6 @@ impl<T: Agent> Agent for Arc<T> {
305302 ) -> Result < SetSessionConfigOptionResponse > {
306303 self . as_ref ( ) . set_session_config_option ( args) . await
307304 }
308- #[ cfg( feature = "unstable_session_list" ) ]
309305 async fn list_sessions ( & self , args : ListSessionsRequest ) -> Result < ListSessionsResponse > {
310306 self . as_ref ( ) . list_sessions ( args) . await
311307 }
0 commit comments