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
Withholding an async @rx.var(cache=False) from a delta leaves the inner coroutine unawaited ("RuntimeWarning: coroutine '..._awaitable_result' was never awaited") #7254
When a get_delta filter drops an async uncached var from the delta (reflex-enterprise's auth filter does this for protected vars), it can only close() the _drop_unchanged_delta_value wrapper coroutine. The inner AsyncComputedVar.__get__.<locals>._awaitable_result coroutine has already been created and is unreachable from outside, and closing a never-started wrapper runs none of its code, so there is no hook to close it from inside either. Python then emits
RuntimeWarning: coroutine 'AsyncComputedVar.__get__.<locals>._awaitable_result' was never awaited
into the server's stderr on every filtered event. Users of enterprise auth see this in their logs. Pre-existing before #7216 (verified against origin/main with the fix reverted); the #7216 regression tests carry a targeted filterwarnings marker for it.
Run any event with -W error::RuntimeWarning, or remove the filterwarnings marker from the async cases of the #7216 test in tests/units/test_state.py and run them.
Expected behavior
No warning: build the inner coroutine lazily (only once the filter has decided to send the value), or await/close it when the wrapper is closed.
Specifics
Reflex 0.9.12a1 and 0.9.12a2 (reflex-base 0.9.12a2); pre-existing
Python 3.11.15, Linux
Additional context
Found while fixing #7212 (PR #7216); recorded in the fix report as a pre-existing nit and left out of that PR on purpose. Evidence: fixes/f003/REPORT.md, items 5 and follow-up 4.
Activity
linear-code commentedon Sep 22, 2026
ENG-12648