While I would argue that all excess should be shared with allies by default (there really is no reason for this not to be the case, and it was a setting integrated into the Demo Recorder's chat macro from the start), I would be also be satisfied if this bug were fixed. That is, if you set share metal or share energy slightly below max, all of the excess resource should go to your allies, even if you acquire that resource very quickly, as in the situation above.
I am not a coder, but this seems like it should be a fairly easy thing to fix. Some PLEASE make a patch.
