M
MastraAI21h ago
Guria

Studio crashes retrieving thread ran in network mode with non JSON text output of tool call

I have tools that return string content which is not JSON. It is working well with direct agent execution, but fails when this same agent were called from another using Agent.network(). problematic message:
[{"type":"tool-result","toolCallId":"tooluse_qUaoIDGzSZSEf9aKUiGT8w","toolName":"gitlabRestTool","result":"id: 130801... some text"}]
[{"type":"tool-result","toolCallId":"tooluse_qUaoIDGzSZSEf9aKUiGT8w","toolName":"gitlabRestTool","result":"id: 130801... some text"}]
"dependencies": {
"@ai-sdk/amazon-bedrock": "^3.0.45",
"@ai-sdk/openai-compatible": "^1.0.22",
"@aws-sdk/credential-providers": "^3.914.0",
"@mastra/core": "^0.22.0",
"@mastra/libsql": "^0.16.0",
"@mastra/loggers": "^0.10.17",
"@mastra/mcp": "^0.14.0",
"@mastra/memory": "^0.15.8",
"dotenv": "^17.2.3",
"js-yaml": "^4.1.0",
"zod": "^3.25.76"
},
"devDependencies": {
"@biomejs/biome": "2.2.6",
"@types/js-yaml": "^4.0.9",
"@types/node": "^24.6.2",
"@vitest/coverage-v8": "^3.2.4",
"ai": "^5.0.76",
"mastra": "^0.17.1",
"msw": "^2.11.6",
"typescript": "^5.9.3",
"vitest": "^3.2.4"
}
"dependencies": {
"@ai-sdk/amazon-bedrock": "^3.0.45",
"@ai-sdk/openai-compatible": "^1.0.22",
"@aws-sdk/credential-providers": "^3.914.0",
"@mastra/core": "^0.22.0",
"@mastra/libsql": "^0.16.0",
"@mastra/loggers": "^0.10.17",
"@mastra/mcp": "^0.14.0",
"@mastra/memory": "^0.15.8",
"dotenv": "^17.2.3",
"js-yaml": "^4.1.0",
"zod": "^3.25.76"
},
"devDependencies": {
"@biomejs/biome": "2.2.6",
"@types/js-yaml": "^4.0.9",
"@types/node": "^24.6.2",
"@vitest/coverage-v8": "^3.2.4",
"ai": "^5.0.76",
"mastra": "^0.17.1",
"msw": "^2.11.6",
"typescript": "^5.9.3",
"vitest": "^3.2.4"
}
There is no Tag for Studio still!
No description
1 Reply
Mastra Triager
Mastra Triager20h ago
GitHub
[DISCORD:1430505531717582860] Studio crashes retrieving thread ran ...
This issue was created from Discord post: https://discord.com/channels/1309558646228779139/1430505531717582860 I have tools that return string content which is not JSON. It is working well with dir...

Did you find this page helpful?