I had some problems when my VS Code became stuck multiple times because agents attempted to run some simple terminal commands, and my CPU flew to the moon. Of course, a reboot helped. But I was also thinking it could be because of my /bin/zsh configuration, which includes Oh My Zsh and the Powerlevel10k theme and takes up to 1 second to load. I had no issues with /bin/bash. I decided to see if it was possible to keep my zsh shell while instructing agents to use the bash shell.
There is a solution for settings.json:
"chat.tools.terminal.terminalProfile.osx": {
"label": "bash",
"path": "/bin/bash"
}Perhaps it would be useful for you as well.