The inventor of the patent died. What about his cooperation and contract before his death?

First of all, it should be clear that the applicant is the patentee and the inventor is not the obligee. But I guess the inventor you mentioned here actually refers to the applicant, that is, the patentee.

Patent right is a private right, which can be transferred or inherited. Therefore, if the agreement signed before the expiration of the patent right is not personal, the successor of the right should bear the obligation to enjoy the right. If it is an agreement involving personal attributes, it will generally not continue.