There are two possible reasons
1. An engine message I'm not replicating
2. A message from another mod that's not using this mod's interface and instead directly printing to chat which unavoidably will get cleared away.
If it's just a message a player is sending, then I might have a bug in the friendly forces shared chat logic, which hasn't been well tested. Otherwise, I'm tempted to just blame the other mod for not being compatible with mine (which is likely since you have to go out of your way to be compatible)