This requires fixing an upstream bug in JupyterLab: https://github.com/jupyterlab/jupyterlab/issues/16479