A friend and I were discussing this situation:
Player A attacks with all creatures, opponent (player B) have no blockers and gonna be lethal. Before damage step, player B plays Opt, resolves, and draw a Terminus. He reveals it, so miracle triggers go to stack. In response, before the miracle triggers resolve, player A activates an Aether Vial with two counters, resolves, and put a Kitesail Freebooter in the battlefield. Kitesail Freebooter triggered ability triggers, and player B decides that it resolves, so player A removes the Terminus from his hand. Now, while the miracle trigger is still on the stack, player B casts Path to Exile, exiling the Kitesail Freebooter. Terminus returns to his hand.
The question here is: when the miracle-triggered ability resolves, will player B be able to cast Terminus for its miracle cost, or is it considered another different card, like when you blink a permanent to save it from being a target?
(NOTE: We know already that player B could respond to the Kitesail Freebooter with the Path to Exile, so player A sees the hand and discards nothing, as the Kitesail Freebooter is not on the battlefield, but this is not the question we have).