github mastra-ai/mastra @mastra/core@0.18.0
2025-09-23

12 hours ago

Mastra Release - 2025-09-23

Agents

  • Bugs related to agent type handling. #8072
  • An error related to the tripwire controller being closed prematurely. #8099
  • The type system for agent output options by introducing a single OUTPUT generic, ensuring mutual exclusivity between 'output' and 'structuredOutput', improving type inference and safety, and laying the groundwork for future structured output streaming. #7969
  • Agent instructions to support full SystemMessage types, enabling more flexible and structured instruction formats, updates related functions for compatibility, and adds comprehensive tests. #7987

Deployer

  • Configure the project root to support private packages in the build bundle process. #8004
  • New APIs to update and reorder models in the list, adding model fallback methods to both the server deployer and the client JS, along with corresponding tests. #7378

Developer Tools & UI

  • The codebase by removing all usage of SWR and replacing it with TanStack Query. #7931
  • The code to compute links from a provider instead of passing them through props, improving configuration and usage. #8016
  • The Template form by moving the AI model section, enhances the AgentMetadataModelSwitcher with auto-save, a new Save button, agent name filtering, and responsive styles, and applies minor style improvements to other Template components. #8071
  • A style and padding issue in the DateTimePicker popover content. #8106
  • A user interface for scoring on traces and spans. #8089
  • Navigation between scorers and entity types by using scorer names instead of IDs, resolving issues with broken navigation and duplicate scorer entries. #8129

Evals

  • A 'type' parameter to scorer creation, enabling automatic typing of scorer input and output based on the specified type (currently 'agent'), simplifying scorer definitions and payload handling. #8032
  • New server APIs and updates the client SDK to enable scoring of traces. #8064
  • The 'agent' type to all built-in scorers and corrects their names where necessary. #8101
  • A missing changeset for setting the type on built-in scorers, addressing an oversight from a previous pull request. #8132

Memory

  • An issue with the PGVector adapter that caused the memory_messages_vector_idx index to be unnecessarily dropped and recreated, improving performance and preventing chat disruptions. #8020

Observability

  • An issue with orphaned spans in the Braintrust exporter, ensuring proper span association and addressing bug #6773. #7660
  • A critical bug in the langfuse exporter that caused spans finishing after their root span to be lost by ensuring they are no longer incorrectly treated as out-of-order. #8104

Storage

  • A missing changeset related to schema compatibility. #8090
  • Vector type qualification in PgVector for AWS RDS with custom schemas by detecting the installed schema of the pgvector extension, properly qualifying vector type references in all SQL queries, enhancing installation logic, and adding comprehensive tests. #8070

Tools

  • A new feature to display tool output in streamVNext and addresses issue #7325. #7983
  • The ability to suspend and resume tool calls, laying groundwork for tool approvals, and includes related test updates. #8084 [IMPORTANT]
  • The English-to-Japanese translation service by refactoring the relevant code. #8126
  • The playground UI so that tool navigation links now correctly include the agent ID in their paths, ensuring users are directed to agent-specific tool pages. #8135

Workflows

  • A bug in workflows to ensure the correct agent method is selected based on the model version. #8001
  • Type issues and improves type safety for getStepResult in workflow steps, updates its documentation, and adds related tests. #8065
  • A batch trace scoring system with configurable scorers and introduces internal event-based workflow support to Mastra. #8033

Don't miss a new mastra release

NewReleases is sending notifications on new releases.