I'm not sure.
The war was very active, I was seeing the naval combat image during turn resolution and provinces change to Union control etc. So it really shouldn't have been the auto-white peace event.
On the other hand, you as a player, can't make peace in the context of a Full war till the period has expired. So don't think the AI could manage to do that either.
The event script just said the war had ended