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

Method TryStartQueued

agent/tools_executor.go:104–119  ·  view source on GitHub ↗
(tcID string)

Source from the content-addressed store, hash-verified

102 return false
103}
104
105func (e *StreamingToolExecutor) TryStartQueued(tcID string) bool {
106 e.mu.Lock()
107 slot := e.slots[tcID]
108 if slot == nil || slot.State != ToolStateQueued {
109 e.mu.Unlock()
110 return false
111 }
112 slot.PermissionGranted = true
113 canStart := e.canStartImmediatelyLocked(slot.TC, true)
114 e.mu.Unlock()
115 if !canStart {
116 return false
117 }
118 e.launch(tcID)
119 return true
120}
121
122func (e *StreamingToolExecutor) SetToolDecisionMapValue(mapKey, tcID, value string) {

Calls 2

launchMethod · 0.95