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

fix(inngest): call observe fullStream base getter with the real output instance

createInngestAgent's observe() wraps fullStream and called the base getter
with the destructurable proxy as receiver. The proxy can't reach
MastraModelOutput's private fields, so the first read threw
"Cannot read private member #options". Use the getter's own receiver, as
core DurableAgent.observe() does, and add a regression test that reads
observe(runId).fullStream on a real Inngest dev server with aimock.

Co-Authored-By: mastra-platform[bot] <284800079+mastra-platform[bot]@users.noreply.github.com>
This commit is contained in:
mastra-platform[bot] 2026-11-10 16:00:45 +00:00
commit 3bcdda3fab
3 changed files with 85 additions and 2 deletions