Strange behavior of code components

Hello!

I’m using Plasmic (Codegen) in my Next.js project.

I have the following code component:

When I run the app locally it works as expected:
local-development

But in Plasmic studio (interactive mode) and production it doesn’t:
plasmic-studio-interactive-mode

As you can see the message appears for a second and then is not displayed.

Could you help with this issue?

Relevant links:

Hi, it’s hard to investigate this kind of issues, since it seems related to the business logic of useChat which is not retaining the content of messages, we may be able to collaborate on it Collaborating with Plasmic | Learn Plasmic but as this doesn’t seem a direct issue in Plasmic, we may not prioritize it right now