Add files via upload

This commit is contained in:
公明 authored and GitHub committed 2026-05-08 13:08:45 +08:00
1 parent 84f4da4d1d
commit 1130fdbfa4
3 files changed
+81

No files matched your search

+2
View File
@@ -458,7 +458,9 @@ func (m *ExternalMCPManager) CallTool(ctx context.Context, toolName string, args
execCtx, runCancel := context.WithCancel(ctx)
m.registerRunningCancel(executionID, runCancel)
notifyToolRunBegin(ctx, executionID)
defer func() {
notifyToolRunEnd(ctx, executionID)
runCancel()
m.unregisterRunningCancel(executionID)
}()