a56885495e
_redact_cdp_output applied redact_sensitive_text(force=True) to every string in CDP results, including the base64 screenshot/PDF payload of Page.captureScreenshot and Page.printToPDF. The Fernet pattern (gAAAA + base64 alphabet) matches arbitrary spans inside such payloads wherever gAAAA follows a + or /, collapsing them to first6...last4: decoded PNGs came out corrupt (valid header, CRC failures mid-IDAT, no IEND), the persisted full copies in tool_result_storage were redacted too, and vision_analyze then embedded corrupt images that the provider rejected with 400 invalid_image - killing resume sessions with a misleading provider error. Skip redaction for the two binary-payload methods: the payload is binary, not free text, so there is no secret to protect there. Every other method keeps full redaction.