Skip to content

Mastra LibSQL Storage/Memory Error with supervisor agent and sub agents #15336

@daneatmastra

Description

@daneatmastra

This issue was created from Discord post 1493565869236944997:

Open in Discord

I keep getting this error

ERROR [2026-04-14 05:56:42.398 -0500] (Mastra): Failed to save messages to sub-agent memory
    agent: "People search supervisor"
    error: {
      "message": "Expected to find a threadId for message, but couldn't find one. An unexpected error has occurred.",
      "domain": "STORAGE",
      "category": "THIRD_PARTY",
      "code": "MASTRA_STORAGE_LIBSQL_SAVE_MESSAGES_FAILED",
      "details": {},
      "cause": {
        "message": "Expected to find a threadId for message, but couldn't find one. An unexpected error has occurred.",
        "name": "Error"
      }
    }```

Metadata

Metadata

Assignees

Labels

MemoryIssues with Mastra's Memory primitivebugSomething isn't workingdiscordFor issues created from Discord discussions.effort:mediumimpact:hightrio-tnt

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions