We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2480c56 commit a8dfea0Copy full SHA for a8dfea0
compose/graph_run.go
@@ -531,9 +531,13 @@ func (r *runner) handleInterruptWithSubGraphAndRerunNodes(
531
ToolsNodeExecutedTools: tempInfo.interruptExecutedTools,
532
SubGraphs: make(map[string]*checkpoint),
533
}
534
- if state, ok := ctx.Value(stateKey{}).(*internalState); ok {
535
- cp.State = state.state
+ if r.runCtx != nil {
+ // current graph has enable state
536
+ if state, ok := ctx.Value(stateKey{}).(*internalState); ok {
537
+ cp.State = state.state
538
+ }
539
540
+
541
intInfo := &InterruptInfo{
542
State: cp.State,
543
BeforeNodes: tempInfo.interruptBeforeNodes,
0 commit comments