i finished the game siding with railroad, so i destroyed the institute. i never took x6-88 (or whatever his name is) as a companion while i was still friends with the institute. after destroying the institute i assumed x6-88 was gone (or at least hostile), so i thought i would never be able again to use him as a companion (and i didnt care much).
now i started to get all companion perks, and while doing that i found x6-88 somewhere in the wasteland (forgot where exactly, he was just standing there). i could interact and speak with him, including telling him to follow me as a companion. so i thought great, he is not lost after all and i can still get his perk by maxing out affection. since then i have him as companion, but he seems to be bugged. he never follows me, he just stands around and talks the same 2-3 sentences when i get near him. sometimes when i fast travel he pops up beside me, even fights if enemies are close, but he does not follow me when i walk away.
so, is he just bugged, or is the fact that i can still take him as companion after destroying the institute already the bug?