Skip to content

Commit 89b3b3d

Browse files
Copilotsawka
andcommitted
Remove DNS lookup fallback from PowerShell OSC 7
Co-authored-by: sawka <2722291+sawka@users.noreply.github.com>
1 parent 5e33cfe commit 89b3b3d

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

pkg/util/shellutil/shellintegration/pwsh_wavepwsh.sh

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,14 +21,11 @@ function Global:_waveterm_si_blocked {
2121
function Global:_waveterm_si_osc7 {
2222
if (_waveterm_si_blocked) { return }
2323

24-
# Get hostname with fallback chain
24+
# Get hostname (allow empty for file:/// format)
2525
$hostname = $env:COMPUTERNAME
2626
if (-not $hostname) {
2727
$hostname = $env:HOSTNAME
2828
}
29-
if (-not $hostname) {
30-
$hostname = [System.Net.Dns]::GetHostName()
31-
}
3229

3330
# Percent-encode the raw path as-is (handles UNC, drive letters, etc.)
3431
$encoded_pwd = [System.Uri]::EscapeDataString($PWD.Path)

0 commit comments

Comments
 (0)