Fix superseding shared child events

Closed
HA
3mo ago
+163-12

Fixes #7041.

When two different superseding root events enqueue the same superseding child event, the second child event did not cancel the first because supersession was only applied to root-level enqueues. This could allow stale background work to continue running alongside the newer event.

This change applies the existing supersession-key logic to chained events while preserving existing behavior for non-superseding handlers.

Included:

  • Regression test covering distinct root chains sharing a superseding child event.

  • Documentation update for chained-event supersession behavior.

  • reflex-base changelog fragment.

Validation:

  • 45 event processor tests passed.

  • Changed-file pre-commit checks passed, including Ruff, codespell, pyright, ty, and the pyi hook.