fn apply_active_tab_changed( wstore: &WaveStore, workspace_id: &str, tab_id: Option<&str>, ) -> Result<(), Box<dyn Error>>