diff --git a/neo/assistant/hooks.go b/neo/assistant/hooks.go index 3ab7d434..6a801c94 100644 --- a/neo/assistant/hooks.go +++ b/neo/assistant/hooks.go @@ -221,9 +221,6 @@ func (ast *Assistant) call(ctx context.Context, method string, context chatctx.C // Wait for either context cancellation or method completion select { case <-ctx.Done(): - if scriptCtx != nil { - scriptCtx.Close() // Force close the script context - } return nil, ctx.Err() case <-done: return result, callErr