The button could not be clicked whenever the editor was currently not focused. This PR fixes this and also registers the action on a more global level, similar to how this is done for all the other agent actions. Release Notes: - Fixed an issue where the `Expand message editor` button would not work in agent threads if the message editor was not focused.