Zum Inhalt springen

Mastra Release Notes

Einträge
38
Quellen
1
Zuletzt aktualisiert

Folge Mastra, um die Release Notes in deinen Feed zu holen.

Mastra

Mastra 1.64.0: Trace-korrelierte Logs mit AdaptableLogger und Pino

Mastra 1.63.0 bringt trace-korrelierte Logs über den neuen AdaptableLogger-Vertrag, eine Pino-Integration mit Trace-Kontext in allen Transports, zuverlässigeres Verlinken von Logs und Metriken bei nicht exportierten Spans sowie Verbesserungen bei der Deployment-Bereitschaft von Workern.

Highlights

Reusable Sandbox Templates + Warm Repo Checkouts (E2B & Platform)

New reusable template APIs in @mastra/platform-workspace plus @mastra/e2b repo templates let sandboxes start from a pre-cloned, pre-built repository image (with background rebuilds and resource sizing), dramatically reducing cold-start time for code sessions and workspace-backed agents.

Unified workingDirectory Across All Sandbox Providers

A new workingDirectory option in MastraSandboxOptions is now honored by every sandbox provider (with a sandbox.workingDirectory getter), standardizing default command/process CWD behavior across Docker/E2B/Vercel/Railway/etc. while still allowing per-command cwd overrides.

Client-Side Tools Can Use Server-Defined toModelOutput

Client-executed tools (browser tools without execute) now support server-defined toModelOutput, so the server can transform the returned payload into model-ready content (e.g., turning { fileId, dataUrl } into an image content part) without custom input processors.

Observability Feedback Review Workflow (API + Storage + UI Plumbing)

Feedback records now support reviewStatus (needs-review/reviewed) with filtering in listFeedback, a new storage method updateFeedbackReviewStatus, and a new server endpoint PATCH /api/observability/feedback/:feedbackId/review-status exposed in @mastra/client-js.

New @mastra/evals/vitest Test Runner Integration …

Originalquelle(öffnet in neuem Tab)Problem melden

Mastra

Mastra 1.64.0: Sandbox-Templates, einheitliches workingDirectory, Vitest-Integration

Mastra 1.64.0 bringt wiederverwendbare Sandbox-Templates mit vorgeklonten Repos, ein einheitliches workingDirectory für alle Sandbox-Provider, serverdefiniertes toModelOutput für clientseitige Tools, einen Review-Workflow für Feedback und die Integration @mastra/evals/vitest.

Highlights

Trace-correlated logging via the new logger adapter contract

A new AdaptableLogger contract in @mastra/core/logger standardizes trace correlation by injecting trace_id/span_id into native log records during traced operations, and deriving observability LogEvents from the same record. Mastra now supports loggerOptions to control correlation and log export, and the legacy dual-write wrapper path is deprecated.

First-class Pino integration with trace context in every transport

@mastra/loggers’ PinoLogger now implements the adapter contract, so trace fields are added via a pino mixin to stdout, files, and custom transports—while preserving user mixin fields. This aligns native application logs with Mastra observability without separate logging pipelines.

More reliable trace/log linking for non-exported spans (no more “Span not found”)

Across @mastra/core and @mastra/observability, logs/metrics emitted inside internal or excluded spans now link to the nearest ancestor span that actually reaches exporters, and omit spanId when none exists. This fixes broken click-through from Studio and ensures stdout correlation matches stored observability records.

Deployment readiness improvements: worker health gating …

Originalquelle(öffnet in neuem Tab)Problem melden

Mastra

Mastra 1.61.0: Experiment-APIs, Graceful Shutdown und atomares resume()

Mastra 1.61.0 ergänzt Experiment-APIs für externe Orchestratoren, konfigurierbaren Graceful Shutdown mit HTTP-Drain, automatische Markierung von Nachrichten als delivery: 'while-active', atomares Beanspruchen bei Workflow-resume() mit 409-Konflikten und einen Multi-Turn-LLM-Judge-Scorer.

Highlights

Caller-Driven Experiments (Temporal/External Orchestrator Support)

New dataset experiment APIs let external orchestrators own the experiment loop while Mastra remains the system of record: create experiments idempotently, run items server-side (runExperimentItem) or submit externally computed results (submitExperimentResult), then finalize for server-computed succeeded/failed/skipped counts—fully compatible with Studio views and comparisons.

Graceful Shutdown + HTTP Drain Controls for Generated Servers

Generated servers now support configurable shutdown behavior (drain in-flight requests, tune drainTimeout, or disable built-in signal handlers) with improved shutdown draining behavior and cleanup reliability across @mastra/core and @mastra/deployer.

First-Class “While-Active” Message Delivery in Sessions

User messages sent while an agent is already working are now consistently marked delivery: 'while-active' automatically (including steering), simplifying clients and preserving accurate transcripts across reloads while keeping caller overrides supported.

Workflow Resume Concurrency Safety (Atomic Claim + 409 Conflicts)

Concurrent resume() calls are now safe: a resume atomically claims a suspended run (losers get WORKFLOW_RESUME_ALREADY_CLAIMED and HTTP 409), and workflow state updates add an expectedStatus guard to prevent duplicate downstream execution.

Evals: Multi-Turn LLM Judge Scorer …

Originalquelle(öffnet in neuem Tab)Problem melden

Mastra

Mastra 1.60.0: Durable Execution für Stored Agents, Cloudflare-Sandbox, MCP 2026-07-28

Mastra 1.60.0 erlaubt Durable Execution für Stored Agents über die Agents API mit durable: true, ergänzt den Provider @mastra/cloudflare-sandbox, unterstützt MCP 2026-07-28 mit Multi-Round-Elicitation, führt Sandbox-Checkpoints ein und ermöglicht über serialize() und GraphRAG.deserialize() speicherbare GraphRAG-Snapshots.

Highlights

Durable execution for Agents API (no deploy required)

Stored agents created via the Agents API can now run with durable: true, enabling durable execution (with configurable loop settings) without shipping new code, and inheriting cache/pubsub from your server for multi-replica durability.

Cloudflare Sandbox provider for remote workspaces

The new @mastra/cloudflare-sandbox provider runs commands and file operations via a deployed Sandbox Bridge Worker, adding a new deployment/runtime option for Mastra workspaces.

MCP protocol upgrades: stateless 2026-07-28 + multi-round elicitation

@mastra/mcp adds opt-in support for the stateless 2026-07-28 protocol revision (server + client) plus updated elicitation support using the spec’s multi round-trip mechanism, enabling more modern MCP interoperability without breaking legacy connections.

Sandbox checkpoints (Local + Platform/Railway capability signaling)

Sandboxes now advertise supportsCheckpoints, and LocalSandbox gains filesystem-backed checkpoints (checkpointName/seedCheckpointName) so sessions can boot from and persist real snapshots—unlocking faster warm-start patterns (also supported in Platform and Railway sandboxes).

RAG: persistable GraphRAG snapshots

@mastra/rag adds serialize() and GraphRAG.deserialize() so knowledge graphs can be saved/restored instead of rebuilt on every start, dramatically reducing startup cost for large corpora. …

Originalquelle(öffnet in neuem Tab)Problem melden

Mastra

Mastra 1.59.0: TokenCostControl, listActiveThreadRuns() und indexierte Schwärzung

Mastra 1.59.0 benennt CostGuardProcessor in TokenCostControl mit erweiterten Budgetoptionen um, ergänzt listActiveThreadRuns() zur Abfrage laufender Runs, behebt fehlende Traces bei externen Parents in Studio, bringt redactionStyle: 'indexed' für SensitiveDataFilter und eine Fortsetzung beim Memory Recall für übergroße Nachrichtenteile.

Highlights

TokenCostControl (renamed from CostGuard) with richer budgeting

CostGuardProcessor is now TokenCostControl (id: 'token-cost-control') with better diagnostics/reliability and new budgeting options like warnAtPercent, per-request maxCost functions, new cost scopes (user/organization/session), and optional per-model/provider breakdowns.

Active run introspection for agents/controllers (core, server, client-js)

New Agent.listActiveThreadRuns() / AgentController.listActiveThreadRuns() plus corresponding Server + JS client APIs let you cheaply list in-flight runs from in-memory tracking—ideal for polling activity indicators without creating sessions.

Observability fixes: external-parent traces now show up as trace roots in Studio

Tracing bridges (OTel + Datadog) now mark whether a span’s parent is external vs Mastra, fixing missing traces when runs start under an external parent so they correctly appear as trace roots in Mastra Studio.

Safer/more useful redaction with indexed tokens

SensitiveDataFilter gains redactionStyle: 'indexed', producing stable per-value tokens (e.g. [APIKEY_1]) instead of collapsing all sensitive values to [REDACTED], improving debugging while preserving secrecy.

Memory recall continuation for oversized message parts …

Originalquelle(öffnet in neuem Tab)Problem melden

Mastra

Mastra 1.58.0: Agent-Schedules, Oracle-Storage, QuickJS-Transport (Breaking Changes)

Mastra 1.58.0 bringt dateibasierte Agent-Schedules, den Storage-Provider @mastra/oracledb, den QuickJS-Transport @mastra/quickjs für Code Mode, eine Workflow-Builder-API für dynamische Workflows und benutzerdefinierte createRoute()-API-Routen, enthält laut Überschrift aber auch Breaking Changes.

Highlights

File-based Agent Schedules

File-based agents can now declare recurring tasks via a schedules/ directory (TS or Markdown) that syncs to schedule storage at startup, eliminating runtime registration code and making schedule IDs stable across builds.

New Storage Provider: @mastra/oracledb

Added @mastra/oracledb with OracleStore (composite storage across Mastra domains) and OracleVector (Oracle 23ai+ VECTOR columns with metadata filtering), enabling Oracle Database-backed deployments.

QuickJS In-Process Code Mode Transport (@mastra/quickjs)

New @mastra/quickjs transport runs model-authored programs in an in-process QuickJS WASM runtime (no native addon, no --no-node-snapshot), enabling Code Mode on more serverless hosts without a full sandbox.

Dynamic Workflows: Workflow Builder API + Code SDK Management

Dynamic workflows gain a reusable Workflow Builder authoring API (createWorkflowBuilderAgent) plus Mastra Code SDK support for discovery-backed creation, persistence, execution, and deletion of workflows.

Custom createRoute() API Routes Across Server + Adapters

createRoute() routes can now be registered via server.apiRoutes with native validation/auth/streaming/OpenAPI support on @mastra/server, and are supported in server adapters (Hono/Express/Fastify/Koa) for consistent typed routing.

Breaking Changes …

Originalquelle(öffnet in neuem Tab)Problem melden

Mastra

Mastra 1.57.0: processToolResult-Hook, transiente Signals, @mastra/deepeval

Mastra 1.57.0 ergänzt den Hook processToolResult zur Prüfung von Tool-Ergebnissen, transiente Signals ohne Persistenz, den Observability-Exporter @mastra/deepeval, Tool-Definitionen in Traces samt $ai_tools bei PostHog und schnellere Sandbox-Exec auf der Mastra Platform.

Highlights

Tool Result Guardrails via processToolResult

A new processToolResult processor lifecycle hook runs after each tool execution and before results enter message history, enabling prompt-injection/sensitive-data scanning, transformation, or aborting the run before the LLM sees tool output.

Transient Agent Signals (Per-turn Context Without Persistence)

Signals now support transient: true end-to-end (@mastra/core, @mastra/server, @mastra/memory, and typed support in @mastra/client-js) so you can deliver “reminder” context to the current model call without retaining it in stored conversation/observational memory.

New Observability Exporter: @mastra/deepeval

Introduces @mastra/deepeval, an exporter that sends Mastra traces to Confident AI (DeepEval) for evaluation and monitoring, mapping Mastra spans into Confident’s agent/LLM/tool/retriever/custom types with tokens, tool calls, and metrics.

Better Tooling Visibility in Traces + PostHog LLM Analytics

Model generations now capture full tool definitions (name/description/JSON schema) as a tools attribute on MODEL_GENERATION spans, and @mastra/posthog forwards these as $ai_tools so analytics can show exactly which tool schemas each generation ran with.

Much Faster Mastra Platform Sandbox Exec (Private Network Direct Dial) …

Originalquelle(öffnet in neuem Tab)Problem melden

Mastra

Mastra 1.55.0: Code Mode ohne Sandbox, @mastra/isolated-vm, webSearchTool

Mastra 1.55.0 ermöglicht Code Mode ohne Workspace-Sandbox, führt @mastra/isolated-vm für V8-isolierte Ausführung ein, bringt das Web-Search-Tool webSearchTool, die Option autoPublish für Stored-Agent-Entwürfe und eine neue Factory-Channel-Identity-Domain.

Highlights

In-process Code Mode execution (no workspace sandbox required)

Code Mode transports can now declare requiresSandbox: false, letting createCodeMode() run without a workspace sandbox for in-process execution boundaries. This enables secure in-process runtimes like V8 isolates and exports sanitizeToolId so transports can share consistent external_* naming.

New @mastra/isolated-vm package for V8-isolated Code Mode

Introduces @mastra/isolated-vm with IsolatedVmCodeModeTransport, running model-authored programs inside an in-process V8 isolate with no filesystem/network/process access (only bridged external_* tools). Note: requires isolated-vm native addon and Node 20+ hosts must start with --no-node-snapshot.

Built-in provider-native Web Search tool

@mastra/core adds webSearchTool, a first-party web search tool that resolves to provider-native search when supported by the configured model/provider, simplifying “current info” agent setups.

Stored agent drafts via autoPublish (Server + JS SDK)

Both @mastra/server and @mastra/client-js add autoPublish to stored agent creation so you can create an initial unpublished draft for review before publishing (existing calls still publish immediately by default).

New Factory channel identity domain + channels integration slot …

Originalquelle(öffnet in neuem Tab)Problem melden

Mastra

Mastra 1.54.0: Chat-Channels für AgentController und smoothStream()

Mastra 1.54.0 bringt Chat-Channels für AgentController (z. B. Slack, Discord, Telegram), MongoDB-Vector-Store-Erweiterungen mit eigenen Collections und Hybrid-Retrieval, exakte Metadatenfilter für Memory-Abfragen, smoothStream() für gleichmäßigeres Streaming und schnellere PlatformSandbox-Exec.

Highlights

AgentController Chat Channels (Slack/Discord/Telegram, etc.)

AgentController can now run durable agent sessions inside chat threads via Chat SDK adapters, with native streaming output, tool approval cards, typing indicators, and controller-owned webhook routes at /api/agent-controllers/<CONTROLLER_ID>/channels/<PLATFORM>/webhook.

MongoDB Vector Store: Bring-Your-Own Collections + Hybrid (Vector + Full-text) Retrieval

MongoDBVector can now index existing operational collections (with safe, read-only-by-default semantics), return full source documents via metadataMode: 'document', and add full-text + hybrid retrieval via createSearchIndex, textQuery, and hybridQuery (Atlas Search / MongoDB 8.0+).

Exact Metadata Filtering Across Memory APIs and Storage Providers

Message history queries (memory.recall) now support exact-match metadata filtering with AND semantics, implemented across Memory APIs and supported backends (e.g. pg, mysql, mongodb, redis, clickhouse, cloudflare, dynamodb, spanner, etc.).

Smoother Streaming for Agents and AI SDK Routes

New smoothStream() plus experimental stream transforms buffer text/reasoning deltas into consistent chunks, and the AI SDK now supports the same smoothing via handleChatStream(), chatRoute(), and toAISdkStream().

Faster PlatformSandbox Exec via Direct WebSocket Data Plane …

Originalquelle(öffnet in neuem Tab)Problem melden

Mastra

Mastra 1.53.0: Schreibgeschützte Sandboxes, resolveThreadId (Breaking Changes)

Mastra 1.53.0 ergänzt schreibgeschützte lokale Sandboxes und Dateisysteme, ChannelConfig.resolveThreadId für eigene Thread-IDs, entfernt die automatische Injektion der Reaction-Tools in Channels, bringt autoPublish bei Stored-Agent-Updates und Zuverlässigkeitsverbesserungen bei Factory und Stores, enthält laut Überschrift aber auch Breaking Changes.

Highlights

Read-only local sandbox & filesystem support

New readOnly options on LocalFilesystem and NativeSandboxConfig let you run local sandboxes with a read-only working directory on macOS (Seatbelt) and Linux (Bubblewrap) for safer execution.

Custom thread ID resolution for channels

ChannelConfig.resolveThreadId lets hosts control the internal Mastra thread id for newly created channel threads (after resolveResourceId), enabling clean alignment with external IDs like session IDs.

Explicit channel reaction tools (less implicit agent tool injection)

Channel reaction tools (add_reaction, remove_reaction) are no longer auto-injected into channel-bearing agents; if you want reactions, you now opt in by adding channels.getTools().

Stored agent versioning: auto-publish on update

@mastra/client-js adds autoPublish to stored agent updates so you can immediately activate a newly created agent version as part of the update call.

Reliability & concurrency improvements across Factory + stores

Factory work-item processing now uses atomic claims/idempotent replay (replacing distributed advisory locks), and @mastra/libsql fixes concurrent-write data loss/corruption in observational memory by serializing updates; composite-store “disabled domain” observability/score endpoints now return clear 501 responses instead of 500s.

Breaking Changes …

Originalquelle(öffnet in neuem Tab)Problem melden

Mastra

Mastra 1.52.0: @mastra/deployer-sandbox und neues Paket @mastra/factory

Mastra 1.52.0 führt mit @mastra/deployer-sandbox das Deployment eines Mastra-Servers in Sandboxes samt One-Step-mastra build ein, erweitert Sandboxes um Networking, Bulk-Uploads und Cloning, ergänzt Factory-Storage-Domains mit Pg- und LibSQL-Backends und bringt das neue Paket @mastra/factory.

Highlights

Sandbox Deployments + One-Step mastra build (New @mastra/deployer-sandbox)

You can now deploy a full Mastra server (including Studio) into networking-capable workspace sandboxes (Vercel/E2B/Daytona) and get a live URL in seconds via the new @mastra/deployer-sandbox. Push-style deployers can opt into deployOnBuild, making mastra build bundle and deploy in one step (SandboxDeployer already opts in).

Workspace Sandbox Networking, Bulk File Uploads, and Cloning (Fleet-Ready Sandboxes)

WorkspaceSandbox gained optional networking.getPortUrl(port) plus writeFiles() for bulk uploads, enabling preview URLs and faster sandbox provisioning; multiple providers now implement this (notably Vercel/E2B/Daytona). Sandboxes also add clone() to create unstarted sibling sandboxes from a template config—ideal for per-project or per-tenant sandbox fleets.

Factory Storage Domains + New Pg/LibSQL “FactoryStorage” Backends

A new FactoryStorage contract and FactoryStorageDomain enable lifecycle-managed, per-domain application storage initialization/readiness/error reporting, rather than a single monolithic store. New backends PgFactoryStorage and LibSQLFactoryStorage persist Mastra agent state plus custom app domains through one shared Postgres pool/LibSQL connection.

New @mastra/factory Package (Software Factory Extraction + Reusable Route Surfaces) …

Originalquelle(öffnet in neuem Tab)Problem melden

Mastra

Mastra 1.51.0: Wiederherstellung verwaister Durable-Agent-Runs, Platform-Workspace

Mastra 1.51.0 ermöglicht die Wiederherstellung verwaister Durable-Agent-Runs nach einem Neustart, erlaubt parallele AgentController-Sessions pro Scope, ergänzt mit @mastra/platform-workspace@0.1.0 Workspace- und Sandbox-Provider für die Mastra Platform und macht das Mastra Code SDK öffentlich und erweiterbarer.

Highlights

Durable Agent Crash Recovery (server + client + boot-time)

Durable agents can now discover and recover orphaned RUNNING runs after a restart via DurableAgent.listActiveRuns(), recover(), and recoverActiveRuns(), plus Mastra.recoverAllDurableAgents() and an opt-in MastraConfig.recovery: { durableAgents: 'auto' } for boot-time recovery. There’s also a standard HTTP/client surface (POST /agents/:agentId/recover + client-js agent.recover({ runId })) to reattach and stream the remaining output from dashboards or admin tools.

Scoped AgentController Sessions (parallel sessions per resource)

AgentController sessions now support a scope/sessionScope, allowing multiple independent sessions to run in parallel over the same resourceId (e.g., one per git worktree) without sharing run loops, threads, or state. The scope is also exposed in request context for integrations, and controller APIs now report run activity (running + per-thread state) for better UIs.

New Workspace + Sandbox Providers for Mastra Platform

A new package, @mastra/platform-workspace@0.1.0, adds PlatformFilesystem and PlatformSandbox providers that connect agents to Mastra Platform sandboxes and bucket-backed filesystems via the workspace-proxy API. This enables running workspace-dependent tooling against Platform-managed infrastructure with env-var or config-based setup.

Mastra Code SDK Now Public + More Extensible Integrations …

Originalquelle(öffnet in neuem Tab)Problem melden

Mastra

Mastra 1.50.0: LiveKit-Sprachagenten und einheitliche Schedules-API

Mastra 1.50.0 bringt mit @mastra/livekit Realtime-Sprachagenten über LiveKit, dateisystembasierte Registrierung von Mastra-Primitives (inklusive automatischer Mastra-Instanz ohne index.ts), eine vereinheitlichte Schedules-API unter mastra.schedules und /api/schedules, die die Heartbeats ersetzt, sowie eine Workspace-Provider-Registry im MastraEditor.

Highlights

LiveKit Realtime Voice Agents (@mastra/livekit)

New @mastra/livekit package turns Mastra agents (or per-turn workflows) into realtime voice agents with LiveKit handling the full audio loop (WebRTC, VAD, STT/TTS, turn detection, barge-in) while Mastra drives replies, tools, and memory—plus built-in tracing and a Studio “voice mode”.

File-System Routed Mastra Primitives + Zero-Boilerplate Startup

Mastra can now auto-discover and register storage.ts, observability.ts, server.ts, studio.ts, workflows/*.ts, and agent processors from the src/mastra directory during mastra dev/mastra build; @mastra/deployer can also auto-construct a Mastra instance when src/mastra/index.ts is missing, enabling fully file-based projects with no new Mastra(...) entry file.

Unified Schedules API (Heartbeats → Schedules)

Agent “heartbeats” and workflow schedules are unified under mastra.schedules and /api/schedules (client + server), with deprecated/removed heartbeat routes and methods; persisted legacy rows are normalized (target.type: 'heartbeat' → 'agent') so existing schedules keep firing across supported stores.

Workspace Provider Registry in MastraEditor …

Originalquelle(öffnet in neuem Tab)Problem melden

Mastra

Mastra 1.49.0: Aufbewahrungsrichtlinien, Mandantentrennung und scoreTrace()

Mastra 1.49.0 führt optionale Aufbewahrungsrichtlinien mit storage.prune() für Core sowie Postgres, libSQL und MongoDB ein, ergänzt optionale Mandantentrennung (organizationId/projectId) für Datasets, Experiments, Scores und Scorer und bietet mit scoreTrace() und scoreTraceBatch() das nachträgliche Bewerten gespeicherter Traces samt Score-Herkunft.

Highlights

Opt-in Storage Retention + storage.prune() (Core + Postgres/libSQL/MongoDB)

Mastra now supports per-domain/per-table retention policies (retention: { ...maxAge }) and a safe, batched, resumable storage.prune() to delete aged data across major “growth” tables (memory, observability spans, workflow snapshots, background tasks, experiments, schedules, etc.). Postgres/libSQL/MongoDB adapters add first-class pruning implementations (including partition/chunk drops for v-next observability in Postgres).

Multi-tenant Isolation for Datasets, Experiments, Scores, and Scorers

End-to-end optional organizationId/projectId scoping was added across dataset and experiment reads/deletes (including storage-layer predicates to prevent cross-tenant access), plus tenancy metadata for persisted scores and stored scorer definitions with scoped list APIs. Server routes and client-js methods also accept tenancy parameters so HTTP and SDK usage can enforce the same isolation.

Persisted Trace Scoring APIs (scoreTrace, scoreTraceBatch) + Score Provenance

New scoreTrace() and scoreTraceBatch() let you score already-stored traces without re-running agents, using an existing scorer instance and bounded concurrency for batches. Persisted scores now optionally include batchId, datasetId, and datasetItemId so baseline scoring passes can be grouped and joined back to dataset items across supported stores. …

Originalquelle(öffnet in neuem Tab)Problem melden

Mastra

Mastra 1.48.0

Mastra 1.48.0 bringt unter anderem Heartbeats für per Cron geplante Agenten, dateibasierte Agenten und Subagenten, agent.listSuspendedRuns() zur Wiederherstellung ausstehender Freigaben sowie Erweiterungen der Observational Memory.

Highlights

Heartbeats (scheduled agents on cron)

New mastra.heartbeats APIs let you schedule agents to run on a recurring cron, either delivering into an existing thread as a normal signal or running threadless; schedules persist across restarts and are available in @mastra/core, @mastra/server (/api/heartbeats), and @mastra/client-js.

File-based agents & subagents (FS convention + bundler auto-registration)

You can now define agents by dropping directories under src/mastra/agents/<name>/ (with config.ts/instructions.md, tools/, skills/, optional memory.ts and workspace/ seeding), and the deployer/build pipeline will bundle + register them automatically; supports one-level subagents/<childId>/ that become delegatable tools.

Human-in-the-loop reliability: storage-backed suspended run discovery

New agent.listSuspendedRuns() reads pending approvals/suspends from storage (not memory), enabling approval UIs to recover after refresh/restart and across multiple server instances; sendToolApproval() now falls back to this discovery when no in-memory active run is found.

Observational Memory upgrades: Extractor API + OM-managed working memory …

Originalquelle(öffnet in neuem Tab)Problem melden

Mastra

Mastra 1.47.0

Mastra 1.47.0 unterstützt AI SDK v7 (LanguageModelV4), bringt DurableAgent-Parität mit Agent samt besserem Abbruch und Tracing und führt gatewaybasierte Modellerkennung über den neuen GatewayManager ein.

Highlights

AI SDK v7 (LanguageModelV4) support + upgraded model router

Agents can now accept AI SDK v7 provider models directly (LanguageModelV4), while still supporting v4/v5/v6; Mastra auto-detects model spec versions so you can mix providers across agents. The model router was upgraded to resolve V4 models natively, and modelSettings adds a new reasoning effort control for V4-capable providers.

DurableAgent API parity (stream/resume/generate) + better cancellation & tracing

DurableAgent now mirrors Agent across stream/resume/generate, including full AgentExecutionOptions support (model settings, stop conditions, transforms, per-call instructions/system, tracing options, actor, etc.). New abort surfaces (abortSignal, result.abort(), onAbort) and forwarded abort to delegated subagents improve control, and durable runs now emit richer AGENT_RUN span metadata for observability.

Gateway-first model discovery & auth via new GatewayManager (Harness hooks removed)

Harness now sources model catalog, auth status, mode agents, observational-memory models, and subagents entirely from registered gateways (no fallback to resolveModel, customModelCatalogProvider, or modelAuthChecker, which were removed). Shared gateway operations are centralized in a new GatewayManager exported from @mastra/core, and gateways can implement handlesModel to claim bare provider model IDs for auth resolution. …

Originalquelle(öffnet in neuem Tab)Problem melden

Mastra

Mastra 1.46.0

Mastra 1.46.0 stellt Harness auf eine Multi-Session-Architektur um, ermöglicht die Steuerung von Harness-Sessions per HTTP und über den JS-Client und führt verteiltes Leasing für Signale sowie deterministische Agent-Experimente ein.

Highlights

Multi-session Harness architecture (Session-first APIs)

Harness is now a pure factory/shared-resource owner: create isolated sessions via harness.createSession() (get-or-create by resourceId), with run control, state, event bus, model/mode switching, permissions, OM, subagent settings, and thread lifecycle all moved onto Session domains (e.g. session.sendMessage(), session.thread.*, session.model.switch(), session.subscribe()), enabling safe concurrent multi-user/multi-thread hosting.

Drive Harness sessions over HTTP (and from the JS client)

Registered harnesses on Mastra can now be operated via new harness-scoped server routes (send/steer/abort/approve tool calls, manage threads, read state, and subscribe via SSE), and @mastra/client-js adds a first-class harness resource (client.getHarness(id).session(resourceId)) to control sessions remotely.

Cross-process signal delivery with distributed leasing + new accepted contract

Signal/message APIs now return an accepted promise resolving to a discriminated routing decision (wake/deliver/persist/discard) with authoritative runId when applicable, and introduce a LeaseProvider abstraction (in-memory and Redis Streams implementations) to ensure only one process owns/wakes a thread run in multi-instance/serverless deployments.

Deterministic agent experiments with item-level tool mocks + multi-tenant datasets/experiments …

Originalquelle(öffnet in neuem Tab)Problem melden

Mastra

Mastra 1.45.0

Mastra 1.45.0 beschleunigt das Fortsetzen langer Threads, macht die Signalverarbeitung von Agenten zuverlässiger, ergänzt Systemhinweise zu automatischen State-Signalen, bringt UI-Bausteine für Studio-Panels und behebt einen WorkOS-OAuth-Login-Fehler.

Highlights

Faster long-thread resume via improved state signal restoration

@mastra/core now restores state signals without scanning every message, making it significantly cheaper and faster to resume very long threads.

More reliable signal turn handling in agents

Fixes to agent signal drains ensure pending signals are recorded through the canonical signal transcript path and response message IDs rotate consistently—preventing follow-up signal turns from attaching to the wrong assistant response.

Clearer system guidance around automatic state signals

New system guidance clarifies that browser and task-list state signals are automatic context updates rather than user instructions, reducing prompt confusion and accidental instruction-following.

Redesigned Studio panel & code-surface UI primitives in @mastra/playground-ui

Adds reusable UI support for revamped Studio panels, including true resizable panels with smooth open/close, mobile drawer behavior via PanelDrawer, a new useIsMobile hook, and CodeBlock.actions for header controls; plus new popover collision-avoidance alignment controls.

WorkOS OAuth login fix (PKCE verifier cookie missing)

@mastra/auth-workos fixes an OAuth/SSO login failure affecting both single-auth and dual-auth setups, restoring reliable WorkOS sign-in flows.

Breaking Changes

  • None called out in this changelog.

Changelog …

Originalquelle(öffnet in neuem Tab)Problem melden