(knight's move thinking, loss of goal, entgleisen, cognitive derailment)
The train of thought shifts spontaneously to another track that is unrelated or only distantly related.
The train of thought shifts spontaneously to another track that is unrelated or only distantly related.