fix(state): avoid leaking filtered async vars

Merged
KR
2mo ago
+129-17

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 tests passed.
  • Pre-commit hooks passed for all changed files.
  • Live app browser checks passed for withholding and releasing values with no unawaited coroutine warnings.