fix(wfe-core): resolve .outputs. paths flat and pass empty object to child workflows

This commit is contained in:
2026-03-26 23:18:48 +00:00
parent f0cc531ada
commit ed38caecec
2 changed files with 27 additions and 4 deletions

View File

@@ -110,8 +110,15 @@ impl StepBody for SubWorkflowStep {
)
})?;
// Use inputs if set, otherwise pass an empty object so the child
// workflow has a valid JSON object for storing step outputs.
let child_data = if self.inputs.is_null() {
serde_json::json!({})
} else {
self.inputs.clone()
};
let child_instance_id = host
.start_workflow(&self.workflow_id, self.version, self.inputs.clone())
.start_workflow(&self.workflow_id, self.version, child_data)
.await?;
Ok(ExecutionResult::wait_for_event(