I couldn't find it in the posts or the FAQs, but my apologies if this has been covered before.
Decloaking rules state the ship decloaks immediately before revealing the manoeuvre dial. Advanced sensors states you may perform and action immediately before revealing your manoeuvre dial. Given both are immediately before, is the player able to decide which to do first?
For many actions it won't matter, but being able to barrel roll to the side of an asteroid before decloaking straight ahead is quite different to not being able to decloak straight ahead due to the asteroid.
Also ranges for target locks may be in play too - not within range 3 of Kagi when you elect to target lock another ship first then decloak and are in range of Kagi so would have had to target him instead.