Hostname part of cwd (OSC 7) is ignored
@egmontkob
Submitted by Egmont Koblinger Link to original bug (#709055)
Description
As per bug 675987 comment 9 (following the link there): "You should also include the hostname so Terminal can determine whether it's a local directory; Terminal will avoid using it as the current working directory if it's from a different host."
vte.sh puts the hostname in the URI but g-t doesn't check it against the actual hostname. This means that you ssh to a remote host, change to /etc there and open a new tab, you'll find yourself in localhost's /etc. I think that in accordance with the quoted text above (I can't check Mac Terminal's actual behavior) it shouldn't be like this.
Version: 3.10.x