Some additional information --

It works the same whether you use kbd-macro-query or recursive-edit in the hook. Adding exit-recursive-edit to the minibuffer-exit hook doesn't help.

To actually finish typing in the minibuffer, it appears like you need to do M-C-c, and then you can press enter to finish.

-- Morgon