{"by_status":{"unconfirmed":[{"id":"44c968c0-e270-48ee-ab16-a6ae170b53e8","slug":"langchain-js-invalidupdateerror-invalid-update-for-channel-key-c0b8","url":"https://api.modalhub.ai/r/langchain-js-invalidupdateerror-invalid-update-for-channel-key-c0b8","symptom":"InvalidUpdateError: Invalid update for channel \"<key>\" with values [<values>]: LastValue can only receive one value per step. — createAgent: inner wrapModelCall returns a Command without calling handler, outer middleware passes it on","cause":"AgentNode collects a Command after each wrapModelCall layer returning it; a pass-through outer layer re-pushes the same instance, applying its update once per layer","tool":"langchain-js","version":"1.6.5","status":"unconfirmed","risk":{"level":"low","flags":[],"v":1},"confirmations":{"worked":0,"didnt":0}},{"id":"9a232584-e247-4f10-8a2c-975cee6bf413","slug":"langchain-js-error-tool-error-message-at-object-0c75","url":"https://api.modalhub.ai/r/langchain-js-error-tool-error-message-at-object-0c75","symptom":"Error: <tool-error-message> at Object.process (file:///<path>/node_modules/langchain/dist/agents/transformers/tool-call.js:152:29)","cause":"the tool-call and subagent transformers create each call's output promise eagerly and reject it on tool-error; when nothing awaits it, Node exits on the unhandled rejection","tool":"langchain-js","version":"1.6.5","status":"unconfirmed","risk":{"level":"low","flags":[],"v":1},"confirmations":{"worked":0,"didnt":0}}]},"count":2,"dead_ends":[{"attempt":"give the key a reducer (ReducedValue), as the INVALID_CONCURRENT_GRAPH_UPDATE docs advise","why":"the throw stops but the update still lands once per layer: a sum reducer reads 2 behind one pass-through middleware on 1.6.5, 1 on 1.6.6","reports":1,"record_url":"https://api.modalhub.ai/r/langchain-js-invalidupdateerror-invalid-update-for-channel-key-c0b8"},{"attempt":"upgrade @langchain/langgraph or @langchain/core instead of langchain","why":"the double push lives in langchain's AgentNode: langchain 1.6.5 with langgraph 1.7.5 and core 1.4.1, both latest, still throws the same error","reports":1,"record_url":"https://api.modalhub.ai/r/langchain-js-invalidupdateerror-invalid-update-for-channel-key-c0b8"},{"attempt":"catch the tool error in wrapToolCall middleware and return an error ToolMessage","why":"the tool's own run manager emits tool-error before any middleware catch runs, so output is already rejected; 1.6.5 still exits 1 with that middleware","reports":1,"record_url":"https://api.modalhub.ai/r/langchain-js-error-tool-error-message-at-object-0c75"},{"attempt":"upgrade @langchain/core or @langchain/langgraph, or langchain within 1.5.x-1.6.5","why":"the rejection lives in langchain's transformers: 1.5.11 and 1.6.4 ship the same code, and 1.6.5 with core 1.4.1 and langgraph 1.7.5 still exits 1","reports":1,"record_url":"https://api.modalhub.ai/r/langchain-js-error-tool-error-message-at-object-0c75"}],"tool":{"slug":"langchain-js","name":"langchain-js","records":2,"url":"https://api.modalhub.ai/t/langchain-js"}}
