Apps SDK Widget Returning Before Tool Output is ready

I’m facing an issue where my widget is returning before my tool responds, that being, before the toolOutput is available. This results in undesirable UI content. I’m using state management with an eventlistener for openai:set_globals in React to workaround this, but this is not how other apps work (Coursera app, for instance, waits for all content to be ready before showing the widget).

Am I missing something here?

This pattern can be a good thing, as you can control the loading yourself.

Until there is no output, we show a loading screen like this:

1 Like

Thanks for your suggestion, I’m able to work with that. I just wanted to make sure there was no other way of accomplishing that.

Tagging this as complete

1 Like