They seem to only work for the current situation you are in. For example, if you are attacking the Yor, and you put a bunch of your ships on auto-attack,, also taking into account you can see some Yor ships on your screen...then your own ships will go and attack them, and they will continue to do so until you can no longer see anymore Yor ships. Once you could no longer see any Yor ships, then your ships turn back to you for their next command, since there would no longer be anymore enemy ships left to destroy.
I have found this to happen a lot as well with survey ships. I'll put them on suto-survey, but once no more anomalies can be seen on the map, then your survey ship will turn back over to your command, despite that there could be hundreds of more anomalies out there. If it doesn't know they exist, then it can carry out the auto-task you assigned it.
~SDC~