Researchers developed a COF-based gas sensor for early detection of electrolyte leakage in lithium-ion batteries, addressing fire risks with high sensitivity.