Agent keeps getting stuck and can only continue after "Move to background"

I started experiencing this problem for the first time after the 1.2 release.