The Blue box was installed as a split relay to charge the hab
battery.
It was disconnected for a reason unknown, but maybe because a different means of charging the hab
battery was installed.
This explains the wiring but not your cab
battery problem.
That could be, but the present cables connected are way too small to carry any charging current.
A digression, that may explain what appears to be a haphazard install. This is a 2016 truck. It was fitted with a demountable camper unit when new, I don't know any details. 18 months before we bought it, the original demountable camper was replaced with a new, larger one (that's when we think the air assist rear suspension was fitted). My speculation is perhaps the original one did not have solar panels and the Victron charger, and the red split charge diode thing used both of it's outputs to charge the truck aux battery and hab battery. That all got changed around a bit with the new camper unit having the solar and the Victron charger.
This thread has meandered a bit while trying to understand what is there. So back to the original problem:
When it is parked for any length, between trips, the solar and Victron maintain the hab battery and cab aux battery, but nothing maintains the starter battery and like most modern vehicles there is constant draw from that for alarm etc so it starts to go flat after a few weeks.
What I need to solve this is something to keep the starter battery maintained during layup. To me the simplest is one of these simple DIY maintenance chargers to trickle charge the starter battery from the cab aux battery. Very simple to make and fit under the bonnet. Something like being discussed here.
https://wildcamping.co.uk/threads/high-performance-diy-battery-maintainer.100567/
One last comment, I think the previous owner knew about the problem. His "solution" He has connected the aux cab battery to a 50A Anderson plug under the bonnet and made a set of jump leads to plug into that. I think he was intending (or did) use it to jump start the truck from the aux battery if the starter battery had gone flat. I would rather prevent it going flat in the first place.