This is a common problem and you can find reports of it all over X, including from some influencers. Even outside of VSCode.
Never seen it on iTerm2.
This "outside of VSCode", was it still with a webview-based terminal?
Never seen it on iTerm2.
This "outside of VSCode", was it still with a webview-based terminal?