Embedded Chat: after page reload, tool calls/intermediate steps show up as AI messages (need to keep steps for analytics)

Hi @Daniel_Santos_solucx, welcome!

I’m able to reproduce this, sounds like a bug but I’m not sure,

I don’t think it’s supposed to expose the intermediate calls, which seems to happen only when loading the previous session,
The logic there seems to just loading the messages array, which contains human, ai, tool messages..

If you have the time, maybe report this on GitHub, It would be nice to know whether this is intentional or not…