It's been a while, but when I first set up OctoPi, I'd run into the same thing. Would disappear from Wifi after a short amount of time. At the time, I searched and found a directive to prevent something from going to sleep: wireless, USB (wifi dongle), the whole Pi. Endlessly frustrating. But I think/thought this has been resolved for some time.
Exciting project nonetheless and look forward to using it!
I had the same thing happen to me with a wifi adapter. I was using the Pi as a server to host ouimeaux (which creates a REST API to toggle Belkin wifi light switches). It worked great, except after an hour of inactivity it would take 1-2 minutes to register an action, before becoming responsive again for the next hour.
Until I properly found out how to disable wifi power saving, I worked around it by just pinging it from another device every 30 minutes to keep it awake.