Anyone else noticed this issue with Google Workspace addons?
When opening a card using this code (found on the google API reference site) the addon will open as a new overlay, but does not wait for the overlay to close, instead it waits around 4 seconds and then looses control over the overlay. So when the overlay closes it doesn't refresh the addon.
// A button that opens as a link in an overlay and
// requires a reload when closed.
var button = CardService.newTextButton()
.setText("This button opens a link in an overlay window")
.setOpenLink(CardService.newOpenLink()
.setUrl("https://www.google.com")
.setOpenAs(CardService.OpenAs.OVERLAY)
.setOnClose(CardService.OnClose.RELOAD_ADD_ON));