(self)
| 44 | # Global state for tracking running sessions |
| 45 | class SessionManager: |
| 46 | def __init__(self): |
| 47 | self.running_session = None |
| 48 | self.cancelled_sessions = set() # Track cancelled session IDs |
| 49 | self.lock = asyncio.Lock() |
| 50 | |
| 51 | async def start_session(self, session_id: str) -> bool: |
| 52 | """Try to start a new session. Returns False if another session is already running""" |
nothing calls this directly
no outgoing calls
no test coverage detected