You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jul 31, 2026. It is now read-only.
Repository navigation
Commit 30cded5
Browse filesBrowse the repository at this point in the historyBrowse files
feat: smart scan exit + correct phase messages across workflow
Workflow phases now correct end-to-end:
1. 📡 Scanning RFID... (WF_SCANNING — motor rotating, no UID yet)
2. [background] container + twin fetch in parallel, also waiting for 2nd UID
2bis. Early exit SCANNING if twin found in Firestore + container ready
→ no need to wait for 2nd physical reader (reason=twin_firestore)
3. ⚖️ Stabilizing... (WF_STABLE_WAIT — UID found, weight settling)
4. ⏳ Sending... (WF_SENDING)
5. ✓ Sent (success)
Bug fixed: gTwinFetchDone was consumed by display pickup → pushWeightToCloud
fell through to a duplicate sync readInventoryDocTwinTag. Now display pickup
reads gTwinFetchResult without clearing the flag — pushWeightToCloud is the
sole consumer of gTwinFetchDone.
sendPhase values: "scanning" → "stabilizing" → "send" → "success"/"error"
WS values: "scanning:N" → "stable:N" → "send" → "success"/"error"
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
0 commit comments