Thank you for posting the solution! I got absolutely stuck in the Agent Mode window on my Windows machine this morning too. Even when I used your solution, it took me back to the IDE and prompted me to choose a project. When I clicked on the project, it only took me back to the Agent Mode window again.
It took a long series of closing the Agent Mode window, trying to click on the project, and re-navigating to the project through the Open Folder button to finally get my code open in the Editor… I’m sure not exactly sure how I finally got back. I just know I won’t be opening Agent Mode again for a while.