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 }}
Repository navigation
One delta naming a substate the page never registered latches backend_state_mismatch and deadens the whole frontend for the rest of the session #7247
When a hydrate or event delta names a substate the compiled frontend does not know about, .web/utils/state.js sets backend_state_mismatch = true and both the socket event handler and processEvent() return early for the rest of the session (latch at state.js:730 on 0.9.12a1 / :749 on 0.9.11.post1; early returns at :706/:725; processEvent() at :520/:532). The rest of that delta is discarded, every later event is a no-op, and there is no reset path. The latch is deliberate ("Validate the whole delta before dispatching anything…", "A backend/frontend state mismatch is fatal; do not send further events"), so this is a request to change the design, not a regression report.
A backend redeployed with a new State class while browsers hold the cached old bundle recovers on reload, as the error message advises. What stays broken is the within-session case a reload cannot fix: mixed-version backends behind a load balancer, or api_url pointing at a backend other than the one that served the bundle.
To Reproduce
Build the frontend, then add a State class on the backend only (backend-only workers or .web/nocompile; the campaign's renderapp does it with RENDERAPP_EXTRA_STATE=1) and load the page.
Observed behavior
A_after_load='0', sent_frames_from_clicks=0, events_reach_backend=false, after_reload_sent_frames=0 while the server stays healthy and logs the CLIENT_ERROR round-tripping; no page errors.
Expected behavior
Drop (and warn about) the unknown substate and apply the rest of the delta, or never send substates the page did not register.
Specifics
Reflex 0.9.12a1 and 0.9.12a2; not a regression: identical field for field on 0.9.11.post1
Chromium, Linux
Additional context
0.9.12a1 pre-release QA, FINDING-023 (a standing finding from the previous campaign), confirmed by an adversarial verifier who lowered it from HIGH to MEDIUM on the grounds above. Related: #6250 (schema-mismatch reload detection). Evidence in render_ctx_statemgr/: out/mismatch_new_result.json, out/mismatch_prev_result.json, verification/v_mismatch_new_result.json, verification/v_mismatch_prev_result.json. Full write-up: FINDINGS.md.
Activity
linear-code commentedon Sep 22, 2026
ENG-12641