Involuntary re rendering of widget when using sendFollowUpMessage

Hello.

So somehow (without me changing anything of the code logic) when a widget uses sendFollowUpMessage to render a new widget.. chatgpt is re rendering the main widget and then it renders the new one… this is a new behavior cuz before last week it wasn’t happening with the same codebase. anyone facing the same situation?

thanks!

1 Like

for me, sendFollowUpMessage never triggers a new tool call = so no new widget (and i would like that). It just triggers textual response or thinking block.

1 Like

Hi Strajk,

What if, when you click the card, you instead open the widget in full screen and show the details of that city?

From what I recall, when I tried the GitHub - openai/openai-apps-sdk-examples: Example apps for the Apps SDK, this is how their pizza example works.

For deterministic outcomes (like when you click a card and 100% of the time want to be shown the details), it’s best to use code, not LLM.

I mean, it depends what you tell it to do. In my case I would do something like this:

await window.openai.sendFollowUpMessage({
prompt: `Show me the service form for ${serviceKey}. Please use the service-form tool.`
});

and this was working fine last time i checked.

how do you render a different widget from a widget?? thanks!