MCPcopy Create free account
hub / github.com/GongShichen/LuminaCode / HasPendingWork

Method HasPendingWork

agent/tools_executor.go:168–177  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

166 defer e.mu.Unlock()
167 var results []map[string]any
168 for _, tid := range e.toolOrder {
169 slot := e.slots[tid]
170 if slot == nil {
171 continue
172 }
173 if slot.State == ToolStateCompleted || slot.State == ToolStateAborted {
174 slot.State = ToolStateYielded
175 if slot.Result != nil {
176 results = append(results, slot.Result)
177 }
178 }
179 }
180 return results

Calls

no outgoing calls