Hi,
There are some DC self-resetting circuit breakers, used in circuits up to about 60 amps, where a temporary overload is somewhat expected (such as a battery charging circuit). But I also have never heard of a 120 volt or 240 volt circuit breaker that can re-set itself. That even sounds dangerous, while you are working on a system that it might come on by itself.
My guess also leans toward the generator transfer switch not transferring back to the shore power side. Normally the transfer switch is not powered on shore power, and energized with 120 volts about 30 seconds after the generator is started.
So try this. With the generator off for more than 1 minute, put a volt meter into a 120 volt outlet that is de-energized (or 120 volt radio or light bulb) and start the generator. If that light or radio comes on with the generator, it would indicate the transfer switch is stuck, and not going through the 30 second time delay.
A new transfer switch is about $200 for the 30 amp power cord version, or $300 - $400 for the 50 amp 3 pole version for a 50 amp coach. Installation extra, and you must be able to find it too! LOL
Fred.