Last time,
I left you with a few questions.
Part of the answer to the first question
was given in the comments, so I'll just link to that.
The problem is more than just typeahead, though.
The dialog box doesn't show itself until all message traffic
has gone idle.
If you actually ran the code presented in the original message,
you'd find ...