They knew before day one. They were told in advance that Clinton’s campaign would be cooking this up.
I believe the opposite. I think the FBI came up with this and other things as their contribution to the effort and told Hillary, use this crap.