[BUG] Startup hangs on interactive question call from .Rprofile

Due to my laziness, I added an interactive question via a script call by a modal window to the .Rprofile into one of my projects. The idea was as follows: I wanted to stop having to scroll to the beginning of the script I was working on and execute the library call strings every time I opened the project. So, I wrote two scripts: one that loads the list of libraries and another that scans all the scripts in the task and generates the first script. I decided to run the second script with a question for the user, asking if he wanted it.
However, a problem arose with RStudio. Everything works perfectly in the code part. But if I launch the IDE with this open project, the RStudio start logo covers my modal window, and I can't see it because the start logo is shown in over-all mode. And the start logo doesn't disappear until I click the button in the modal window. Apparently, the IDE waits until the project is fully opened, which includes loading the environment and the .Rprofile. Thankfully, the logo can be dragged to the side, but the first time, I was confused and thought that IDE hungs.

Here my Rstudio version:

RStudio 2025.05.0+496 "Mariposa Orchid" Release (f0b76cc00df96fe7f0ee687d4bed0423bc3de1f8, 2025-05-04) for windows
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) RStudio/2025.05.0+496 Chrome/132.0.6834.210 Electron/34.5.1 Safari/537.36, Quarto 1.6.39

Here my .Rpfofile content:

# This file is sourced at the start of an R session.

if (interactive()) {
  prompt <- utils::askYesNo(
    "🔧 Do you wish to update  load_libs.R with help of generate_load_libs.R?",
    default = FALSE
  )
  
  if (isTRUE(prompt)) {
    try(source("scripts/generate_load_libs.R"), silent = TRUE)
  }
  
  try(source("load_libs.R"), silent = TRUE)
}