0
Fork 0
mirror of https://github.com/mastra-ai/mastra.git synced 2026-11-17 08:44:46 +00:00
mastra/packages/memory/tsconfig.json
Tyler Barnes 2990bccd1c
fix(core): restore live signal delivery and AGENTS.md loading (#23554)
PR #23214 introduced a patch-level breaking change by suppressing
reactive and system-reminder events from live streams without an opt-in.
This restores the previous default and adds caller-local `hideSignals`
for streams, thread subscriptions, and memory recall. Model context,
storage, transforms, and other subscribers remain unchanged; recall
keeps its existing defaults. Shared execution options accept
`hideSignals` on `generate()` and `resumeGenerate()` without filtering
their results.

```ts
const output = await agent.stream('Review the changes', {
  hideSignals: ['reactive', 'system-reminder'],
});
```

Separately, fixes AGENTS.md discovery when completed tool results move
between message sets. Instruction lookup scans newest-first,
deduplicates covered paths, and preserves trusted-ref isolation across
filesystem aliases. Observational memory behavior is unchanged.

Verified with focused core, memory, SDK, and consumer suites; terminal
E2E checks for instruction loading and notifications; and clean-HEAD
CLI/built-package proofs for injection, live visibility, independent
filtering/replay, and recall. The latest cleanup additionally passes 214
focused runtime tests, type/parity checks, and the docs production
build, including regular/durable generate and resume no-op coverage.


<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## ELI5

Live streams now show important updates by default. Callers can hide all
or selected signal types without changing saved data, model context, or
generated results. The PR also improves `AGENTS.md` discovery when tool
results move or use filesystem aliases.

## Changes

- Restored `reactive` and `system-reminder` signals in live, replayed,
durable, and thread streams.
- Added caller-local `hideSignals` filtering for streams, thread
subscriptions, and `Memory.recall()`.
- Supported boolean and selected signal-type filters with legacy
signal-name normalization.
- Preserved unfiltered signals for model context, storage, transforms,
shared fanout, and aggregate results.
- Added `hideSignals` support to `generate()` and `resumeGenerate()`
without filtering their results.
- Preserved deprecated `includeSystemReminders` behavior and precedence
rules.
- Improved instruction discovery with newest-first scanning, moved
tool-result handling, path deduplication, filesystem identity
resolution, and trusted Git-reference paths.
- Added documentation and runtime, memory, SDK, type, CLI, terminal E2E,
built-package, and documentation coverage.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->

---------

Co-authored-by: mastra-platform[bot] <284800079+mastra-platform[bot]@users.noreply.github.com>
2026-09-10 17:14:50 -07:00

5 lines
193 B