I found myself parse this sentence differently on different occasions,
(a) (I was going to wait) until (we had finished eating), but my thoughts burst from my mouth: ...
(b) I was going to (wait until we had finished eating), but my thoughts burst from my mouth: ...
Knowing that "be going to" could be used for future events, as if it were a tense (is it really a tense?), I think I should parse it as in (a). However, sometimes glancing through it quickly made me parse it as in (b), which in my opinion is a rather logical way to parse.
Perhaps my parsing as in (b) might be influenced from a similar construct, such as:
(c) Her parents had asked her (not to have a boyfriend until she finished the fourth year) and she was still in the third.
Parsing it either way results in a similar meaning, but I wonder.
Should I stick with (a) or (b), or both alternatives are equally acceptable?