Have pilots be able to seek help and not affect their ability to fly after recovery. Have planes equipped with remote control that can override pilots in extreme situations. Have cameras inside the cockpit and cabin stream live alongside all the data otherwise recorded in black box using the LEO. The latter is being already discussed anyway.
A lot of recent developments made things possible that were previously outrageous. Pilots will be reduced to mere backup, and eventually completely replaced by autonomous systems, just like the train engineers do nowadays, with the only pilots working remotely in command centers ready to take over if needed.
If we can do remote surgeries using robots, there’s no reason this couldn’t be a thing.