Keeping track of (the latest) completed layers

What is the problem?

I recently had a power failure during a longer lasting print and I noticed it too late.
I wonder whether there is a plug-in available that keeps track of the (latest) printed layer so that I can intervene after power failure and slice the object again with the "not printed" layers.
*** I know that a solution wouldn't be easy but I think that would be the only solution (in this case) ***

Systeminfo Bundle

octoprint-systeminfo-20240210233552.zip (674.2 KB)

Additional information about your setup

OctoPrint v 11.1.2, OctoPi Build 2023.05.23.082504 , Ender-3, Chromium, Linux Mint 22.1

Thanks in advance

PS: I'm hoping this is the right spot to post my question.

Besides the plugin cited above, ...

If you send info to mqtt, the latest layer should be found in there somewhere. The mqtt interface is actually a bit chatty and will load the raspberry pi a little, but it sends a lot of info to the mqtt server. I use it for tracking print start, finish times and for monitoring progress. It gives me firehose quantities of information.

Btw. doesent the ender have a power recovery feature?