This script looks if Visual Studio Code is active as a window. Then checks every second if the Element "Gemini 2.5 generated this response due to high traffic on Gemini 3" could be found in this window. If it's found it clicks the "Stop current request" button, waits for 500ms and then clicks the Regenerate response button.
This is helpful when generating code responses (not agent mode) for larger projects where Gemini 2.5 is often messing up.
The VSGeminiHighTrafficAutoRefresh.exe should be visible in the tray and can be exited via the right-click menu if not needed.