End a session
(self, session_id: str)
| 59 | return True |
| 60 | |
| 61 | async def end_session(self, session_id: str): |
| 62 | """End a session""" |
| 63 | async with self.lock: |
| 64 | if self.running_session == session_id: |
| 65 | self.running_session = None |
| 66 | # Keep cancelled flag for a bit, clean up later if needed |
| 67 | |
| 68 | async def cancel_session(self, session_id: str) -> bool: |
| 69 | """Cancel a running session. Returns True if session was running""" |
no outgoing calls
no test coverage detected