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

Method Shutdown

agent/loop.go:334–356  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

332 client.Disconnect(ctx)
333 }
334 e.mcpContext = nil
335 e.mcpInitialized = false
336}
337
338func mergeExecutionContext(dst, src coretools.ExecutionContext) {
339 for key, value := range src {
340 dst[key] = value
341 }
342}
343
344func (e *CoreExecutionEngine) Abort() {
345 e.mu.Lock()
346 e.aborted = true
347 if e.permissionFuture != nil {
348 select {
349 case e.permissionFuture <- permissionDecision{decision: PermissionDeny}:
350 default:
351 }
352 }
353 if e.skillPermissionCh != nil {
354 select {
355 case e.skillPermissionCh <- false:
356 default:
357 }
358 }
359 if e.mcpTrustCh != nil {

Callers

nothing calls this directly

Calls 5

disconnectMCPMethod · 0.95
NewAgentTaskRuntimeFunction · 0.85
ClearAllMethod · 0.80
ShutdownMethod · 0.65
CancelMethod · 0.45

Tested by

no test coverage detected