gptscript-ai / desktop

MIT License
19 stars 13 forks source link

Difference in when the user is prompted for oauth workflow when tools get added to the thread vs chatting with an assistant that has the tool already added. #178

Open sangee2004 opened 1 month ago

sangee2004 commented 1 month ago

When I create an assistant with tool that has outlook mail tool and launch a chat session, the first thing I see is that I am presented with oauth flow for outlook mail tool. This experience is different from when I use "Add tool" to add outlook mail tool to an existing thread . I am not prompted for oauth flow right after this. I am promoted for the oauth flow only when a question regarding email is asked.

Seems like it is a better user experience to be prompted for the oauth workflow right after outlook mail tool gets added instead of having to wait for the oauth workflow to be triggered by the first chat message relating to mail.

cjellick commented 3 weeks ago

@thedadams want to put this on your radar while youre looking at oauth flow

thedadams commented 3 weeks ago

This issue is a result of the fact that dynamic tools aren't built into gptscript and the UI is doing something to work around that. I don't think anything I will do will change this behavior. In other words, the prompting of the user is handled by gptscript and the dynamic tool adding is done by the UI.