0
Fork 0
mirror of https://github.com/mastra-ai/mastra.git synced 2026-11-17 08:44:46 +00:00

[MASTRA-2662] Fix compound subscribers edge case (#3406)

## Description

When a compound subscriber is defined after a previous subscriber
(having overlapping stepIDs), the second subscriber does not run due to
the dependencies array prematurely getting cleared.

## Related Issue(s)
Closes #3151 

## Type of Change

- [x] Bug fix (non-breaking change that fixes an issue)

## Checklist

- [x] I have performed a self-review of my own code
- [x] I have added tests that prove my fix is effective or that my
feature works
- [x] New and existing unit tests pass locally with my changes
- [x] I have generated a changeset for this PR
This commit is contained in:
dayo 2025-04-02 15:07:38 +01:00 • committed by GitHub
commit 515ebfb8a9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 43 additions and 1 deletions