<!-- Welcome! Before creating a new issue: * This is the GIT EXTENSION for JupyterLab repository. Unrelated issues will be closed. * Look at the README *Troubleshooting* section * Search for relevant issues * Check that you have updated both the jupyterlab extension and the python package to the same version * Check that you have installed Git version 2 or higher --> ## Description Clicking on the refresh icon quickly creates many notifications. <!--Describe the bug clearly and concisely. Include screenshots if possible--> ## Reproduce <!--Describe step-by-step instructions to reproduce the behavior--> 1. Go to the git panel 2. Click on the refresh icon multiple times 3. Many notifications are created [jupyterlab-git-refresh-notifications.webm](https://github.com/user-attachments/assets/a55e91dc-2d4a-4d57-83e1-24e0aed9be5d) ## Expected behavior One notification should be enough. Maybe the previous one should be disposed and a new one recreated. ## Context <!--Complete the following for context, and add any other relevant context--> - Python package version: 0.50.1 <!-- Results of `conda list jupyterlab-git` or `pip show jupyterlab-git` --> - Extension version: 0.50.1 <!-- Results of `jupyter labextension list` --> - Git version: 2.43.0 <!-- Results of `git --version` --> - Operating System and its version: <details><summary>Command Line Output</summary> <pre> Paste the output from your command line running `jupyter lab` here, use `--debug` if possible. </pre> </details> <details><summary>Web Browser Output</summary> <pre> Paste the output from your browser web console here. </pre> </details> <!-- To open the browser, please refer to the documentation: Chrome: https://developers.google.com/web/tools/chrome-devtools/open#console Firefox: https://developer.mozilla.org/en-US/docs/Tools/Web_Console#Opening_the_Web_Console -->