Did you figure it out? Way beyond me (novice AC programming at this point, especially with a nested conditional? ;-0) . I’ll offer a thought gained from a few other experiences over the years with apps: maybe the session did not load an ID or value on start or lost it at some point. Then, the subsequent ‘open’ loaded it, allowing the expression to ‘evaluate’.
“The best thing about the future is that it comes one day at a time.” - Abraham Lincoln
AC27 USA on 16” 2019 MBP (2.4GHz i9 8-Core, 32GB DDR4, AMD Radeon Pro 5500M 8G GDDR5, 500GB SSD, T3s, Trackpad use) running Ventura OS + extended w/ (2) 32" ASUS ProArt PAU32C (4K) Monitors