Sorry to hear you're running into that problem. I can definitely see how that would be very frustrating!
Honestly I've never heard of a bug causing that in my years here, and it's been some months since the last update, so my guess is that there's some confusion on your end about the UI. I mean, I assume you're not clicking the "reset" button on a dock with a full queue (which does indeed clear the queue) and I don't think there's any keyboard key you can press to imitate that... but I've also never heard of the game doing this without being asked to do so.
So, to clarify:
1) You're using repeat build, right? You said so, but if it wasn't on the queue would appear gone after running through it once.
2) When you say "then when I go to view another planet it deletes my whole que" do you mean that you go to another planet and then come back to the dock's planet, and the queue is gone? If you're just switching view to another planet then naturally you won't see the dock's queue, because the dock is on a different planet than the one you're looking at. The game doesn't consider units on another planet to be selected, so it doesn't display their menu/queue, etc.