You’d think if the KGB was that far-sighted they would have foreseen the collapse of their system.
Remember the KGB was a group that was convinced that all innovation in the US economy came from some secret site (probably Cheyenne Mountain!) in the Midwest to Far West. They spent a lot of time and effort looking for it. It was like the Spanish looking for El Dorado! Communist ideology demanded that it exist (innovation couldn’t happen spontaneously! ) therefore it had to exist!
Point of the above the KGB was a determined adversary but they weren’t anywhere near all-knowing. The GRU actually had more sense, being a military intelligence organization. They didn’t have a ideological filter to maintain like the KGB did. Of the two the GRU was the more dangerous, KGB was always 80% inward for regime maintenance 20% outward Intel collect, GRU was always primarily outward, but the GRU answered to the KGB. Anyway all of this is history now.