Skip to content

v0.1.41

Latest

Choose a tag to compare

@reggie-db reggie-db released this 11 Jun 20:27

No commit subjects, so I need to inspect the diffs.## Fixes

  • Mastra memory and storage now run on a dedicated service-principal Lakebase pool instead of the routing pool's per-request OBO identity. Threads, messages, and semantic recall live in the app-owned mastra_* schemas, which a per-user role typically cannot create or share, so memory now connects reliably across users and during schema auto-creation.

Internals

  • The memory builder takes an explicit service-principal Pool resolved from the lakebase plugin's getPgConfig() outside any asUser scope, dropping the previous lazy RoutingPool lookup. SP username falls back to an API lookup for local PAT-authenticated dev.
  • The plugin drains its memory pool on abortActiveOperations, clearing the handle so a re-setup() rebuilds it.
  • Added a direct pg dependency for the new pool construction.