async def attach_to_conversation(
        self, sid: str, user_id: str | None = None
    ) -> ServerConversation | None:
        """Attach to an existing conversation or create a new one."""
Attach to an existing conversation or create a new one.
openhands/server/conversation_manager/conversation_manager.py