Hi Samuel, please provide a reproducible recipe, it's really hard to explore those kind of bugs otherwise.
The patch should fix at least these two bugs: - you enter "A headline/" as a refile target but "A headline/" is not in the current file: before the patch, it throws an error, after the patch it refiles to "A headline/". - you enter "A headline/a_non_existent_headline" as a refile target and have (setq org-refile-allow-creating-parent-nodes t). Before the patch, if "A headline/" is not in the current file, it will fail silently. Now the prompt asks for confirmation and will refile to the correct location by guessing the filename right. Thanks for letting me know. -- Bastien