Yes, it is intended.
Without dialog.js, we won't have `openDialog` functioning, and we can't see whether we've entered the macro recording mode from the prompt.