Refactoring: async, agent, add comments, focus editable before dialog shown.
Refactoring: async, agent, add comments, focus editable before dialog shown. with dist min file