That inner monologue is somehow humorous; but wow, you seem to be such a considerate partner!
Now I'm with a woman who's the opposite. She'll come over for the weekend and sit there quietly for 8 hours while I work and the whole time I know she's starving or bored and I feel like a shitty boyfriend. She'll be reading a book or texting her friends and in the back of my mind I'm like, uh, why are you in my house? Like, you could have this much fun in a dentist's waiting room. You think you're not experiencing aloneness but you don't know how to be alone with someone else so we're in this situation where I have a knot in my stomach because all I want to do is work, and you have a knot because you're waiting for me to say something to you. This is not how it was with my ex.
I think maybe if I read way between the lines, you and your bf haven't quite established how to truly be alone together and take care of your own needs (or he hasn't).
On the other hand, this is what it's like to have a pet. The more expensive the pet, the more care it requires. If you're a true nihilist and you don't even enjoy the company, maybe you just enjoy that extra little bit of stress it brings you to have to deal with their problems.
It's true that when my gf or my ex ever had problems, they lit a fire under me and gave me a reason to care; my work became more stressful, but it was in service to something that I finished it. Because there's some other, imminent problem in my life, in the form of another human being who needs my attention. People with children can probably attest to this, although, thank God, I'm not one of them. They say it makes your life seem more meaningful. Occasionally that might be true.
He regularly tells me that he is fine eating one meal a day or not at all, but I still feel the compulsion to make snacks all the time when he's here. He is a big person and needs way more calories than I do to maintain his desired weight. Even though he says he's fine with not eating I see him shoveling down three times as much food as I normally do when we do eat, and then making more rice or popcorn later to top up. It makes me think "Holy crap, poor guy hasn't eaten all day and now he's starved." Which is silly, because of course he can get up and get his own food while we work if he's hungry.
I also have pets, and do enjoy their company. They are quite high maintenance, but they're cats. They come over and lick my head when they want attention and then go back to napping nearby. I could not handle children and am in awe of those who do.
I mean, maybe it's not really a problem. It can be really hard to work and live with someone, and there's always a balance; we perceive that it might be rude to switch into work mode and ignore someone who we know wants to spend quality time, but we only care that it might be rude because we do want to spend quality time. We want these people in our life but we want them on certain terms, and that's okay. The boundaries always shift back and forth a little. As long as you're happy with the time you do give them, I think it's natural.
With my ex, we lived together; my current gf and I have separate places. But we quarantined together through most of 2020, and she was out of work. The pandemic really forced a lot of people who might not be so compatible in terms of their expectations for attention, work habits, sleeping and eating habits, into constant close quarters. Almost all of the unmarried couples I knew split up from 2020 to now (some more than once). I think my relationship has survived this long because we're both very aware of each other's needs - including the need for alone-time and boundaries.
Anyway, it's interesting to hear someone talk about it this way. I don't know too many people in parallel work-from-home/relationship situations. I guess it's really just about communication, and it sounds like you do have that in your relationship.
FYI: That's an ADHD trait, and what you are describing is a common technique to combat executive dysfunction called body doubling[1].
One trait isn't an indication of anything, but a dozen could be; maybe show him this- I wrote up my experience here: https://romankogan.net/adhd
Over half of my committed code has been written at work after hours in complete silence.
[edit] This presumes you are really good at working with random conversation happening around you. To me, it actually helps me focus if there's chatter going on. But it really helps if the chatter is in a language I don't understand well.
The other factor for me is that job searching is not like coding: it's a series of separate tasks/decisions/evaluations, rather than me trying to immerse myself in a problem or system, so interruptions or distractions aren't nearly as costly; I'm not going to go into flow state from job searching. And a lot of the difficulty comes from the emotional aspect, so I found having someone to talk/vent to about it very useful.
Good point about job searching vs coding, I think you're right.
I work better alone. Having someone else there, even if they aren't purposefully distracting me, just adds another tiny bit of awareness: Is he hungry? Is he bored? Does he want coffee? We haven't had lunch - should I cook? I should tidy. I feel like when there's a guest in my house I need to take care of them somehow, and make the place (and myself) presentable. When I'm by myself I can just focus on work, forget to eat for a day, and not bother cleaning my house and nobody will give a crap.
Even when I know he is totally fine fasting all day with me if that's what it takes while we focus, I still get concerned with starving the poor guy while I'm in "the zone". And often he cooks for us as well, which is nice and very appreciated, but then I'm distracted by eating and then thinking about how I should return the favor that evening by preparing dinner. But what if I was going to work through the evening?! You get the idea... I much prefer to be selfishly alone and not think about anyone else's presence.
But my boyfriend seems to be the opposite, and closer to what you're describing. He sometimes likes coming over specifically to work. He says my focus on work during the day helps him focus and stop procrastinating, too. In the end, we compromise. I find a way to still be productive and focus when he's here, and accept that I'll just feel a little bit bad about not paying attention to my visitor.