There's a new RUN from somewhere

I save the file to open ai, and wait for the completed status of a simple RUN. Then write a message on this file and it crashes with error 400 due to the fact that some other RUN (id is different at the same time) has already been created in the chat. Why does this happen?

I would put some logging into your code anywhere that an API call is made to a run endpoint, or for tool return.

You might see that you are the one doing this.

What, where, and how are you doing a “save the file to OpenAI”, though…