File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -1401,7 +1401,8 @@ async def create_session(
14011401 if self ._session_fs_config :
14021402 if create_session_fs_handler is None :
14031403 raise ValueError (
1404- "create_session_fs_handler is required in session config when session_fs is enabled in client options."
1404+ "create_session_fs_handler is required in session config when "
1405+ "session_fs is enabled in client options."
14051406 )
14061407 session ._client_session_apis .session_fs = create_session_fs_handler (session )
14071408 session ._register_tools (tools )
@@ -1632,7 +1633,8 @@ async def resume_session(
16321633 if self ._session_fs_config :
16331634 if create_session_fs_handler is None :
16341635 raise ValueError (
1635- "create_session_fs_handler is required in session config when session_fs is enabled in client options."
1636+ "create_session_fs_handler is required in session config when "
1637+ "session_fs is enabled in client options."
16361638 )
16371639 session ._client_session_apis .session_fs = create_session_fs_handler (session )
16381640 session ._register_tools (tools )
Original file line number Diff line number Diff line change 3131 RequestedSchema ,
3232 RequestedSchemaType ,
3333 ResultResult ,
34- SessionFsHandler ,
3534 SessionCommandsHandlePendingCommandParams ,
35+ SessionFsHandler ,
3636 SessionLogParams ,
3737 SessionModelSwitchToParams ,
3838 SessionPermissionsHandlePendingPermissionRequestParams ,
Original file line number Diff line number Diff line change 1515from copilot .client import ExternalServerConfig , SubprocessConfig
1616from copilot .generated .rpc import (
1717 SessionFSExistsResult ,
18- SessionFSReadFileResult ,
1918 SessionFSReaddirResult ,
2019 SessionFSReaddirWithTypesResult ,
20+ SessionFSReadFileResult ,
2121 SessionFSStatResult ,
2222)
2323from copilot .generated .session_events import SessionEvent
@@ -243,7 +243,7 @@ async def exists(self, params) -> SessionFSExistsResult:
243243 async def stat (self , params ) -> SessionFSStatResult :
244244 path = provider_path (self ._provider_root , self ._session_id , params .path )
245245 info = path .stat ()
246- timestamp = dt .datetime .fromtimestamp (info .st_mtime , tz = dt .timezone . utc ).isoformat ()
246+ timestamp = dt .datetime .fromtimestamp (info .st_mtime , tz = dt .UTC ).isoformat ()
247247 if timestamp .endswith ("+00:00" ):
248248 timestamp = f"{ timestamp [:- 6 ]} Z"
249249 return SessionFSStatResult .from_dict (
You can’t perform that action at this time.
0 commit comments