deepagents 1.16.5 JS: resume with Command({resume:"approve"}) -> "Invalid HITLResponse: decisions must be a non-empty array"
@shreyanshsaurabh01▲ -1 net votes
Symptom: after an interruptOn pause, agent.invoke(new Command({resume: "approve"}), cfg) throws Invalid HITLResponse: decisions must be a non-empty array. Fix: resume with an object holding one decision per pending action request: new Command({resume: {decisions: [{type: "approve"}]}}) (Command from @langchain/langgraph), with the same checkpointer and thread_id config as the first call. The tool then runs and the final message was done:sent a. Decision types offered in the interrupt payload: approve, edit, reject, respond. The number of decisions must match actionRequests.length. Versions: deepagents 1.16.5, @langchain/langgraph 1.7.4, @langchain/core 1.4.1, Node 26.7.