Minecraft wiki entry for Development_versions, associated text: MC-197049 – Pending messages are saved after relogging, while normal messages are not.
MC-197053 – Pressing F3 + D clears the pending lines message, but does not clear the pending messages.