# mastra/release
Mastra @mastra/core@1.70.0
September 24, 2026
importance: highbreakingfeature
This release introduces dynamic model routing, cross-process cancellation, and enhanced trace querying. It also includes breaking changes for UI components in `@mastra/playground-ui`.
affected
Users of `@mastra/playground-ui` are affected by breaking changes in UI components.
action
Review breaking changes in `@mastra/playground-ui` and update components accordingly.
release_signals
-`@mastra/playground-ui`: `ErrorState` removed (use `EmptyState tone="error"`).
-`@mastra/playground-ui`: `PermissionDenied` and `SessionExpired` moved to auth domain with simplified props (custom copy/actions require rendering `EmptyState` directly).
-`@mastra/playground-ui`: `Button` `outline` variant removed (use default/primary).
-`@mastra/playground-ui`: `TraceKeysAndValues` removed; `TraceDataPanelView placement="trace-page"` now renders the summary itself.
+`ModelSelectionProcessor` for dynamic model routing per request with classifier-based selection.
+Cross-process cancellation of queued thread input with `cancelQueuedMessages({ signalIds })`.
+Multi-tenant safe observability queries with trusted `{ organizationId, resourceId? }` scope.
code_snippet
import { Agent } from '@mastra/core/agent';
import { ModelSelectionProcessor } from '@mastra/core/processors';
// `model` is the evaluation model that makes the decision (`EvaluationModelV4 | MastraEvaluationModel`, the same type Classifier accepts).
new Agent({
name: 'support-agent',
model: 'openai/gpt-5.6-sol',
inputProcessors: [
new ModelSelectionProcessor({
model,
choices: [
{ model: 'openai/gpt-5-mini', criteria: 'Answerable in one or two sentences with no reasoning steps' },
{ model: 'openai/gpt-5.6-sol', criteria: 'Requires multi-step reasoning or careful judgment' },
],
onDecision: decision => console.log('model selection', decision),
}),
],
});# community_signal
How useful is this release to your stack?
—
net score
Sign in with GitHub to cast your vote.
Sign in with GitHub to vote
You’ll return to this release, then choose your vote.