Fix tricky LangChain and LangGraph behavior.
Recent revisions are kept. Restoring one creates a new revision.