As far as not tripping, it could be a few different reasons. In general, a breaker trips one of two ways.
Thermally When a bi-metallic strip heats up enough, due to the load on the circuit, it will trip the breaker.
Magnetically When there is a dead short on the circuit.
Ambient temperature not only effects load capacity, but increases or decreases sensitivity of devices designed to work within a certain temperature range.
My opinion is that it probably should have tripped given the heat that was created by the bad connection. It could have been that your buses and service entrance cable were acting as a heat sink. But, the breaker was not designed to trip under the conditions that caused this. I have seen and repaired many that did not.
Is this an actual main, or a back-fed branch circuit breaker? An actual main breaker is bolted in the panel as required. Some people will back feed a branch circuit breaker in a main lug only panel and call it the main. Your main breaker carries the entire load of the panel. If some genius installed the wiring in such a way that the wire is applying force to the breaker and this is a back-fed branch circuit breaker, it's very easy to see why it did this in the first place.
You are just rolling the dice every time you re-install a new breaker without replacing damaged buses and wiring if needed. When the wire is heated beyond it's designed limits, the characteristics of the wire is changed. It becomes brittle and hard and is no longer capable of carrying the load it was designed for, as well as becoming a fire hazard. Many times the existing wires can be cut back beyond the damaged section if slack is available, or can become available by re-routing the cable assembly.
It's always best to use a panel with a main breaker, even if it is just a sub panel. Main breakers and branch circuit breakers are designed differently. Main breakers have a higher AIC rating. AIC stands for ampere interrupting capacity. It's the capacity at which the device can open and extinguish the current arc without causing damage to the device.
When a short is created, the voltage in the circuit drops towards 0 volts as the current proportionally increases. The maximum fault current available depends on the source. If the house or building is fed from 25KVa transformer, then theoretically there are 25,000 amps that can instantaniously run through any circuit under fault conditions. The breakers job is to open the circuit before this happens.
This is why sometimes a main will trip even though the branch circuit didn't. Sometimes the branch circuit can trip, but the current has reached a point over the branch circuits aic rating and an arc is produced from one contact to the other and the current continues to flow from one contact to the other through the air.
To make a long story short, replace the panel and any wire damaged.