fix(devin): update streaming tool call step metadata if arriving in subsequent frames

This commit is contained in:
sususu
2026-09-13 16:23:13 +08:00
committed by sususu98
parent d754298a8b
commit 50dd582641

View File

@@ -700,6 +700,12 @@ func (e *DevinExecutor) streamDevinFrames(
if !emitInteractionsEvent(startEvent) {
return
}
} else if tc.Name != "" || tc.ID != "" {
updateEvent, _ := sjson.SetBytes([]byte(`{"event_type":"step.start","index":0,"step":{"type":"function_call","name":"","id":"","call_id":"","arguments":{}}}`), "index", sIdx)
updateEvent, _ = sjson.SetBytes(updateEvent, "step.name", tc.Name)
updateEvent, _ = sjson.SetBytes(updateEvent, "step.id", tc.ID)
updateEvent, _ = sjson.SetBytes(updateEvent, "step.call_id", tc.ID)
_ = emitInteractionsEvent(updateEvent)
}
if tc.Arguments != "" {