[GH-ISSUE #384] Issue after upgrading to 1.8.6 #253

Closed
opened 2026-06-05 17:21:17 -04:00 by yindo · 2 comments
Owner

Originally created by @ajasingh on GitHub (Mar 28, 2026).
Original GitHub issue: https://github.com/langchain-ai/deepagentsjs/issues/384

My app was working properly till 1.8.5 version today and after ugprading to new version to 1.8.6 i starting getting this error

data: {"type":"turn_failed","turnId":"a3a4495a-6dd9-4a03-9a58-a97f733a600e","error":"keyValidator._parse is not a function","conversationId":"c9b805c0-e35c-4b44-9d75-579793bea159","timestamp":"2026-03-28T09:33:51.550Z"}

I am not able to locate from where this error is coming from as not exception is getting logged else where

Here is my packge.json

{
"name": "incident-agent",
"version": "1.0.0",
"type": "module",
"scripts": {
"build": "tsc",
"start": "node dist/service.js",
"start:aiops": "node dist/aiops-mvp/server.js",
"ingest": "node dist/ingest.js",
"ingest:confluence": "node dist/ingestConfluence.js",
"retrieve": "node dist/retreival.js",
"verify": "node dist/verify.js",
"clone": "node dist/Services/changeRequest.js",
"agent": "node dist/agents/test.js",
"eval": "node dist/eval.js",
"test:alert-remediation-tool": "node dist/test/test-alert-remediation-tool.js",
"test:ai-skills-branch": "node dist/test/test-ai-skills-branch.js",
"test:deep-skills-live": "node dist/test/test-deep-skills-live.js",
"test:deep-skills-live-access-request": "node dist/test/test-deep-skills-live-access-request.js",
"test:config-service": "node dist/test/test-config-service.js",
"lint": "echo 1",
"test": "echo 1"
},
"dependencies": {
"@chat-adapter/slack": "4.23.0",
"@chat-adapter/state-memory": "4.23.0",
"@chat-adapter/teams": "4.23.0",
"@hono/node-server": "1.19.11",
"@langchain/community":"1.1.25",
"@langchain/core": "1.1.36",
"@langchain/langgraph-checkpoint-postgres": "1.0.1",
"@langchain/openai": "1.3.1",
"axios": "1.12.2",
"chat": "4.23.0",
"cloud-config-client": "^1.6.2",
"deepagents": "1.8.6",
"hono": "4.10.2",
"html-to-text": "^9.0.5",
"langchain": "1.2.37",
"node-sql-parser": "^4.10.0",
"oracledb": "^6.10.0",
"pg": "8.16.3",
"xlsx": "0.18.5",
"zod": "^3.25.76"
},
"devDependencies": {
"@types/pg": "^8.15.5",
"typescript": "5.9.3"
}
}

Originally created by @ajasingh on GitHub (Mar 28, 2026). Original GitHub issue: https://github.com/langchain-ai/deepagentsjs/issues/384 My app was working properly till 1.8.5 version today and after ugprading to new version to 1.8.6 i starting getting this error data: {"type":"turn_failed","turnId":"a3a4495a-6dd9-4a03-9a58-a97f733a600e","error":"keyValidator._parse is not a function","conversationId":"c9b805c0-e35c-4b44-9d75-579793bea159","timestamp":"2026-03-28T09:33:51.550Z"} I am not able to locate from where this error is coming from as not exception is getting logged else where Here is my packge.json { "name": "incident-agent", "version": "1.0.0", "type": "module", "scripts": { "build": "tsc", "start": "node dist/service.js", "start:aiops": "node dist/aiops-mvp/server.js", "ingest": "node dist/ingest.js", "ingest:confluence": "node dist/ingestConfluence.js", "retrieve": "node dist/retreival.js", "verify": "node dist/verify.js", "clone": "node dist/Services/changeRequest.js", "agent": "node dist/agents/test.js", "eval": "node dist/eval.js", "test:alert-remediation-tool": "node dist/test/test-alert-remediation-tool.js", "test:ai-skills-branch": "node dist/test/test-ai-skills-branch.js", "test:deep-skills-live": "node dist/test/test-deep-skills-live.js", "test:deep-skills-live-access-request": "node dist/test/test-deep-skills-live-access-request.js", "test:config-service": "node dist/test/test-config-service.js", "lint": "echo 1", "test": "echo 1" }, "dependencies": { "@chat-adapter/slack": "4.23.0", "@chat-adapter/state-memory": "4.23.0", "@chat-adapter/teams": "4.23.0", "@hono/node-server": "1.19.11", "@langchain/community":"1.1.25", "@langchain/core": "1.1.36", "@langchain/langgraph-checkpoint-postgres": "1.0.1", "@langchain/openai": "1.3.1", "axios": "1.12.2", "chat": "4.23.0", "cloud-config-client": "^1.6.2", "deepagents": "1.8.6", "hono": "4.10.2", "html-to-text": "^9.0.5", "langchain": "1.2.37", "node-sql-parser": "^4.10.0", "oracledb": "^6.10.0", "pg": "8.16.3", "xlsx": "0.18.5", "zod": "^3.25.76" }, "devDependencies": { "@types/pg": "^8.15.5", "typescript": "5.9.3" } }
yindo closed this issue 2026-06-05 17:21:17 -04:00
Author
Owner

@JadenKim-dev commented on GitHub (Mar 29, 2026):

This issue is caused by a regression in langchain@1.2.37 (PR langchain-ai/langchainjs#10258), not by the deepagents change.

Root cause: langchain-ai/langchainjs#10258 changed import { z } from "zod/v4" to import { z } from "zod" in langchain/dist/agents/nodes/utils.js. In your environment (zod@^3.25.76), this import resolves to the v3 API, so z.object() creates a v3 object. When v4 schemas are passed into it, the v3/v4 internal protocols conflict — v3 calls _parse() on v4 schemas that don't have it, resulting in keyValidator._parse is not a function.

Workaround: Pin langchain to 1.2.36 until the fix is released.

Fix: langchain-ai/langchainjs#10545

<!-- gh-comment-id:4149447413 --> @JadenKim-dev commented on GitHub (Mar 29, 2026): This issue is caused by a regression in `langchain@1.2.37` (PR langchain-ai/langchainjs#10258), not by the deepagents change. **Root cause:** langchain-ai/langchainjs#10258 changed `import { z } from "zod/v4"` to `import { z } from "zod"` in `langchain/dist/agents/nodes/utils.js`. In your environment (`zod@^3.25.76`), this import resolves to the v3 API, so `z.object()` creates a v3 object. When v4 schemas are passed into it, the v3/v4 internal protocols conflict — v3 calls `_parse()` on v4 schemas that don't have it, resulting in `keyValidator._parse is not a function`. **Workaround:** Pin `langchain` to `1.2.36` until the fix is released. **Fix:** langchain-ai/langchainjs#10545
Author
Owner

@christian-bromann commented on GitHub (Mar 30, 2026):

Thanks for stepping in and fixing this @JadenKim-dev 👏 we just released a deepagent version with a fix.

<!-- gh-comment-id:4158364315 --> @christian-bromann commented on GitHub (Mar 30, 2026): Thanks for stepping in and fixing this @JadenKim-dev 👏 we just released a `deepagent` version with a fix.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langchain-ai/deepagentsjs#253