Cursor Agent not working with custom end point

:laptop: Tell us your operating system and your Cursor version 0.46.11 on MacOS and Windows

I use cursor with custom API endpoint.
I have cursor Pro plan.
Model Name: OpenRouter

It work in Ask mode:

But not work in Agent Mode: (hang up in generating for 5 minutes)