showPrompt() fails when more than one windows are open · Issue #71 · rstudio/rstudioapi

I found showPrompt() attempts to pop up a prompt per window. But, It seems only the first popup is valid as it raises an error shown bellow for the second and the subsequent ones: