Skip to content

November 25, 2026

Latest

Choose a tag to compare

@PaulieScanlon PaulieScanlon released this 25 Nov 10:00
· 24 commits to main since this release

Highlights

Durable, crash-safe dataset experiments

Experiments can now run as durable evented workflows (durable: true on startExperimentAsync() and the server/client trigger APIs), so redeploys or worker crashes won’t leave runs stuck at running—another worker can pick up unacked items and continue.

Knowledge importers + importer-runner infrastructure (experimental)

Mastra adds an end-to-end Knowledge importer contract (KnowledgeImporter), Knowledge-managed importer execution (knowledge.importers.run()), and importer bookkeeping persisted in supported stores (in-memory, LibSQL, Postgres) to safely sync external sources into Knowledge with batching, leases, replay protection, and settle/repair semantics.

Native durable Agent execution engine selection (default/evented)

Agents can now execute natively on the durable engines via durable.executionEngine (agent-level or Mastra.durable defaults) while keeping existing streaming/model-output APIs; note that the earlier prerelease value executionEngine: 'durable' is now executionEngine: 'default'.

Channels-first chat integrations: createChannelTools() + Slack toolset

Core introduces createChannelTools() for reading/posting within the run’s active chat thread across supported channel adapters, and @mastra/slack adds createSlackTools() for Slack-specific capabilities (search, attachment download, user/channel lookup) with the same access scoping.

Knowledge activity + host-run principals/author support

Agents (and hosts) can query what changed in Knowledge over a date range via the new knowledge_activity tool, and hosts can run Knowledge tools outside agent runs using fixed principals plus recorded author for safer MCP/external-agent scenarios.

Breaking Changes

  • get_process_output no longer supports wait: true; use waitSeconds (1–300) instead (the old flag is ignored).
  • @mastra/connect (prerelease-only breaking): replaces the older events exports (EventsClient, connectEvents(), etc.) with the new ConnectEvents iterator API.
  • @mastra/mcp-apps-components: MCP boundary field rename projectId → project.
  • @mastra/playground-ui traces components have major breaking API changes (slot-based ThreadTrace, data-in/no-fetch TracesExplorer, navigation callbacks replacing href/Link props).

Changelog

@mastra/core@1.86.0

Minor Changes

  • Added an optional recommended flag to ask_user options. The flag reaches the host in the suspend payload, so a UI can highlight the choice the agent suggests. It is a display hint only: nothing is selected until the user answers. (#31146)

  • Added durable experiments. Pass durable: true to startExperimentAsync() and the experiment runs as an evented workflow with one step per item, so a process that stops or redeploys no longer leaves it stuck at running. With workers on a pubsub that redelivers events, such as Redis Streams, another worker picks up an item that was cut off, and each item still records one result. (#31204)

  • Added a warning for evented workflows and evented agents that run on a setup that can't support several processes. (#31233)

  • Added an interrupted thread run status. Thread subscribers no longer see a durable agent's run as failed when mastra.shutdown() stops it mid-run, for example during a rolling restart, and recovery then finishes the same run. subscribeToThread({ withRunStatus: true }) now reports that run as { status: "interrupted" }, which is not final, so the recovered output and its final status follow on the same subscription. If nothing recovers the run, for example because recovery is off, interrupted is the last status. A real failure still reports failed, and so does a regular agent's run that shutdown stops, because nothing recovers it. Fixes #30480. (#31113)

  • Added getWorkingMemoryInstruction() to MastraMemory, so a memory implementation can set the working memory instruction an agent receives. The WorkingMemory input processor now asks the memory instance for the instruction. Return undefined to keep the built-in instruction, or an empty string to send none. See #29752. (#30316)

  • Agents can now ask what changed in Knowledge over a period. The new knowledge_activity read tool lists page and note changes between since and until, newest first, with who made each change. It can be narrowed to one page or scope with from. Note changes show the note's current text, or that it was removed. Like every other read tool, it only shows changes to pages and notes the run can read. (#31200)

    Also in: @mastra/libsql@1.32.0, @mastra/pg@1.38.0

  • Added principals and author options to knowledge.createTools(), and knowledge.getPinnedContext({ principals }). A host can now run the Knowledge tools and read pinned pages outside an agent run, for example from an MCP server acting for an external agent. Every call reads and writes under those fixed principals, following the same scope rules as an agent, and writes are recorded under author. Principals must match a declared scope type and must come from the host, never from the request. (#30996)

  • Added the Knowledge importer contract (experimental), exported from @mastra/core/knowledge. It has the types, the manifest and the host interface, so hosts and importer authors can build against them. (#31101)

  • Knowledge can now run importers against its own storage (experimental). Pass importer instances as importers: [...] to new Knowledge(), then call knowledge.importers.run(bindingId). Each instance places one source at a target (<scope>#<path>); targets of different instances may overlap or nest. (#31101)

    Also in: @mastra/pg@1.38.0

  • Added importer bookkeeping storage to Knowledge stores (experimental). KnowledgeStorage.importers keeps importer bindings, the source-to-page node map (with an unsettled flag and listNodes({ unsettled: true }), and each node's links indexed by target for listLinkingNodes()), cursor state, runs, flush receipts, per-run changes and a writer guard in the same database and namespace as the pages. On a knowledge.transaction() view, it writes in the same transaction as the page writes. In-memory, PostgreSQL and LibSQL stores provide it. Create the tables with await knowledge.importers.init(), or from KnowledgePG.getImportersExportDDL() / KnowledgeLibSQL.getImportersExportDDL() when storage init is disabled; the exported statements include the writer-guard row, so a store provisioned from them can run imports. retireBinding(id) deletes a binding with its nodes, cursor state, runs, flush receipts and changes, and leaves its pages alone. (#31101)

    Also in: @mastra/libsql@1.32.0, @mastra/pg@1.38.0

  • Knowledge.removePage takes an optional expected: { id, version }, the page as you read it, the same as upsertPage. With it, the call deletes the page at scope#path only if it is still that page at that version. If someone edited or removed it, or a new page replaced it at that path, before or during the call, it throws KnowledgeConflictError and deletes nothing. A sync that checks a page and deletes it later no longer deletes someone else's write. (#31101)

  • Added an optional deadline to Knowledge storage transactions. knowledge.storage.transaction(operation, { deadlineAt }) rolls back and throws KnowledgeTransactionDeadlineError once the deadline passes. On Postgres (enforcesTransactionDeadline: true), the wait for a connection, every statement and every lock wait count against the deadline, and no new work starts once it has passed. BEGIN, ROLLBACK and a COMMIT already sent aren't bounded, so leave a margin. Adapters without the capability ignore the option. (#31101)

    Also in: @mastra/pg@1.38.0

  • Knowledge.upsertPage takes an optional expected: { id, version }, the page as you read it. With it, the call finds the page at scope#path, refuses unless it is that page at that version, and then updates that page by id, only while it is still at that version. If the page was edited, moved, removed or replaced by a new page at the same path since, the call throws KnowledgeConflictError and writes nothing: no page, parent page or scope is created. The path is checked when the page is looked up; if a parent page is moved between that lookup and the write, the write follows the page to its new place. A sync that reads a page and writes it later no longer replaces an edit someone made in between. (#31099)

  • Added abortReason: 'memory-failure' to agent_end events. A run stopped because the observational-memory observer or reflector failed now carries it, so you can tell it apart from a person stopping the run. The reason stays 'aborted', so existing handling is unchanged. The failure itself arrives in the error event just before. (#31179)

  • Added native Agent execution on the default or evented engine while preserving model-output APIs. Configure durable.executionEngine on an agent or set Mastra.durable.executionEngine for registered agents: (#31008)

  • Added optional getObservationalMemoryConfig() and getObservationalMemoryRecords() methods to MastraMemory. Memory implementations that run Observational Memory outside the agent (such as hosted memory) can override them so the memory status, config and observational memory routes report their settings and records. Both return undefined by default, so existing memory implementations are unaffected. (#30986)

    Also in: @mastra/platform@0.2.0, @mastra/server@1.86.0

  • Added createChannelTools() to @mastra/core/channels. It gives any agent with channels tools that read and post messages on its chat platforms: fetchMessages, fetchChannelMessages, fetchThread, listThreads, getThreadParticipants, getChannelInfo, postMessage and postChannelMessage, plus sendDirectMessage when you allow it. Each call uses the channel thread of the run that makes it. By default the tools stay in that conversation's own channel. Nothing is added automatically, so spread the tools into tools: (#31220)

  • Added execution-engine configuration with Agent.durable.executionEngine and Mastra.durable defaults. Explicit agent settings take precedence over registered defaults, the engine selection locks at registration or first execution, and editor forks preserve the selected policy without changing a wrapped agent's engine. (#30393)

  • Workflows can now set pruneSnapshot together with the experimental storageVersion: 2 option. Before, creating such a workflow threw. On version 2 the hook runs once, when the run finishes (a redelivered finish event doesn't prune the stored run again; concurrent duplicate deliveries can each invoke the hook with the same unpruned input, so keep it side-effect-free), and only for a workflow that sets storageVersion: 2 itself: a nested run that inherits version 2 from its parent keeps its step results unpruned. The hook receives every step result. The default engine writes back only the results it changes; the evented engine replaces the stored run with the pruned one. Suspended runs aren't pruned, because their later steps read the earlier results from storage. The run's result keeps the unpruned step results. Replace step results rather than removing them: on the default engine, a step result the hook leaves out stays stored. (#30822)

  • Added an optional flag to mastra.getWorkspaceById(). With { optional: true } it returns undefined for an unknown ID instead of logging and throwing an error, so you can check whether a workspace exists before creating it. (#31071)

Patch Changes

  • Update provider registry and model documentation with latest models and providers (d250e06)

  • Fixed agents getting stuck waiting on a background command that never exits. (#30895)

  • Fixed skill search failing when two skills share a name. (#31069)

  • Improved JSDoc on commonly used @mastra/core types so editors and coding agents reading the published .d.ts files get accurate answers: Agent.generate() overloads, FullOutput tool calls and results, ToolCallPayload / ToolResultPayload, accepted model config forms (MastraModelConfig, BaseModelConfig), AgentConfig, ToolExecuteFunction arguments, and per-call execution options such as maxSteps and stopWhen. (#31278)

  • Added MessageList.markForResave(message), which marks a message already in the list so the next save writes it again through the normal whole-message save. (#31114)

  • Fixed durable and evented agents ignoring later changes to the agent they wrap. (#31014)

  • Stopped publishing JavaScript source maps (.js.map and .cjs.map files) and their //# sourceMappingURL= comments. (#31176)

    Also in: @mastra/acp@0.4.5, @mastra/agent-browser@0.7.0, @mastra/agent-builder@1.2.3, @mastra/agentcore@0.5.4, @mastra/agentfs@0.2.4, @mastra/ai-sdk@1.12.1, @mastra/apple-container@0.5.3, @mastra/archil@0.3.3, @mastra/arize@1.4.2, @mastra/arthur@0.5.2, @mastra/astra@1.1.4, @mastra/auth@1.2.1, @mastra/auth-auth0@1.3.1, @mastra/auth-better-auth@1.1.13, @mastra/auth-clerk@1.4.1, @mastra/auth-cloud@1.2.10, @mastra/auth-firebase@1.1.6, @mastra/auth-google@0.1.8, @mastra/auth-neon@0.3.7, @mastra/auth-okta@0.3.1, @mastra/auth-studio@1.4.2, @mastra/auth-supabase@1.2.2, @mastra/auth-workos@1.7.0, @mastra/azure@0.3.4, @mastra/azure-ai-search@0.1.3, @mastra/blaxel@0.10.3, @mastra/braintrust@1.3.30, @mastra/brightdata@0.3.3, @mastra/browser-firecrawl@0.4.0, @mastra/browser-viewer@0.3.1, @mastra/chroma@1.1.6, @mastra/claude@0.3.5, @mastra/clickhouse@1.30.2, @mastra/client-js@1.62.0, @mastra/cloudflare@1.8.2, @mastra/cloudflare-d1@1.5.2, @mastra/cloudflare-sandbox@0.5.5, @mastra/code-sdk@1.21.0, @mastra/codemod@1.1.9, @mastra/connect@1.5.0, @mastra/convex@1.9.2, @mastra/couchbase@1.1.6, @mastra/cursor@0.3.5, @mastra/datadog@1.5.0, @mastra/daytona@0.11.7, @mastra/deepeval@0.1.27, @mastra/deployer@1.86.0, @mastra/deployer-cloud@1.86.0, @mastra/deployer-cloudflare@1.3.0, @mastra/deployer-netlify@1.2.45, @mastra/deployer-sandbox@0.3.30, @mastra/deployer-vercel@1.2.45, @mastra/discord@1.3.5, @mastra/docker@0.14.1, @mastra/dsql@1.5.9, @mastra/duckdb@1.19.2, @mastra/dynamodb@1.5.3, @mastra/e2b@0.18.1, @mastra/e2b-desktop@0.1.15, @mastra/editor@0.17.3, @mastra/elasticsearch@1.4.7, @mastra/elysia@0.1.26, @mastra/evals@1.10.12, @mastra/express@1.5.30, @mastra/factory@0.31.0, @mastra/fastembed@1.4.0, @mastra/fastify@1.5.30, @mastra/files-sdk@0.3.4, @mastra/gcs@0.4.1, @mastra/github-signals@0.5.4, @mastra/google-cloud-pubsub@1.1.9, @mastra/google-drive@0.2.5, @mastra/hono@1.7.28, @mastra/inngest@1.11.5, @mastra/isolated-vm@0.1.5, @mastra/json-render@0.2.0, @mastra/koa@1.7.30, @mastra/laminar@1.3.35, @mastra/lance@1.6.2, @mastra/langfuse@1.7.2, @mastra/langsmith@1.4.6, @mastra/libsql@1.32.0, @mastra/livekit@0.5.4, @mastra/loggers@1.3.12, @mastra/mcp@2.11.0, @mastra/mcp-apps-components@0.3.0, @mastra/mcp-docs-server@1.3.16, @mastra/mcp-registry-registry@1.1.8, @mastra/memory@1.41.3, @mastra/mesa@0.3.4, @mastra/modal@0.7.5, @mastra/mongodb@1.28.0, @mastra/mssql@1.12.1, @mastra/mysql@0.17.2, @mastra/nestjs@0.3.3, @mastra/next@0.2.44, @mastra/observability@1.24.3, @mastra/openai@1.1.5, @mastra/opencode@0.1.45, @mastra/opensearch@1.1.5, @mastra/oracledb@0.5.8, @mastra/otel-bridge@1.6.2, @mastra/otel-exporter@1.6.2, @mastra/parallel@0.1.6, @mastra/perplexity@0.2.3, @mastra/pg@1.38.0, @mastra/pinecone@1.1.5, @mastra/platform@0.2.0, @mastra/platform-workspace@1.14.0, @mastra/posthog@1.4.10, @mastra/qdrant@1.1.7, @mastra/quickjs@0.1.6, @mastra/rag@2.8.2, @mastra/railway@0.10.3, @mastra/react@1.16.0, @mastra/redis@1.4.15, @mastra/redis-streams@0.9.1, @mastra/ring-signals@0.1.1, @mastra/s3@0.7.1, @mastra/s3vectors@1.1.6, @mastra/schema-compat@1.4.1, @mastra/sentry@1.3.2, @mastra/server@1.86.0, @mastra/server-adapters-test-suite@0.3.1, @mastra/slack@1.10.0, @mastra/spanner@1.12.2, @mastra/sprites@0.1.3, @mastra/stagehand@0.4.1, @mastra/tanstack-start@0.2.44, @mastra/tavily@1.1.4, @mastra/teams@0.1.6, @mastra/telegram@0.2.6, @mastra/temporal@0.6.3, @mastra/turbopuffer@1.2.4, @mastra/turso@0.1.24, @mastra/upstash@1.6.3, @mastra/valkey@0.2.11, @mastra/valkey-streams@0.6.4, @mastra/vectorize@1.1.6, @mastra/vercel@1.6.4, @mastra/voice-aws-nova-sonic@0.2.7, @mastra/voice-azure@0.12.4, @mastra/voice-cloudflare@0.13.5, @mastra/voice-deepgram@0.13.5, @mastra/voice-elevenlabs@0.13.4, @mastra/voice-gladia@0.13.4, @mastra/voice-google@0.14.6, @mastra/voice-google-gemini-live@0.14.20, @mastra/voice-inworld@0.4.7, @mastra/voice-mistral@0.1.4, @mastra/voice-modelslab@0.2.4, @mastra/voice-murf@0.13.4, @mastra/voice-openai@0.13.5, @mastra/voice-openai-realtime@0.14.10, @mastra/voice-playai@0.13.4, @mastra/voice-sarvam@1.1.5, @mastra/voice-speechify@0.15.1, @mastra/voice-xai-realtime@0.2.19, @mastra/voyageai@0.4.4, @mastra/weaviate@0.1.5

  • The memory status, memory config, observational memory and buffer-status routes now read Observational Memory from the agent's memory when the memory runs it (for example PlatformMemory). (#30986)

    Also in: @mastra/platform@0.2.0, @mastra/server@1.86.0

  • Fixed durable agent runs hanging when a step runs on a process that never registered the agent. (#31334)

  • Include stepResult.warnings: [] in durable agents' step-finish events when the provider rejects the request before streaming, matching regular agents. (#31357)

  • Fixed slow processing of long streamed words in the PII detector, which could stall output when a response contained a very long unbroken token or a long run of letters with no email address in it. (#31095)

  • Fixed DurableAgent and EventedAgent answering two messages on the same thread at the same time. (#30828)

  • Fixed time travel to a step inside a nested workflow on the evented engine. (#29827)

  • Reduced the memory a Cloudflare Worker or Durable Object uses for @mastra/core when the Worker is minified (for example wrangler deploy --minify). (#31182)

  • Improved maintenance of agent invocations by sharing run ID and completed-output helpers without changing runtime behavior. (#30973)

  • Fixed execute_command (and other workspace tools that cap output by tokens) freezing the process for seconds when a command prints a lot of output. (#31003)

  • Fixed background tasks whose worker crashed being re-run by every server that started, without using a retry. (#31323)

  • Fixed reconnecting to a run on an agent created with new Agent({ durable: { executionEngine } }). (#31228)

    Also in: @mastra/server@1.86.0

  • Fixed live scores from createDurableAgent and createEventedAgent agents. (#31029)

  • Improved prompt conversion for tool-heavy conversations by recovering stored tool inputs in one pass per conversion, while preserving duplicate-ID and legacy-history behavior. (#31289)

  • Allow hosts to attach Knowledge to an Agent after loading it without storing credentials in the agent definition. (#30981)

  • Added stopCause to an agent's finish chunk. (#30550)

  • Fixed a durable agent run losing the user's message when the process died right after the message was saved to memory. (#31115)

  • Fixed background-eligible tools running inline when an evented agent run executes on a dedicated worker (for example an API with MASTRA_WORKERS=false plus worker processes). (#31327)

  • Fixed restarting a workflow whose nested workflow step had started but whose nested run was never saved. (#31032)

  • PlatformMemory now reports hosted Observational Memory settings and reads the current observation record and past generations through its authenticated client, so Studio's memory status and observations views work for agents using PlatformMemory. (#30986)

    Also in: @mastra/platform@0.2.0, @mastra/server@1.86.0

  • Default thread-title generation now asks the model to write titles in the language of the user's messages. (#26847)

  • Keep the provider signature of a stored reasoning block that has no text details. (#28848)

  • Studio's Knowledge graph and explorer now show grants and scope labels from store-supplied declarations (e.g. (#30663)

    Also in: @mastra/server@1.86.0

  • The knowledge_note tool no longer requires scope when adding a note. (#30989)

  • Improved consistency of agent instruction formatting, input signal preparation, and persisted transcript and recovery reads without changing public APIs or execution behavior. (#30947)

  • Refactored internal agent validation and durable execution helpers without changing runtime behavior or public APIs. (#30917)

  • Allow native durable agents to configure journal storageVersion and maxSteps. (#31245)

  • DurableAgent.observe() now accepts closeOnSuspend, so an observer's stream can end when the observed run suspends (for example while waiting for tool approval). (#30836)

  • Fixed Knowledge agents being told to use tools they don't have. (#30909)

  • Added KnowledgeInvalidCursorError, thrown when a Knowledge list call gets a malformed cursor. (#30522)

  • Fixed durable thread streams replaying a queued or steered user message as still "sending" after a reconnect. (#31112)

  • Fixed spans of a resumed durable agent run (createDurableAgent, createEventedAgent) losing their thread id, resource id, resume input and the tracingOptions passed to resume(). (#30957)

  • User messages are stored as written. (#30593)

    Also in: @mastra/memory@1.41.3, @mastra/server@1.86.0

  • Fixed dataset.createExperiment() and dataset.startExperimentAsync() loading every dataset item only to count them. (#31290)

  • Fixed classifyProviderError for two provider wordings. (#31223)

  • Fixed a stored message that gained an Observational Memory marker (data-om-* parts such as the observation end marker or status) being treated as a new message when it was loaded back into the live message list on the next turn. (#31314)

  • Fixed read-only filesystems mounted into a natively isolated LocalSandbox being writable from shell commands. (#25146)

  • Fixed AgentController sessions that kept showing a tool prompt that could no longer be answered. (#30717)

  • Fixed traces of durable agent runs that suspend and resume, or recover after a crash. (#30812)

    Also in: @mastra/inngest@1.11.5, @mastra/server@1.86.0

  • Evented agents on PostgreSQL no longer stall after a suspended tool is resumed. (#30832)

  • Durable agent runs that pause for approval and are then resumed now close their PubSub subscriptions as soon as the run finishes. (#30884)

  • Reduced the size of @mastra/core and of every bundle that includes it by more than 200 KB: the built-in provider registry no longer stores each provider's model list twice. (#31174)

  • Fixed aborting an agent run not cancelling an Observational Memory observation when Observational Memory is listed after another input processor that runs its input step. (#30900)

  • Fixed DurableAgent and EventedAgent method overrides and super calls without changing execution behavior. (#31074)

  • Fixed evented workflows slowing down as more runs are in flight. (#30958)

  • Fixed evented workflow runs that ran steps again after they had already ended. (#31033)

  • Fixed agent signal and message routes accepting a runId for a run that belongs to another user. (#30902)

    Also in: @mastra/server@1.86.0

  • Unified invocation orchestration for plain, durable, and evented agents while preserving their existing streaming and lifecycle APIs. (#30560)

  • Refactored agent version-override composition to share precedence handling between plain calls and durable preparation while retaining their existing merge behavior. (#30998)

  • Restored Agent request-context validation and output completion timing after helper extraction. (#30997)

  • Fixed an evented workflow loop whose body is a single step hanging after the run was restarted, for example by recovery after a crash. (#30915)

  • Fixed evented workflows running the steps after a parallel or branch block twice when a run was restarted while the block was finishing. (#30901)

  • Runs stored with the experimental workflow storageVersion: 2 option now keep less in storage. (#30822)

    Also in: @mastra/libsql@1.32.0, @mastra/pg@1.38.0, @mastra/turso@0.1.24

  • Added traceId and spanId to the result of stream(), resume(), observe(), and recover() on durable agents, so you no longer need to read them from result.output. (#31013)

  • Fixed agent.observe() on durable and evented agents reporting an incomplete conversation when the observer runs in another process or on another agent instance. (#30916)

  • Preserve provider error details, including status and message, when a model throws a structured response or a request is retried after a transient failure. (#30976)

    Also in: @mastra/code-sdk@1.21.0

  • Raised the minimum ws version to 8.23.0, which limits pending automatic pongs and terminates the connection when that limit is exceeded. (#30840)

    Also in: @mastra/deployer@1.86.0, @mastra/hono@1.7.28, @mastra/voice-google-gemini-live@0.14.20, @mastra/voice-inworld@0.4.7, @mastra/voice-openai-realtime@0.14.10, @mastra/voice-xai-realtime@0.2.19

  • Improved @mastra/core startup time. (#31171)

  • Fixed Inngest workflow traces being split when a sampler is set. (#30812)

    Also in: @mastra/inngest@1.11.5

  • Fixed buffered reflections activating a buffer that another process extended at the same moment. (#28293)

    Also in: @mastra/convex@1.9.2, @mastra/libsql@1.32.0, @mastra/mongodb@1.28.0, @mastra/mssql@1.12.1, @mastra/mysql@0.17.2, @mastra/oracledb@0.5.8, @mastra/pg@1.38.0

  • Stopped publishing TypeScript declaration map files (.d.ts.map). (#31173)

    Also in: @mastra/acp@0.4.5, @mastra/agent-browser@0.7.0, @mastra/agent-builder@1.2.3, @mastra/agentcore@0.5.4, @mastra/agentfs@0.2.4, @mastra/ai-sdk@1.12.1, @mastra/apple-container@0.5.3, @mastra/archil@0.3.3, @mastra/arize@1.4.2, @mastra/arthur@0.5.2, @mastra/astra@1.1.4, @mastra/auth@1.2.1, @mastra/auth-auth0@1.3.1, @mastra/auth-better-auth@1.1.13, @mastra/auth-clerk@1.4.1, @mastra/auth-cloud@1.2.10, @mastra/auth-firebase@1.1.6, @mastra/auth-google@0.1.8, @mastra/auth-neon@0.3.7, @mastra/auth-okta@0.3.1, @mastra/auth-studio@1.4.2, @mastra/auth-supabase@1.2.2, @mastra/auth-workos@1.7.0, @mastra/azure@0.3.4, @mastra/azure-ai-search@0.1.3, @mastra/blaxel@0.10.3, @mastra/braintrust@1.3.30, @mastra/brightdata@0.3.3, @mastra/browser-firecrawl@0.4.0, @mastra/browser-viewer@0.3.1, @mastra/chroma@1.1.6, @mastra/claude@0.3.5, @mastra/clickhouse@1.30.2, @mastra/client-js@1.62.0, @mastra/cloudflare@1.8.2, @mastra/cloudflare-d1@1.5.2, @mastra/cloudflare-sandbox@0.5.5, @mastra/code-sdk@1.21.0, @mastra/codemod@1.1.9, @mastra/connect@1.5.0, @mastra/convex@1.9.2, @mastra/couchbase@1.1.6, @mastra/cursor@0.3.5, @mastra/datadog@1.5.0, @mastra/daytona@0.11.7, @mastra/deepeval@0.1.27, @mastra/deployer@1.86.0, @mastra/deployer-cloud@1.86.0, @mastra/deployer-cloudflare@1.3.0, @mastra/deployer-netlify@1.2.45, @mastra/deployer-sandbox@0.3.30, @mastra/deployer-vercel@1.2.45, @mastra/discord@1.3.5, @mastra/docker@0.14.1, @mastra/dsql@1.5.9, @mastra/duckdb@1.19.2, @mastra/dynamodb@1.5.3, @mastra/e2b@0.18.1, @mastra/e2b-desktop@0.1.15, @mastra/editor@0.17.3, @mastra/elasticsearch@1.4.7, @mastra/elysia@0.1.26, @mastra/evals@1.10.12, @mastra/express@1.5.30, @mastra/factory@0.31.0, @mastra/fastembed@1.4.0, @mastra/fastify@1.5.30, @mastra/files-sdk@0.3.4, @mastra/gcs@0.4.1, @mastra/github-signals@0.5.4, @mastra/google-cloud-pubsub@1.1.9, @mastra/google-drive@0.2.5, @mastra/hono@1.7.28, @mastra/inngest@1.11.5, @mastra/isolated-vm@0.1.5, @mastra/json-render@0.2.0, @mastra/koa@1.7.30, @mastra/laminar@1.3.35, @mastra/lance@1.6.2, @mastra/langfuse@1.7.2, @mastra/langsmith@1.4.6, @mastra/libsql@1.32.0, @mastra/livekit@0.5.4, @mastra/loggers@1.3.12, @mastra/mcp@2.11.0, @mastra/mcp-apps-components@0.3.0, @mastra/mcp-docs-server@1.3.16, @mastra/mcp-registry-registry@1.1.8, @mastra/memory@1.41.3, @mastra/mesa@0.3.4, @mastra/modal@0.7.5, @mastra/mongodb@1.28.0, @mastra/mssql@1.12.1, @mastra/mysql@0.17.2, @mastra/nestjs@0.3.3, @mastra/next@0.2.44, @mastra/observability@1.24.3, @mastra/openai@1.1.5, @mastra/opencode@0.1.45, @mastra/opensearch@1.1.5, @mastra/oracledb@0.5.8, @mastra/otel-bridge@1.6.2, @mastra/otel-exporter@1.6.2, @mastra/parallel@0.1.6, @mastra/perplexity@0.2.3, @mastra/pg@1.38.0, @mastra/pinecone@1.1.5, @mastra/platform@0.2.0, @mastra/platform-workspace@1.14.0, @mastra/playground-ui@71.0.0, @mastra/posthog@1.4.10, @mastra/qdrant@1.1.7, @mastra/quickjs@0.1.6, @mastra/rag@2.8.2, @mastra/railway@0.10.3, @mastra/react@1.16.0, @mastra/redis@1.4.15, @mastra/redis-streams@0.9.1, @mastra/ring-signals@0.1.1, @mastra/s3@0.7.1, @mastra/s3vectors@1.1.6, @mastra/schema-compat@1.4.1, @mastra/sentry@1.3.2, @mastra/server@1.86.0, @mastra/server-adapters-test-suite@0.3.1, @mastra/slack@1.10.0, @mastra/spanner@1.12.2, @mastra/sprites@0.1.3, @mastra/stagehand@0.4.1, @mastra/tanstack-start@0.2.44, @mastra/tavily@1.1.4, @mastra/teams@0.1.6, @mastra/telegram@0.2.6, @mastra/temporal@0.6.3, @mastra/turbopuffer@1.2.4, @mastra/turso@0.1.24, @mastra/upstash@1.6.3, @mastra/valkey@0.2.11, @mastra/valkey-streams@0.6.4, @mastra/vectorize@1.1.6, @mastra/vercel@1.6.4, @mastra/voice-aws-nova-sonic@0.2.7, @mastra/voice-azure@0.12.4, @mastra/voice-cloudflare@0.13.5, @mastra/voice-deepgram@0.13.5, @mastra/voice-elevenlabs@0.13.4, @mastra/voice-gladia@0.13.4, @mastra/voice-google@0.14.6, @mastra/voice-google-gemini-live@0.14.20, @mastra/voice-inworld@0.4.7, @mastra/voice-mistral@0.1.4, @mastra/voice-modelslab@0.2.4, @mastra/voice-murf@0.13.4, @mastra/voice-openai@0.13.5, @mastra/voice-openai-realtime@0.14.10, @mastra/voice-playai@0.13.4, @mastra/voice-sarvam@1.1.5, @mastra/voice-speechify@0.15.1, @mastra/voice-xai-realtime@0.2.19, @mastra/voyageai@0.4.4, @mastra/weaviate@0.1.5

  • Fixed workflows exposed to agents as tools continuing to run after the tool call was cancelled. (#31111)

@mastra/agent-browser@0.7.0

Minor Changes

  • @mastra/agent-browser now drives Chrome with Playwright alone and no longer depends on the agent-browser package. This drops webdriverio and its vulnerable transitive dependencies (basic-ftp, extract-zip). The tools and config are unchanged. (#25855)

    Also in: @mastra/browser-firecrawl@0.4.0

@mastra/agent-builder@1.2.3

Patch Changes

  • Defaulted the agent builder and template builder to openai/gpt-6-luna, the replacement OpenAI recommends for the retiring openai/gpt-4.1 and openai/gpt-4o-mini. (#30891)

  • Raised the @mastra/core peer floor to 1.85.1, the first release that exports the turn markup helpers these packages use or depend on. (#30593)

    Also in: @mastra/code-sdk@1.21.0, @mastra/deployer@1.86.0, @mastra/deployer-cloud@1.86.0, @mastra/deployer-cloudflare@1.3.0, @mastra/deployer-netlify@1.2.45, @mastra/deployer-sandbox@0.3.30, @mastra/deployer-vercel@1.2.45, @mastra/editor@0.17.3, @mastra/elysia@0.1.26, @mastra/express@1.5.30, @mastra/fastify@1.5.30, @mastra/hono@1.7.28, @mastra/koa@1.7.30, @mastra/memory@1.41.3, @mastra/nestjs@0.3.3, @mastra/next@0.2.44, @mastra/server@1.86.0, @mastra/tanstack-start@0.2.44, @mastra/temporal@0.6.3

@mastra/auth-clerk@1.4.1

Patch Changes

  • Fixed Clerk Studio sign-in for OAuth applications that require PKCE, while preserving stateless and concurrent login support. (#24328)

@mastra/auth-workos@1.7.0

Minor Changes

  • Upgraded @workos-inc/node to v12. getWorkOS() now returns a v12 WorkOS client, so if you call the WorkOS SDK directly, follow the WorkOS v12 migration notes. For example, admin portal links are now generated with workos.adminPortal.generateLink() instead of workos.portal.generateLink(), and GeneratePortalLinkIntent is now GenerateLinkIntent. WorkOSAdminPortal has been updated to use the new API and its behavior is unchanged. (#30537)

@mastra/client-js@1.62.0

Minor Changes

  • Added durable, itemTimeout and maxRetries to triggerDatasetExperiment(). (#31204)

@mastra/cloudflare@1.8.2

Patch Changes

  • Fixed listMessagesById, updateMessages and deleteMessages failing with "too many SQL variables" once a thread holds more than ~100 messages (#30858). (#30897)

    Also in: @mastra/cloudflare-d1@1.5.2

@mastra/code-sdk@1.21.0

Minor Changes

  • Added a Codex Fast preference for OpenAI subscription sign-in. Set providerOptions: { mastracode: { codexServiceTier: 'fast' } } on a request, or select a supported Codex model with :fast (for example, openai/gpt-6.2-sol:fast). The suffix is local and the preference never applies to API-key authentication. :fast requests Fast only on models that have a Fast tier (GPT-6.2 Sol and Astra, GPT-6.1 Sol and Terra, GPT-6 Astra, Sol and Luna, GPT-5.6, GPT-5.6 Sol, GPT-5.5 and GPT-5.4); on other models it has no effect. withCodexFastModels() adds these Fast entries to a model list. (#30882)

  • Added embedder and embedderOptions to createMastraCode for recall search. Pass a provider/model string, a Mastra gateway id, or an AI SDK embedding model to embed with it instead of local fastembed. (#30975)

Patch Changes

  • Raised the @mastra/core peer floor to 1.86.0 to match @mastra/pg and @mastra/libsql, which now require the storage v2 state cleanup exports that first ship in that release. (#30822)

  • Fixed Anthropic models not using prompt caching when they run through the Mastra Gateway with an organization key. (#30972)

  • Updated experimental agent validation to use the shared Agent workflow API, keeping durable and evented engine checks compatible with the orchestration refactor. (#30560)

  • Fixed Mastra Code staying silent when its local embedder package @mastra/fastembed can't be loaded. (#31172)

  • Session titles are now shorter. (#30881)

  • Stopped logging an error each time the Mastra Code workspace is created for a new project. (#31071)

  • Kept detected tool paths stable across launches by resolving per-shell PATH directory symlinks, such as fnm's multishell directories, without changing the names of the tools. (#30912)

  • submit_plan now reads the plan file when the run suspends, so approval cards always render the plan. (#30227)

@mastra/connect@1.5.0

Minor Changes

  • Added a Confluence toolset with 36 tools. Agents can read and search spaces, create, update, and delete pages and blog posts, manage page properties, footer comments, and inline comments, and read attachments and labeled content. (#31197)

  • Added an ElevenLabs toolset with 35 tools. Agents can turn text into speech, transcribe audio or video (from base64 audio or a URL), clone voices, compose music from a prompt or an editable composition plan, manage conversational AI agents, voices and voice settings, and pronunciation dictionaries, and read and delete history items, dubbing projects, conversations, and knowledge-base documents. (#30843)

  • Added ConnectEvents, a single class for receiving a project's provider events. It takes the client configuration and where to start in one options object, and you iterate it directly: (#31222)

  • Added a Figma toolset with 29 tools. Agents can read files, nodes, versions, and the components, component sets, and styles a file or team publishes; render nodes as images; post, react to, and delete comments; link nodes to dev resources; and read and update variables (variables need a Figma Enterprise organization). (#31301)

  • Added support for self-hosted GitLab. Connections on the platform's GitLab (self-hosted) integration (gitlab-self-hosted), which connect a self-managed instance with an access token and its hostname, now get the same gitlab_* tools as gitlab.com connections. Calls go to the instance the connection was made for. (#30954)

  • Added a GitLab toolset with 44 tools. Agents can manage projects, groups, issues, merge requests, branches, files, commits, and releases, create and cancel pipelines, and retry jobs. (#30842)

  • Added a SendGrid toolset with 53 tools. Agents can send email, and manage marketing contacts, lists, segments, custom fields, dynamic templates and template versions, sender identities, and global and group suppressions, and read and clear blocks, bounces, invalid emails, and spam reports. (#30844)

  • Added a Zendesk toolset with 36 tools. Agents can create, update, search, and delete tickets and add public replies or internal notes, manage users and organizations, read groups, ticket fields, ticket forms, views, and macros, and write Help Center content: categories, sections, and articles, including editing an article's text per language and archiving it. (#31199)

  • Added ConnectClient and EventsClient so your code can manage Mastra platform connections and react to provider events without polling. (#30320)

Patch Changes

  • Fixed anthropic_cancel_message_batch failing after a successful cancel. (#31180)

  • Fixed Jira and Confluence tools using an Atlassian site they looked up earlier after you chose a different site in the connection's metadata. (#31197)

  • Raised the @mastra/core peer range to >=1.86.0-0 <2.0.0-0, matching @mastra/slack, which now needs the channel tool helpers added in that core release. (#31220)

  • Fixed the Google Analytics run_pivot_report tool so it accepts a property as properties/123456789 as well as 123456789, like run_report and batch_run_reports. (#31194)

  • Connect sessions now include apiBaseUrl, the Nango host the platform issued the session for. (#31187)

@mastra/datadog@1.5.0

Minor Changes

  • Added support for a pass or fail assessment on feedback sent to Datadog. Set metadata.datadog.assessment to pass or fail, and you can search feedback by assessment in Datadog, whatever its value. Feedback without it is sent as before. (#31166)

  • Added feedback export to DatadogExporter and DatadogBridge. Feedback recorded with addFeedback() now shows up in Datadog LLM Observability on the trace or span it rates, even when it arrives hours after the run. Datadog traces now use the Mastra trace ID, so you can also search Datadog for the traceId a run returns. DatadogExporter also sends scores that arrive after the run ends or from another process. Before, it dropped them. A run inside an existing LLM Observability trace, such as your own llmobs.trace() call or one continued from an upstream service, keeps the existing trace ID. Only feedback with a spanId and scores sent during the run reach it. (#31017)

@mastra/deployer@1.86.0

Patch Changes

  • Package manager commands now run without a shell on macOS and Linux, so project paths with spaces or shell characters are passed through safely. (#31095)

@mastra/deployer-cloudflare@1.3.0

Minor Changes

  • Cloudflare Worker builds are now minified by default. This roughly halves the Worker's upload size and cuts its memory use by about 30%, which leaves more of the Worker memory limit for your agents. Function and class names are kept, and with the source maps Wrangler 4.150 and later upload by default, Cloudflare logs map stack traces from uncaught errors back to the files in .mastra/output. To map them back to your own src/ files, also set bundler: { sourcemap: true } on new Mastra(). (#31189)

@mastra/editor@0.17.3

Patch Changes

  • Include prompt block names and IDs in stored agents’ resolved instructions so agents can identify the instructions they follow. (#31149)

@mastra/evals@1.10.12

Patch Changes

  • Fixed the completeness scorer failing with Cannot read properties of null (reading 'concat') on some questions, such as "will Acme Box crash after the update?". (#31012)

  • Fixed the completeness scorer for text in non-Latin scripts such as Japanese, Chinese, Russian, and Arabic. (#31254)

  • Fixed the content similarity scorer so that whitespace counts when ignoreWhitespace is false. (#31167)

  • Fixed the textual difference scorer so changes counts moved words. (#31165)

  • Fixed the textual difference scorer running out of memory on long texts. (#31164)

  • Fixed the tone scorer so every sentence counts toward the stability score. (#31162)

  • Fixed relaxed-order trajectory accuracy scoring so one misplaced step costs one step no matter where it moved. (#31161)

@mastra/factory@0.31.0

Minor Changes

  • Added embedder and embedderOptions to MastraFactory. A deployment can now embed memory recall with a hosted model instead of local fastembed, which runs on the Factory host and competes with the server for CPU. The model is built once at startup, so a missing provider key stops the boot instead of failing the first recall. (#30975)

  • Added self-hosted GitLab to Platform-connected Factories. Connect an instance from Settings or onboarding with Connect self-hosted (or Add self-hosted once GitLab is connected) by entering its hostname and a personal or group access token. Its projects then show up for intake and repositories next to gitlab.com ones, and Factory clones and calls the API on that instance. An expired self-hosted connection reconnects with a new token on the same instance; its hostname cannot be changed. (#30955)

  • Exported shared environment handlers so other servers can serve Factory's environment and sandbox env routes for their own projects. Import EnvironmentHandlers and SandboxEnvHandlers from @mastra/factory/environment/handlers, the request schemas from @mastra/factory/routes/environment-contracts, and resolveProjectEnvironment from @mastra/factory/environment/session-environment without loading the rest of Factory. (#31132)

  • You can now rename a session by hand. Open a session's menu in the sidebar (the … button or a right-click), choose Rename, and type the title you want. (#30879)

  • Added a session metrics group with mastra_factory_session_first_output_ms: how long a message sent to an idle session waits for the model's first output, whether that is text, reasoning or a tool call. Labels say whether it was the session's first run (turn), what the output was (first), and whether the run ended before the model said anything (outcome=no_output). (#30862)

  • Platform integrations (Jira, incident.io, GitLab, Vanta) now use the connections linked to the Factory's Mastra platform project, so platform events for those connections reach the Factory. (#30347)

  • Platform integrations now talk to the Mastra platform through ConnectClient from @mastra/connect, so every integration shares one client. (#30347)

Patch Changes

  • Improved Factory responsiveness under load. (#30767)

  • Fixed agents looping on stale card moves. (#30717)

  • Factory sessions now start a card when someone asks for the work to be done now ("fix it", "go for it"), instead of filing it and leaving it in the backlog. (#31107)

  • Factory sessions are now prompted to check a side session's claims before repeating or acting on them. (#31109)

  • Added workItemBoardSource, which returns the source a board shows a card under and filters it by. (#30798)

  • Model picker — The Factory model picker now lists a Fast entry (for example openai/gpt-6.2-sol:fast) next to each OpenAI model that has a Fast tier when OpenAI is connected with a ChatGPT sign-in. (#30882)

  • The chat composer stays one line until you focus it or start writing, so more of the conversation fits on screen, with the model still in view. (#31088)

  • The Factory planning and building skills now state where a plan file must go for both sandbox layouts. (#30227)

  • Factory now links every comment and change request it publishes back to the session that wrote it. (#29948)

  • Factory's Slack tools now come from createChannelTools() in @mastra/core/channels and createSlackTools() in @mastra/slack. (#31220)

  • Factory automations whose board move is refused now fail at once and reach a person. (#31038)

  • Stopped logging an error each time a session workspace is created for the first time. (#31071)

  • Skill instructions in the Factory now read like the rendered page while you edit them. (#30893)

  • When a memory-model failure stops a run, Slack threads now get the run error card (with its "Change memory model" link) instead of silence, and the run is reported to its followers and the session that started it as failed, quoting the failure. (#31179)

  • The jump-to-latest button is easier to hit, quieter, and draws a moving pen stroke in place of its arrow while the agent is still replying below. (#31088)

  • Factory's board settings pages (Rules, Routing, Skills and each phase) now sit in a 640px settings column, with their titles lined up with their sections. (#30956)

  • Added Pull request and Trust filters to Factory boards. (#31037)

  • Fixed review-thread resolution for Factories on platform-managed GitHub. (#30926)

  • Factory review no longer requests changes just because a review bot or CI check is still pending once the 10-minute wait runs out. (#31175)

  • Fixed self-review not recording its verdict when the builder's own move started it. (#31104)

  • Connecting Slack now picks your Factory as the default for new Slack sessions automatically when your organization has exactly one Factory, so you no longer need to choose it in Slack settings after signing in. (#31336)

  • Fixed Factory-owned runs using a deployment-provided Mastra Gateway without requiring an organization model key. (#31211)

  • Offered the merge-request checkout refresh tool only in GitLab merge-request review sessions, so GitHub review sessions no longer call a tool that always fails. (#31070)

  • Fixed source-control tools failing with "The active source-control session does not match its controller repository" after a pull request event woke a session. (#31317)

@mastra/fastembed@1.4.0

Minor Changes

  • Fixed fastembed starving its host under a CPU limit. ONNX Runtime sized its thread pool from the machine's cores and busy-waited idle threads, so in a container limited to a few CPUs on a larger host it used the whole quota and the kernel paused the process. Under a CPU limit the pool now follows the CPUs the process may use (os.availableParallelism()), and idle threads sleep. Without a limit, ONNX Runtime still picks the pool size (one thread per physical core). See #30736. (#30892)

@mastra/inngest@1.11.5

Patch Changes

  • Fixed resumable chatRoute never reconnecting to a run of a createInngestAgent agent. (#31372)

  • Fixed Inngest durable agents ending the agent run and model generation spans on the default observability config when a configSelector picked a different one. (#30921)

  • Fixed missing traceId and spanId on createInngestAgent results. (#31013)

  • Fixed Inngest agents leaving stopCause off their finish chunk. (#30550)

  • Fixed the resumed part of a createInngestAgent run losing the thread id and resource id on its spans, so filters by thread or resource find the whole run. (#30957)

  • Fixed Inngest workflows exporting step input and output that the run asked to hide. (#30929)

@mastra/json-render@0.2.0

Minor Changes

  • Added studioCatalog at @mastra/json-render/studio. Agents that compose with it get their interfaces drawn in Studio's chat with Studio's own components, without writing any client code. The catalog covers layout, content, and form controls, and its sendMessage action sends the values the user entered back to the agent. (#31016)

@mastra/libsql@1.32.0

Minor Changes

  • Added worker takeover for evented and durable agents on libSQL storage. When a worker process stops in the middle of a run, another worker can pick up the step from a broker such as Redis Streams and finish the run, and the original caller gets the result. If the same step message arrives again late, it no longer overwrites a step that already finished, and a finished loop iteration keeps its saved result instead of running again. (#30911)

Patch Changes

  • Improved dataset listItems() with perPage: 0. (#31290)

    Also in: @mastra/mysql@0.17.2, @mastra/pg@1.38.0, @mastra/spanner@1.12.2

  • Knowledge list calls now throw KnowledgeInvalidCursorError for a malformed cursor, so servers can answer 400 instead of 500. (#30522)

    Also in: @mastra/mongodb@1.28.0, @mastra/mysql@0.17.2, @mastra/pg@1.38.0

@mastra/mcp@2.11.0

Minor Changes

  • Reduced the install size of @mastra/mcp by about 38 MB. tsx and json-schema-to-typescript are no longer installed with the package, because only the mastra-mcp generate type generator uses them. The generator now converts schemas with json-schema-to-typescript-lite, which doesn't pull in Prettier, so installing its helpers adds about 2 MB instead of about 24 MB. tsx and json-schema-to-typescript-lite are optional peer dependencies. (#31177)

Patch Changes

  • Fixed MCPClient never settling after a failed connect when releasing its process hooks threw, so callers now receive the original connect error and a later connect retries instead of replaying the failure (#30820). (#30888)

@mastra/mcp-apps-components@0.3.0

Minor Changes

  • The observability dashboard can now read a single project's data in chat clients that don't pass a project, such as Claude and ChatGPT. Previously, those clients read every project the server could access. Return the dashboard's project id as project next to the dashboard. A project passed by the host page still wins. Pins and settings clicks now report the project each widget read. (#30561)

Patch Changes

  • Shrank the observability explorer and trace viewer MCP Apps back under their size budget. (#30934)

    Also in: @mastra/playground-ui@71.0.0

  • Fixed observability dashboard widgets showing "Couldn't load" in Codex. (#30987)

  • Updated the observability explorer app to the traces explorer that takes its data as props. (#30935)

@mastra/memory@1.41.3

Patch Changes

  • Reduced memory use on Cloudflare Workers and other V8 runtimes that bundle @mastra/memory or @mastra/server. (#31265)

    Also in: @mastra/server@1.86.0

  • Fixed agents ignoring working memory instruction overrides on Memory subclasses. (#30316)

  • Fixed Observational Memory removing bracketed facts such as ticket IDs and speaker labels from agent context. (#30959)

  • Fixed Observational Memory formatting the full recent conversation for every observation even when no onExtracted hook uses it. (#29378)

  • Improved Observational Memory history loading by inserting stored messages in batches, preserving message ordering, deduplication, and incoming client tool results. (#31289)

  • Fixed saved messages losing their leading and trailing newlines. (#31139)

  • Keep the signed reasoning block of a tool call when observational memory prunes around it. (#28848)

  • Observational Memory now counts tool results that serialize through toJSON() (including Date values) by their serialized form, the same form that is stored and sent to the model. (#31114)

  • Made Observational Memory's token counting faster on long threads. (#31114)

  • Fixed buffered reflection values appearing in thread metadata before activation. (#28293)

  • Observational Memory now asks the model to write thread titles in the language of the user's messages. (#26847)

  • Fixed observational memory retrying a model call through its whole retry budget (nine attempts and about four minutes of back-off by default) when the provider account has no credits or quota left. (#31223)

  • Fixed thread transfers missing observations when search results take time to reflect updates. (#28290)

@mastra/mongodb@1.28.0

Minor Changes

  • Added per-branch options and optional Atlas native reranking to MongoDBVector.hybridQuery(). Pass separate vector and text options to configure independent retrieval queries, candidate limits, fusion weights, and reranking fields. Existing hybridQuery() calls keep working unchanged. (#30067)

  • Hardened MongoDBVector for collections you bring yourself (collectionName). (#30067)

Patch Changes

  • Fixed MongoDB pre-filter queries failing during BSON serialization for long IDs by bounding candidate bytes. (#30952)

  • Fixed createSearchIndex failing with "indexes had duplicate ids" when two processes refreshed the same full-text search index at the same time. (#31257)

@mastra/observability@1.24.3

Patch Changes

  • Update bundled model pricing with the latest prices from models.dev (d250e06)

  • Fixed cost estimates that were always empty on Cloudflare Workers and in other bundled apps. (#30924)

  • Fixed durable agents losing trace tags and request context when a span ends. (#30921)

@mastra/oracledb@0.5.8

Patch Changes

  • Fixed slow index creation when an index column contained a long run of whitespace before its sort direction. (#31095)

@mastra/pg@1.38.0

Minor Changes

  • Added pgKnowledgeTransactionClient(tx) (experimental). It returns the PostgreSQL transaction behind a Knowledge transaction view, so a host can write its own rows in the same transaction as Knowledge's. For example, an importer service host's admit(tx) can record its claim on the run it starts: the claim commits with the run, and rolls back with it when admission is refused or the start is skipped. (#31101)

Patch Changes

  • Fixed a Knowledge page move on Postgres leaving a page with its old scope and depth when that page was added under the moved subtree while the move was waiting for a lock. (#31101)

  • Fixed a PostgreSQL transaction resolving as if its writes were saved when a statement in it had failed and the caller swallowed that failure through an explicit drain(). (#31101)

  • Fixed span reads on Postgres dropping how a span ended. (#30812)

@mastra/platform@0.2.0

Minor Changes

  • accessToken on PlatformMemory, PlatformKnowledge, PlatformSandbox and PlatformClient now also accepts a function. It's called before every request, so long-lived clients can mint a fresh token each time instead of failing once the one they were built with expires. (#31344)

    Also in: @mastra/platform-workspace@1.14.0

Patch Changes

  • Remove unreleased hosted working memory API calls, model context injection, and options from Platform Memory while retaining local working memory in OSS Memory. (#30984)

  • Hosted Knowledge now rejects too-deep pages and too-large moves with KnowledgePageDepthError and KnowledgeMoveTooLargeError, the same errors local storage throws, instead of a plain Error. (#31007)

@mastra/playground-ui@71.0.0

Minor Changes

  • TabList takes overflow="menu": tabs that don't fit fold into a "+N" menu after the last one that does, with the open tab always in the row. It was only available on contained tabs; the default still scrolls. (#30833)

  • Reworked the neutral colors in both themes. Supporting text is easier to read, and cards, menus and dialogs share one fill. Fields are the card color on the page and a light tint inside cards and dialogs. (#31178)

  • Added a fill prop to BrandLoader that centers it in a page that hasn't shown yet. fill="screen" covers the window. (#31225)

  • Added LogView, a shared log viewer for plain log lines such as sandbox and deploy output. It is built from parts, so a page keeps only what it needs and fetches its own data. (#31332)

  • Added CopyField (@mastra/playground-ui/components/CopyField) for read-only values people copy, such as IDs, keys and URLs. It has the field look with an inset copy button, and long values are cut in the middle instead of clipped. The Copy button copies the whole value, and so does copying a selection inside a shortened value. (#30510)

  • Dashboard chart widgets with several views, such as Latency, Agent runs and Token usage on the Metrics page, now list them as pill tabs under the title instead of a dropdown in the title, matching the Breakdown table. Tabs sit on the left of the toolbar with the legend on the right; views that don't fit fold into a "+N" menu. Tab names drop the words views share, so "Agent latency", "Workflow latency" and "Tool latency" read "Agent", "Workflow" and "Tool". Multi-view widgets can now be renamed from their title. Widgets with an expand link keep a single title and no tabs. Custom widget kinds built on useViewMenu get the tabs through heading.toolbar. (#31181)

  • Added four EmptyStateArt drawings: filesystems (a folder tray), sandboxes (a sandbox with a sandcastle), vault (an access vault wired to services), and secrets (a cryptex). connect is now a switchboard where accounts plug into an agent, alerts is a phone that gets a notification, and the models cartridges light up in each provider's color on hover. Every drawing now stands on a soft hatched shadow instead of a base plate, and all drawings render at the same visual size. (#30861)

  • Simplified page frames to one component, PageLayout, with a required variant that says what the page is for. Each variant takes only the props that make sense for it, so a page can no longer pick its own width, gutter or scroll mode, and a form can no longer show breadcrumbs next to its back link. (#30956)

  • The scroll-to-latest button is a round 32px control with a muted arrow, lifted by soft shadows instead of a border, matching the composer. MessageScrollerButton / ChatShell.ScrollButton take a busy prop: while a reply is still streaming in below, the arrow gives way to a small stroke drawn as if by a pen, written in and chased off in a loop, in the same spot. (#31088)

  • Added a loading prop to Button, Notice.Button and AlertDialog.Action. The loader takes the place of the button's icon, or goes on the left when there is none. The label, colors and focus stay, and clicks do nothing until the action is done. DialogAction is loading on its own while its Dialog is pending. (#31240)

  • Pages share one spacing rhythm. PageLayout puts 16px under the page header and 48px at the end of every scrolling page. Settings and form pages keep 24px above the title and 32px under it, and space their sections 24px apart (was 28px). (#31190)

  • Added AgentAvatarUpload and downscaleImageToDataUrl under @mastra/playground-ui/domains/agent-avatar, so hosts other than Studio can let users pick an agent avatar. The image is downscaled in the browser and returned as a data URL. (#31133)

  • Added RepositoryList, CommittedInput, SandboxSettings, SandboxEnvList and GitlabIcon components for configuring sandbox environments (repositories, settings, environment variables) in any app. (#31131)

  • Added the instruction block editor (AgentCMSBlocks, prompt block picker, saved-block references and DisplayConditionsDialog) under @mastra/playground-ui/domains/instruction-blocks, so apps other than Studio can let users compose agent instructions from text and saved prompt blocks. (#31133)

  • Added the prompt-block list and edit components (PromptsList, PromptBlockEditMain, PromptBlockEditSidebar, usePromptBlockEditForm, version combobox, delete action) under @mastra/playground-ui/domains/prompt-blocks, so other apps can host a Prompts library page. (#31133)

  • Added CardIllustration, a framed plate for a small drawing at the top of a card. It is the same plate the illustrated InfoTooltip panels use, and every plate in a set is the same size, so the drawings line up. The plate is hidden from screen readers, so the card's title and description name it. (#30960)

  • Added MarkdownEditor, a markdown field that reads like the rendered page. Headings, bold, links, lists and quotes show formatted, and their markdown appears only on the line or span the caret is in. The value you get back is exactly the markdown that was typed, never rewritten. (#30893)

  • Hosts other than Studio can now build an agent page from the same parts Studio uses: (#31002)

  • Share dataset edit, duplicate, schema and version-compare views from @mastra/playground-ui/domains/datasets (EditDatasetForm, DuplicateDatasetDialog, DatasetSchemaDialog, DatasetCompareVersionToolbar, DatasetCompareVersionsList, ScorerSelector), so apps other than Studio can render them. (#31087)

  • Shared the dataset detail views (items list, item panel, add/import/export dialogs, version history) and experiment comparison components from @mastra/playground-ui, so apps other than Studio can render a dataset's items. These components take URL state (searchParams, setSearchParams, currentItemId) as props and navigate through the app's paths.datasetLink/paths.datasetItemLink. (#31087)

  • Added DatasetPage to @mastra/playground-ui/domains/datasets: the full dataset detail page (dataset and version switcher crumbs, Schema and Edit/Duplicate/Delete actions, items list, dialogs). Studio now renders it, so other apps get the same page. DatasetCombobox and DatasetVersions also moved to playground-ui. (#31087)

  • Share the dataset edit page, version compare pages and item side panel from @mastra/playground-ui/domains/datasets, so every app shows the same dataset screens. Item and version links now use the app's paths.datasetItemLink instead of hardcoded /datasets URLs. (#31087)

  • Exported the datasets list building blocks from @mastra/playground-ui/domains/datasets (DatasetsList, DatasetsToolbar, DatasetsFilterBar, CreateDatasetDialog, NoDatasetsInfo, DatasetsListSkeleton, target filter helpers) and ComputedTag from @mastra/playground-ui/domains/observability, so apps other than Studio can render the datasets list. CreateDatasetDialog now opens the new dataset through the app's paths.datasetLink. (#31087)

  • Studio's experiments UI now ships from @mastra/playground-ui/domains/experiments, so another app can render its own experiments list, experiment page and comparison. No part fetches: experiments, results, scores and usage come in as props typed with the @mastra/client-js and @mastra/react response types, and actions (delete, rename, request review, add a tag, open an item) go out through callbacks. The parts render without a Mastra client, React Query or a router; links use useLinkComponent() paths (experimentLink, experimentItemLink, datasetLink, traceLink). (#31119)

  • Studio's agent chat now draws interfaces that agents compose with studioCatalog from @mastra/json-render/studio. Users can fill in and submit them; the values they enter are sent back to the agent with their next message. Interfaces are read-only while the reply streams and in read-only views. (#31016)

  • The trace side panel and the thread side panel are now compound components. You build them from parts, give each part the data you loaded yourself, and decide what goes where. An app with its own transport (for example an MCP server app) can rebuild them, leave parts out, swap one part for its own, or add its own elements. No part fetches, except the Live* parts Studio composes them with (see Added): the spans, the open span, the full trace, scorers, scores, feedback and the thread's turns come in as props typed with the @mastra/client-js response types, and actions go out through callbacks. (#30804)

  • The chat composer now stays one line until you use it, leaving more room for the conversation. Idle, it shows "+", the input, the model picker, voice and Send in a single row. Focusing the input or writing a draft (text, attachments or annotations) glides it open, giving the input its own row above the actions, and it glides back to one line when you leave it. "+" and Send stay on the same spot throughout, and the one-line composer is a full pill. (#31088)

  • The whole traces page, filters and histogram included, now renders from data you hand it. TracesExplorer and every part under it (FilterBar, ColumnsMenu, Histogram, List, Body, Layout, Panel) no longer fetch: they take records typed with the @mastra/client-js response types and report every action through a callback. An app with its own transport, for example an MCP server app, can now show the same page from its own queries, with no Mastra client, no React Query and no Studio router. (#30935)

  • Add an optional onEdit callback to StoredSkillsPicker so hosts can open their own editor for an available skill without changing its selection. The Edit action appears only when the callback is provided. (#31002)

  • Added illustrated info tooltips, and info tooltips now open on a tap on touch screens. (#30945)

  • Added seven EmptyStateArt drawings for states that had no drawing yet: requests, no-charges, disconnected, locked, rate-limited, server-error and not-a-member. Each one rests still, plays on hover or while working, and shows its own failure. The radar dish, padlock, hourglass and turnstile turn in true 3D while they play, and stay still when reduced motion is on. (#31340)

  • Added the playground-ui/button-icon-prop lint rule: a text Button's icon goes in its icon or iconEnd prop, not in its children beside the label. The prop sets the icon's size and padding for the button's size, so every button matches. Icon-only buttons still take the icon as their child. (#31282)

Patch Changes

  • If you import AgentBadge from @mastra/playground-ui/domains/chat/tools/badges/agent-badge, renderToolCard is now required. (#30934)

  • The ask_user card now shows a Recommended tag on the option the agent marks as the one it would pick. (#31251)

  • Fixed controls losing their hover highlight while their tooltip or hover card is open, for example a default Button with a tooltip. (#31333)

  • Pan in both directions with two-finger scrolling on the Knowledge graph in Studio and Factory. (#31224)

  • Feedback threads now show "Deleting…" on a comment while its deletion is processed, and hide its actions. (#30733)

  • Fixed Knowledge scope titles to use API display labels, with readable custom-kind fallbacks while preserving explicit names and importer titles. (#30880)

  • Fixed the missing right border on Studio's agent side panel (threads and editor). (#31209)

  • Fixed pages fading out at their top and bottom edges as they scroll. (#31239)

  • Fixed the Knowledge and Memory empty state drawings losing their movement when an app minifies CSS with Lightning CSS, the Vite 8 default. (#31103)

  • Fixed EmptyStateArt drawings looking different sizes. (#30855)

  • Let Factory’s Knowledge graph fill its canvas behind floating controls and pan from the edges with a trackpad. (#31210)

  • Fixed the Traces page returning no traces, or the wrong traces, when a link or saved filter excluded a status or primitive type with "is not" (for example ?status=error&status.op=isNot). (#31044)

  • Generative UI forms in agent chat keep what the user entered after they submit. (#31137)

  • Added CircleDotIcon, a ring with a dot drawn on the Central Icons grid and stroke, for things that are open or made by hand. (#30798)

  • Headless Connect in Studio now uses the Nango host returned with the connect session, so connecting accounts works against a self-hosted Nango. (#31187)

  • Fixed the CodeEditor suggestion list ignoring design-system styling: the highlighted suggestion now uses the neutral selection fill instead of a bright blue, and suggestions use the design-system monospace font. (#30893)

  • The Knowledge graph no longer drops root scopes. (#31100)

  • The Knowledge page panel's Preview now fills the panel's free height. (#30786)

  • Observability lists (traces, logs, and their filters) now keep live polling through a 429 rate-limit response, instead of stopping until the page is reloaded. (#31049)

  • Metrics cards now wait for all their requests before reporting a failure. (#28982)

  • Fixed MCP App iframes so third-party app HTML cannot run with the Studio page's origin. (#30593)

  • Fixed provider logos on the Agents list being almost invisible in dark mode. (#31178)

  • Agent chat can show the agent's avatar on the empty-thread welcome. (#31134)

  • Fixed settings rows in dialogs: a text field now sits beside its label, like a select does, instead of wrapping under it at a narrow width. (#30940)

  • Fixed the missing shadow on the page card. (#31236)

  • Fixed key symbols in shortcut hints looking smaller than the letters beside them. ⌘, ↵, ⌫, arrows and the other key symbols now match the letters' height in Kbd, CommandShortcut, DropdownMenu.Shortcut, ContextMenu.Shortcut and Sidebar.SearchTrigger, the same on every operating system. (#31216)

  • A user message's footer now lines up on the right, like the message bubble above it. (#30890)

  • Fixed Table.RowLink and Table.RowButton in inset tables blocking clicks on other controls in Safari. (#30985)

  • Share the Studio agent conversation shell and thread navigation with managed-agent hosts. (#30982)

  • Export a controlled stored-skills picker with host-supplied skill lists, selection, loading state, and attach/remove/create callbacks. (#30983)

  • Disable zoom buttons at the Knowledge graph’s zoom limits, using the same controls as Workflow. (#31227)

  • Fixed live updates in the Spans and Threads lists stopping after the tab stays open for a while. (#30889)

  • useChatSend() now returns the same function for as long as the chat is mounted. (#31138)

  • Show an animated Knowledge graph while Factory and Studio load. (#31207)

  • Export reusable conversation-memory sidebar, observational-memory display, memory detail panel, and clone-thread controls for host-driven Studio and managed-agent interfaces. (#30980)

  • A Traces explorer scoped to one entity, such as an agent's Traces tab, now shows its empty state when that entity has no runs. (#31002)

  • The title of a view-only or disabled settings row is no longer dimmed, so it matches every other row. (#30830)

@mastra/react@1.16.0

Minor Changes

  • useMemoryThreadMessages accepts an optional agentId and reads the thread's messages from that agent's memory. Without it, the hook reads from the default storage as before. (#31002)

  • Deleted feedback no longer looks like it stayed. On servers that delete feedback in the background (such as Mastra Platform), useTraceFeedback and useSpanFeedback now mark a row with deleteStatus: 'deleting' after useDeleteFeedback succeeds, and keep checking until the server stops returning it. If the row is still there after 5 minutes, it is marked deleteStatus: 'failed' instead. (#30733)

@mastra/server@1.86.0

Minor Changes

  • Added durable, itemTimeout and maxRetries to the experiment trigger route (POST /datasets/:datasetId/experiments), so a server can start an experiment that keeps running after the process that started it stops. (#31204)

Patch Changes

  • Agents that set durable.executionEngine to 'default' or 'evented' now work with the same run routes as createDurableAgent() agents: (#31008)

  • Fixed SSO callbacks to return identity provider errors instead of reporting a missing authorization code. (#24328)

  • Knowledge routes now return 400 instead of 500 for a malformed list cursor. (#30522)

  • Stopped logging an error when a workspace route is called with an unknown workspace ID. (#31071)

  • Fixed observed durable agent streams dropping stopCause from their finish chunk. (#30550)

@mastra/slack@1.10.0

Minor Changes

  • Added createSlackTools(), which returns Slack-only agent tools: findChannel, findUser, searchMessages and downloadSlackAttachment. They take the same options as createChannelTools() from @mastra/core/channels. searchMessages and downloadSlackAttachment only read channels those options allow. findChannel and findUser look up the whole workspace. (#31220)

@mastra/voyageai@0.4.4

Patch Changes

  • Added the rerank-3 and rerank-3-lite VoyageAI reranker models to VoyageRerankerModel and RERANKER_MODEL_INFO. (#30067)

Other updated packages

Dependency updates only: @mastra/longmemeval@1.1.45