Skip to content

chore(deps): bump Mastra to 1.80.0 and Next to 16.4.3 - #62

Open
hamchowderr wants to merge 4 commits into
mainfrom
claude/update-mastra-zapier-yulcuv
Open

hamchowderr wants to merge 4 commits into
mainfrom
claude/update-mastra-zapier-yulcuv

Conversation

@hamchowderr

@hamchowderr hamchowderr commented Oct 30, 2026 •

Copy link
Copy Markdown
Owner

Before:

  • Foreman ran Mastra 1.76.0.
  • next build on main stops on Next 16.4.0 because of a known security vulnerability.
  • The agents test job has been red on main since 2026-10-25. GitHub's runners now ship bwrap, which exposed two bugs in how local durables run under isolation.

After:

  • Every @mastra/* pin is on the latest release.
  • The web build passes on Next 16.4.3.
  • Local durables run under bwrap again.
  • The lockfile picks up the in-range minors (ai 7.0.159, chat 4.43, supabase-js 2.118, react 19.3.1, zapier-durable 0.14.3 and others).

Versions

  • core/deployer/server 1.80.0
  • memory 1.39.1, observability 1.22.0, pg 1.33.0, rag 2.7.1
  • mastra CLI 1.36.0
  • the rest of the set on their latest patches

Breaking change fixed: AgentController sessions are now keyed by session id.

  • createSession({ scope }) and getSessionByResource were removed.
  • The web session is now looked up with getSession(resourceId). Its id is the resourceId.
  • A channel session keeps its own channel:<threadId> id, so it still can't take over the web session.
  • Channel resolveResourceId now receives requestContext, and the tests pass it.

bwrap fix (lib/durable/runner.ts, lib/providers/sandbox.ts):

  • bwrap won't start when a bind source is missing, so the runner now names only the ancestor node_modules directories that exist.
  • The durable journal is written to the tenant state directory, one level above the run directory. Only the run directory was writable, so no approval gate was ever recorded. The state directory is now passed as a read-write path.
  • The sandbox-provider test assumed no host has bwrap. It now checks that the backend is forwarded on hosts with and without it.
  • I reproduced all three CI failures locally with bubblewrap installed, and confirmed they pass with this fix.

How:

  • Updated every Mastra pin in root overrides and the agents package together, then did a clean reinstall from a fresh lockfile. The dep-uniqueness check passes.
  • npm test: 568 passed, with bwrap present
  • agents tsc --noEmit: clean
  • npm run lint: warnings only
  • verify:aimock: passes
  • web next build: passes

The Zapier SDK/CLI bump (#63) and the other exact-pinned updates (#64) are in separate PRs.

🤖 Generated with Claude Code

https://claude.ai/code/session_01CALPMzkCJ9sfSvDy7PCSZK

Every @mastra/* pin moves together (core/deployer/server 1.80.0, memory
1.39.1, observability 1.22.0, pg 1.33.0, rag 2.7.1, mastra CLI 1.36.0).

Breaking: AgentController sessions are now keyed by session id. The
createSession `scope` option and getSessionByResource are gone, and
channel resolveResourceId receives the request context.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01CALPMzkCJ9sfSvDy7PCSZK
next build refuses to finish on 16.4.0 because of a known vulnerability.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01CALPMzkCJ9sfSvDy7PCSZK
@vercel

vercel Bot commented Oct 30, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
foreman Ready Ready Preview Oct 30, 2026 11:12pm UTC

Request Review

GitHub's runners now ship bwrap, so the isolated path runs in CI and was
broken (red on main since 2026-10-25):
- bwrap refuses a bind source that doesn't exist, and the runner named
  every ancestor node_modules, including ones that don't exist.
- Only the working directory was writable, but the durable journal is
  written to the tenant state dir above it, so no approval gate was ever
  recorded. The state dir is now passed as a read-write path.

The sandbox-provider test assumed no host has bwrap; it now checks the
backend is forwarded on hosts with and without it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01CALPMzkCJ9sfSvDy7PCSZK

This branch was successfully deployed

1 active deployment
Preview — c64e5eaa Deployed Oct 30, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants