My coworker and I worked like a year together at my place. He came around, we drank a coffee together and started working. Like 3-4 hours later, depending on schedule, we took a good 60 minutes+ walk with my dog. We talked project related things sometimes, but it felt never like "we have to talk about work", We were kind of friends so we had lots of other topics. Then back at my place we continued for 2,3 or even 5 hours. We had no issues stopping after 2 hours, but did often way more. We were very productive.
We were a good match, but those breaks outside enjoying life (forced by my habits to go at least 60minutes outside with the dog) helped a lot not burning out and making room in the brain.