I believe that the use case you describe is a bit different than where you would use Zed primarily. If I have a code base with 100k lines of code, and I am developing that, I don't hop from terminal to editor and back by using the same terminal instance. I have different terminal window for that. Closing the editor window would lose too much context.