fix: workflow tool in react agent resume once in one agent run (#1801)

This commit is contained in:
shentongmartin
2025-08-26 10:57:37 +08:00
committed by GitHub
parent f19761fa31
commit 2a704fc873
4 changed files with 19 additions and 3 deletions

View File

@@ -283,7 +283,7 @@ func handleEvent(ctx context.Context, event *Event, repo workflow.Repository,
return noTerminate, fmt.Errorf("failed to update workflow execution to interrupted for execution id %d, current status is %v", exeID, currentStatus)
}
if event.RootCtx.ResumeEvent != nil {
if event.RootCtx.ResumeEvent != nil && !event.RootCtx.ResumeEvent.Popped {
needPop := false
for _, ie := range event.InterruptEvents {
if ie.NodeKey == event.RootCtx.ResumeEvent.NodeKey {