You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I think I know what's going on, but not sure how to best fix.
in v2_0.ts we have
exportfunctiondecodeV2_0JsonToClientWorkflow(json: Prisma.JsonValue): ClientWorkflow{/* * Here we go from SerializedWorkflow to Workflow to ClientWorkflow. * * TODO: Instead, we could go directly from SerializedWorkflow to * ClientWorkflow (useful especially if workflow implementation is * deprecated, so we can't resume it but still want to show it). */const{ bundle, entrypoint }=v2WorkflowDataSchema.parse(json);constcodec=getAiCodec();constdeserializer=codec.makeDeserializer(bundle);constworkflow=deserializer.deserialize(entrypoint);returnworkflow.asClientWorkflow();}
The problem here is that this.startTime came from when the Workflow was initialized - when using a deserializer, this registers as "just now", not when the workflow really started.
One way of fixing this is, instead of using this.startTime, you use the start time of the first Run. I think this is available. That said, this is kind of unelegant.
Just thinking about this - it would also be nice if we could show the full prompt in the "Actions" view.
The text was updated successfully, but these errors were encountered: