fix(state): avoid leaking filtered async vars
Merged
KR
2mo ago+129+129+012345678901234567890123456789-17-17-01234567890123456789
Summary
Fixes #7254.
Filtering an async uncached computed variable out of a state delta leaves its getter coroutine unawaited. Closing the outer coroutine cannot clean up an inner coroutine created before the wrapper starts.
What changed
- Create the async getter coroutine only when its delta wrapper is awaited.
- Keep delivery-aware deduplication and placeholder invalidation intact.
- Remove the warning suppression and cover filtering through real event processors with in-memory and disk state managers.
- Add a bugfix changelog fragment.
Verification
- Full unit suite: 11,189 passed, 155 skipped; 78.97% coverage.
- Ruff lint, formatting and
pyright reflex testspassed. - Pre-commit hooks passed for all changed files.
- Live app browser checks passed for withholding and releasing values with no unawaited coroutine warnings.