August 6, 2026 — Reload last session / RefCalc inputs (v1.1.3)
Path: · Site v1.1.3 · SW cache v99
Problem
- RefCalc: after filling inputs, exiting a step, restarting the PWA, and tapping Reload last session, boxes stayed empty.
Root cause
flushTool merged full form captures into phvac-work-session, including empty strings.
- Default
climate_zone value 7 counts as meaningful, so a blank open still flushed.
- Empty gauge fields overwrote previously saved measurements → reload had nothing left to apply.
Fixes
js/work-session.js — mergeFields(): when tool is not dirty this visit, empty capture values do not clobber non-empty stored fields.
- Skip step reset on blank open (step only updates when dirty or restore-active).
js/ref-calc.js — suppress flush on first stepper paint; Clear Step calls markToolDirty so intentional clears still save.
- SW
phvac-app-v99.
Verify
- Fill Setup + Gauges → Next → Home → kill PWA → reopen → Reload last session → open RefCalc → values present.
- With a saved session: open RefCalc without Reload and leave → localStorage gauges unchanged.
- Clear Step still clears that step’s stored fields after edit/clear.