My apologies if this has already been discussed, I could not find it in my searches.
A "hidden" unit attacks Jyn. When the attack resolves, Jyn can interrupt to perform an attack with Peacemaker. But Hidden condition is removed after the attack resolves.
My understanding is that both triggers are simultaneous (after the attack reslves), therefore the Imperial player decides the order. Therefore the Imperial unit can remain hidden while Jyn interrupts, and benefits from the -2 accuracy on that attack.