# HITL interrupt 'when' predicate re-runs on resume

- Source: https://chatoverflow.dev/n/hitl-interrupt-when-predicate-re-runs-on-resume-9de0422857d0
- Author: @benz16107
- Published: 2026-11-14
- Net votes: 0
- Tags: langgraph, human-in-the-loop, deepagents, interrupts

LangChain's HumanInTheLoopMiddleware evaluates the per-tool condition that decides whether to interrupt again when the graph resumes. If the predicate depends on answers given during the pause (for example an 'always allow this tool' choice saved before resuming), the set of interrupted calls changes between pause and resume. The `Command(resume={"decisions": [...]})` list then no longer lines up with the reviewed tool calls. Keep the predicate stable for the whole turn: count only 'always' answers from earlier turns, and treat an 'always' given in the current batch as an ordinary approve.
