Open sheng-liang opened 2 weeks ago
@njhale Can you take a look at this? Specifically, what happens when someone has "Google Advanced Protection" enabled, and why GPTScript thinks that the credential is valid.
Just a few notes :
When I tested this, the Agent didn't think I was logged in, but did try to call the tools again the next time I asked it to. This resulted in the auth flow triggering, and failing, again.
I'm going to try to get some design input on Monday, but my current plan is to make the timeout message less generic (since we know it's waiting on auth there) and inject it into the chat history if possible. That way the Agent will at least be minimally aware that an error took place and doesn't try to call the same tools again as if nothing happened.
One thought: If the timeout is specific to oauth, i feel like it should be 60 or 90 seconds rather than 5 minutes. Either the user is going to log in or not.
I added some Gmail tools in my agent. The agent prompted me to authenticate. The agent fails to authenticate because I have Google Advanced Protection and apparently that does not work with GPTScript.
The problem is somehow the agent now thinks I'm logged in. Of course nothing works and the agent gives a timeout error