An alternative would be to read one of the commands from stdin. This way could do something like:
$ when -t ssh host > xmessage DONE! You won't get tab-completion and other interactive fancyness, but it won't be missed for simple notification commands. -- Fernando