I have been using Vimspector for debugging Python but like 8-10 months now, the Python terminal buffer that is opened by Vimspector when the debugger runs, is not automatically closed when the debugger re-starts or exits. This leads to having multiple Python terminal buffers, one for each run of the debugger.
I have tried to run the bare-minimum example of Vimspector and this doesn't happening. Meaning that the Vispector is not to blame. I thought that it was the status line (lightline plugin) that I use, but again the same.
The weird part, which lead me ask here, is that after I restarted my computer (MacOS with M1) the above issue with the buffers didn't happen when I first run the Vimspector. When I closed Vim and reopened it, then the issue came back.
Any help? I'm quite baffled by this issue.