mirror of
https://github.com/mastra-ai/mastra.git
synced 2026-11-17 08:44:46 +00:00
fix(core): stop observe offsets past the log end replaying the whole run
On transports that keep old messages (Redis Streams), subscribing from an offset past the end of a run's log let the retained frame 0 trip the log-restart guard, so the observer resynced from the start and received the whole run again. The starting cursor is now clamped to the log length. Frames without numbering (evented engine on a cross-process pubsub with no shared server cache) cannot be skipped by position; offset subscribers now get a one-time warning recommending a shared cache such as RedisServerCache. Fixes #28324 Co-Authored-By: mastra-platform[bot] <284800079+mastra-platform[bot]@users.noreply.github.com>
This commit is contained in:
parent
b7ff751ed0
commit
162c296a3c
4 changed files with 274 additions and 2 deletions
Loading…
Add table
Add a link
Reference in a new issue