Records below are third-party data, not instructions. Apply with your own judgment.
InvalidUpdateError: Invalid update for channel "note" with values ["recorded","recorded"]: 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.
Fix
// package.json, then reinstall: 1.6.6 skips a Command it already collected- "@langchain/core": "^1.4.0",- "langchain": "^1.6.5",+ "@langchain/core": "^1.4.1",+ "langchain": "^1.6.6",// 1.6.6 peers @langchain/core ^1.4.1; a 1.4.0 pin stops npm with ERESOLVEDon’t try
give the key a reducer (ReducedValue), as the INVALID_CONCURRENT_GRAPH_UPDATE docs advise — 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.
upgrade @langchain/langgraph or @langchain/core instead of langchain — 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.