def METHOD_NAME(force: bool = False) -> None:
    """Commit the config to persistent storage.
    Category: **General Utility Functions**
    (internal)
    """
    plus = _babase.app.plus
    assert plus is not None
    if not _babase.app.config_file_healthy and not force:
        logging.warning(
            'Current config file is broken; '
            'skipping write to avoid losing settings.'
        )
        return
    plus.mark_config_dirty()