@@ -1509,6 +1509,7 @@ async def get(self, session_id: str) -> AgentSession | None:
15091509 Raises:
15101510 ValueError: If ``session_id`` is empty.
15111511 """
1512+ mark_feature_used (FeatureIndex .CORE_SESSION_STORE )
15121513 SessionStore .validate_session_id (session_id )
15131514 session = self ._sessions .get (session_id )
15141515 return copy .deepcopy (session ) if session is not None else None
@@ -1523,6 +1524,7 @@ async def set(self, session_id: str, session: AgentSession) -> None:
15231524 Raises:
15241525 ValueError: If ``session_id`` is empty.
15251526 """
1527+ mark_feature_used (FeatureIndex .CORE_SESSION_STORE )
15261528 SessionStore .validate_session_id (session_id )
15271529 self ._sessions [session_id ] = copy .deepcopy (session )
15281530
@@ -1535,6 +1537,7 @@ async def delete(self, session_id: str) -> None:
15351537 Raises:
15361538 ValueError: If ``session_id`` is empty.
15371539 """
1540+ mark_feature_used (FeatureIndex .CORE_SESSION_STORE )
15381541 SessionStore .validate_session_id (session_id )
15391542 self ._sessions .pop (session_id , None )
15401543
@@ -1611,6 +1614,7 @@ def __init__(
16111614
16121615 async def get (self , session_id : str ) -> AgentSession | None :
16131616 """Load a session snapshot, or return ``None`` when it does not exist."""
1617+ mark_feature_used (FeatureIndex .CORE_SESSION_STORE )
16141618 file_path = self ._session_file_path (session_id )
16151619 file_lock = self ._session_file_lock (file_path )
16161620
@@ -1664,6 +1668,7 @@ def _read() -> AgentSession | None:
16641668
16651669 async def set (self , session_id : str , session : AgentSession ) -> None :
16661670 """Persist a session snapshot atomically."""
1671+ mark_feature_used (FeatureIndex .CORE_SESSION_STORE )
16671672 file_path = self ._session_file_path (session_id )
16681673 file_lock = self ._session_file_lock (file_path )
16691674 if type (session ) is not AgentSession :
@@ -1696,6 +1701,7 @@ def _write() -> None:
16961701
16971702 async def delete (self , session_id : str ) -> None :
16981703 """Delete a persisted session snapshot, if present."""
1704+ mark_feature_used (FeatureIndex .CORE_SESSION_STORE )
16991705 file_path = self ._session_file_path (session_id )
17001706 file_lock = self ._session_file_lock (file_path )
17011707
0 commit comments