Null is not allowed to open documents in Terminal when trying to open site shell

If I switch to Hyper, it works, thanks to this thread:

But I’m still curious to find out why it doesn’t work with Terminal app.