I think you've got the hard part beat...you KNOW you have the self-sabotage gene and are wary of it. You're already ahead in this game, just by knowing and admitting it to yourself.
I'm only 4.5 mos out, so no expert, but I am a champion "bored eater" and I've had to come up with ways to combat that tendency. First, I get a glass of Water and drink it. I often ate, thinking I was hungry, instead of recognizing that I was actually thirsty. Second, commit to an activity that you can do in lieu of eating. I'm lucky that I have a treadmill in my basement, so after I drink the water and I still think I need food, I go walk a mile on the treadmill. At that point, I'm near the laundry, so that burns up a bit more time...I try to occupy myself and wait for the urge to pass. If the above fail, I have sugar-free popsicles in my freezer at all times (the tropical flavors are MUCH better than the regular ones). 15 calories for one pop, it's cold and sweet and generally finishes off my cravings. And btw, I have no REAL hunger yet, this is all head hunger. It's a bear sometimes.
The key is being cognizant and then being mindful in your subsequent behavior. And you've got that halfway nailed Good luck with your surgery, I'll be looking for your posts once you're on the Loser's Bench with us!