useWorkflow status is undefined until it recieves its first event #24

Closed
opened 2026-02-16 02:17:44 -05:00 by yindo · 2 comments
Owner

Originally created by @adrianlyjak on GitHub (Jun 25, 2025).

I was testing out the new useWorkflow hook. 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 remain undefined. 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

Originally created by @adrianlyjak on GitHub (Jun 25, 2025). I was testing out the new `useWorkflow` hook. 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 remain `undefined`. 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
yindo closed this issue 2026-02-16 02:17:44 -05:00
Author
Owner

@marcusschiesser commented on GitHub (Jun 27, 2025):

@llamaindex/chat-ui@0.5.11 now sets status to running after the task is started - @adrianlyjak does that work for you?

@marcusschiesser commented on GitHub (Jun 27, 2025): @llamaindex/chat-ui@0.5.11 now sets status to `running` after the task is started - @adrianlyjak does that work for you?
Author
Owner

@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

@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
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: run-llama/chat-ui#24