mirror of
https://github.com/run-llama/chat-ui.git
synced 2026-07-22 03:45:20 -04:00
useWorkflow status is undefined until it recieves its first event
#24
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @adrianlyjak on GitHub (Jun 25, 2025).
I was testing out the new
useWorkflowhook. My workflow is long running, and wasn't actually writing any events to the stream (yet). This seems to cause the workflow handler's status to remainundefined. Sending an initial event fixed the issue, and updated the status, but seems like this should be able to consider the workflow running after sending the initial start event@marcusschiesser commented on GitHub (Jun 27, 2025):
@llamaindex/chat-ui@0.5.11 now sets status to
runningafter the task is started - @adrianlyjak does that work for you?@adrianlyjak commented on GitHub (Jun 27, 2025):
@marcusschiesser that sounds good! Thanks. The semantics of the change here seem good. I’m a little mystified as to what I was running into initially, as I couldn’t really recreate it. Llamadeploy also seemed to be streaming correctly in a test, and I didn’t look into it further