agents icon indicating copy to clipboard operation
agents copied to clipboard

useAgentChat stops working when new worker is deployed

Open ruqqq opened this issue 1 year ago • 3 comments

When the page is currently open and you deploy a new version of the worker (or redeploy), it seems like the websocket is reconnected. However, when sending new messages, it will just hang. You will need to refresh to get everything working again.

How do we fix this? The "status" and "error" value from useAgentChat shows no indication of an error.

ruqqq avatar Mar 11 '25 08:03 ruqqq

ouch, looking into it

threepointone avatar Mar 11 '25 10:03 threepointone

I'm not sure what exactly fixed it, but not facing this issue anymore. Could be upgrading to the latest agent-sdk fixes it. Eitherway, I'll close this issue for now @threepointone

ruqqq avatar Mar 19 '25 13:03 ruqqq

thank you, good to know!

threepointone avatar Mar 19 '25 13:03 threepointone