pub async fn session_switch( session_id: String, branch: String, workspace: Option<PathBuf>, ) -> Result<Value>