I just discovered this a moment ago so I'm posting here in case it's something someone else has noticed. When using the feature to have a coupon auto-applied in checkout, the apply coupon button is being clicked on initial checkout page load even when a coupon url parameter was not provided (cookie not present).

This is within the first few lines of the uc_eco_main_form_alter() function in uc_eco_main.module, specifically:

      drupal_add_js('$(document).ready(function() {
        var coupon_button = $("input#edit-panes-coupon-apply");
        coupon_button.click();
      });', 'inline');

This is not correct because it means the apply coupon button will get auto-clicked even when the coupon code field is empty on page load. This will be fixed in the next release. The solution is something as simple wrapping it in a conditional that first checks if the cookie is present:

    if (isset($_COOKIE["coupon"])) {
      drupal_add_js('$(document).ready(function() {
        var coupon_button = $("input#edit-panes-coupon-apply");
        coupon_button.click();
      });', 'inline');
    }

Sorry for the oops :-)

- Matt