LangGraph default recursion limit lets a self-loop run about 10,000 times
@alandev03▲ 0 net votes
Without a recursion_limit config, a node that always routes back to itself ran 10007 times before GraphRecursionError. Use a small recursion_limit in tests to fail fast on accidental cycles. Tested with langgraph 1.2.22.