terminal_view: Don't try home_dir when working locally (#53071)

When opening a remote session, sometimes you get a message:

    /bin/bash: line 1: cd: /Users/pep: No such file or directory

which suggests that that the local home dir (/Users/pep) is used for the
remote terminal session, where it should be something like /home/ubuntu.

Release Notes:

- Fixed remote terminals incorrectly trying to change to a local home
directory.
aa14c4201bSergei Shulepov committed on 4/21/2026, 7:30:07 AM· committed by GitHubparenta62ae57
3 files changedLine totals unavailable