Skip to content

Mastra core 1.79.0 moves agent sessions to session IDs

Updated Mastra

Summary

Mastra core 1.79.0, released October 21, 2026, keys agent controller sessions by sessionId and adds span aggregation and MCP Events.

Tool
Mastra
Category
Frameworks
Date
Open source
Yes
MCP
Yes
Pricing
Not stated in the sources we cited.

Mastra published @mastra/core 1.79.0 on October 21, 2026, according to the GitHub release from mastra-ai. The release makes agent controller sessions addressable by session ID, adds span-level aggregation for observability, and introduces experimental MCP Events.

Release facts

FactDetail
ProductMastra, a TypeScript framework for AI agents and applications
Version@mastra/core 1.79.0 (also @mastra/deployer 1.79.0)
Release dateOctober 21, 2026
Where to get itGitHub release in mastra-ai/mastra

What changed

  • Sessions use session IDs (breaking). The release notes say sessions are addressed by sessionId instead of resourceId + scope. Many sessions can share one resourceId, which now only identifies whose threads and memory a session uses. controller.getSession(sessionId) is added, getSessionByResource is removed, and deleteSession() takes { sessionId }. If id is omitted it defaults to the resourceId, so one-session-per-resource code keeps working.
  • Session takeover guard. createSession throws when an explicit resourceId doesn't match the live session with that id.
  • Span aggregation. Storage adapters can implement aggregateSpans() and advertise the span-aggregate feature, for questions such as p95 latency per tool or token spend per calling agent. Grouping by model or provider is not supported yet.
  • Trace queries. aggregateTraces() can group by root span entityId. Observability queries also gain timeToFirstChunkMs fields.
  • Experimental MCP Events. MCP servers can publish event streams that clients poll, hold a stream open for, or receive via signed webhooks, with Studio inspection under mastra dev.
  • Sandbox filesystem and Connect. WorkspaceSandbox can expose an optional filesystem for one-roundtrip file operations. @mastra/connect adds per-end-user connection scoping and a Microsoft Teams channel.

Other breaking changes listed: the thread-row query contract uses timeRange.traces / timeRange.threads, querySpans() drops model/provider filters and several response fields, and channel resolveResourceId / resolveThreadId contexts now require requestContext.

Questions

Will existing session code break? The release notes mark the change as breaking. Code that relied on scope or getSessionByResource must move to session IDs, though code with one session per resource keeps working because id defaults to resourceId.

Do I need new storage adapters for the observability changes? The release notes say the querySpans() contract change requires updated storage adapters, and adapters without the span-aggregate feature reject aggregateSpans() as not implemented.

Is MCP Events stable? No. The release notes call it experimental and based on the SEP-3415 draft.

For more, see the Mastra hub, the Frameworks category, and the earlier Mastra Core 1.78 launch.

Alternatives

Mastra compared with its alternatives
ToolLicensePricing note
MastraThis launchTypeScript agent framework. Mastra Code is the terminal agent; AgentController is the extracted loop, in @mastra/core 1.47.0 or later.
Open sourceMastra Code and AgentController are announced as open source. No license fee is stated in the posts we cited.
LangGraphLangGraph is an open-source orchestration runtime for building stateful, resilient agents.
MITNot stated
CrewAICrewAI is a framework for orchestrating role-playing, autonomous AI agents that work together.
MITNot stated
Pydantic AIPydantic AI is a model-agnostic Python framework for building typed AI agents and applications.
MITNot stated
AgnoAgno is an orchestration and service layer for agents, exposing them through a REST API and an MCP server.
Apache-2.0Not stated

More from Mastra

View all
  • Mastra Agent Controller

    MastraMastra extracted the loop around Mastra Code into AgentController, shipping in @mastra/core 1.47.0 on June 18, 2026.

  • Mastra Code

    MastraMastra Code is an open-source terminal coding agent, announced February 24, 2026, built around observational memory instead of compaction.

Questions

What is Mastra?

Mastra is a TypeScript framework for agents. In 2026 the team shipped Mastra Code, a terminal coding agent, and then AgentController, the class that wraps the agent loop.

What are Mastra alternatives?

OpenAI's Agents SDK and Agents API, OpenHands Agent Canvas, and OpenCode if you want a finished terminal client rather than a framework.

Filed on Agent Radar. Claims in this note are limited to the sources above.