refactor(editor): Refactor AgentModelSelect component (#31679)