This should use the new iTermWarning class, which will provide a checkbox in the alert to turn off the warning.