Replace it, do not repair it. That crack you are describing, splitting the hook nearly in two, is not something to weld up and put back to work, because if it lets go the bucket drops on whoever happens to be below it. A failed coupler is one of those failures you do not get to walk away from. This is the one part of the excavator that simply has to be written off when it cracks like that.
The other reason to swap it out is legal. These things are classed as lifting devices and they get certified as such. If it gets repaired, fails down the track, and someone gets hurt, the paper trail leads straight back to whoever did the weld. HSE whould have your arses toasting on fires, and even without an injury, you do not want your name attached to a coupler that is swinging a load over people's heads. There is one narrow case where a repair might be acceptable. If the machine is only ever used with buckets and breakers, no lifting of any kind, a proper repair can be justified. But that is not a backyard job. It means getting the manufacturer's spec, using the correct parent material, air-arc gouging out the cracked metal properly, preheating to around 150C with interpass kept under 220C, and testing the locking mechanism before it goes back into service. Any lifting use at all, and it is replacement, full stop.
Even setting all that aside, the way you describe the surrounding metal, worn spots, chipped paint, grease worked into everthing, tells you the whole area has been working and fatiguing for a long time. You coud build the crack up and it would just start cracking again next to the repair, because the base metal around it is done. A new or secondhand certified coupler is cheaper than what a dropped bucket costs. That is my honest take on it.