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