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
| Fact | Detail |
|---|---|
| Product | Mastra, a TypeScript framework for AI agents and applications |
| Version | @mastra/core 1.79.0 (also @mastra/deployer 1.79.0) |
| Release date | October 21, 2026 |
| Where to get it | GitHub release in mastra-ai/mastra |
What changed
- Sessions use session IDs (breaking). The release notes say sessions are addressed by
sessionIdinstead ofresourceId + scope. Many sessions can share oneresourceId, which now only identifies whose threads and memory a session uses.controller.getSession(sessionId)is added,getSessionByResourceis removed, anddeleteSession()takes{ sessionId }. Ifidis omitted it defaults to theresourceId, so one-session-per-resource code keeps working. - Session takeover guard.
createSessionthrows when an explicitresourceIddoesn't match the live session with that id. - Span aggregation. Storage adapters can implement
aggregateSpans()and advertise thespan-aggregatefeature, 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 spanentityId. Observability queries also gaintimeToFirstChunkMsfields. - 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.
WorkspaceSandboxcan expose an optionalfilesystemfor one-roundtrip file operations.@mastra/connectadds 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
| Tool | License | Pricing 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 source | Mastra 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. | MIT | Not stated |
CrewAICrewAI is a framework for orchestrating role-playing, autonomous AI agents that work together. | MIT | Not stated |
Pydantic AIPydantic AI is a model-agnostic Python framework for building typed AI agents and applications. | MIT | Not stated |
AgnoAgno is an orchestration and service layer for agents, exposing them through a REST API and an MCP server. | Apache-2.0 | Not stated |
More from Mastra
Mastra 1.80.0 adds per-user OAuth connections for agent tools
MastraResource-scoped connections and connection prompts arrive alongside observability and run-control changes.
Category: Frameworks
Pricing: Not stated
Mastra Core 1.78 adds agent scopes and typed signal queues
MastraThe October 16 release introduces scoped agent identity, trace aggregation and typed queued signals, with server upgrade requirements.
Category: Frameworks
Pricing: Open source
Mastra core 1.76.0 adds durable run ownership and fencing
MastraMastra's @mastra/core 1.76.0, published October 13, 2026, makes durable agent crash recovery safe across instances and adds atomic Postgres memory merges.
Category: Frameworks
Pricing: Open source
Mastra Agent Controller
MastraMastra extracted the loop around Mastra Code into AgentController, shipping in @mastra/core 1.47.0 on June 18, 2026.
Category: Frameworks
Pricing: Open source
Mastra Code
MastraMastra Code is an open-source terminal coding agent, announced February 24, 2026, built around observational memory instead of compaction.
Category: Coding agents
Pricing: Open source
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.