Skip to content

OSC 9;9 path seems to be invalid #8930

@jack775544

Description

@jack775544

Environment

Windows build number: Microsoft Windows [Version 10.0.19042.746]
Windows Terminal version (if applicable): 1.6.10272.0

Any other software?
Powershell Core & Powershell 5

Steps to reproduce

I was trying out the new out the new OSC 9;9 reporting in the 1.6 release of the terminal and it seems that when I try to duplicate a pane after setting the path using OSC 9;9 the terminal can never find the location of the path set and shows the error 0x8007010b error.

In my case I have altered my terminal launch profile for powershell to include the -noprofile parameter for easier testing.

Expected behavior

  • Launch Powershell in terminal
  • Run the following
cd 'C:\Program Files\'
"$([char]27)]9;9;`"$($pwd.Path)`"$([char]7)"
  • Run duplicate pane command
  • New pane should open in C:\Program Files

Actual behavior

image

It is important to note that performing the exact same set of commands in ConEmu will correctly open the new pane in Program Files as expected.

Other Notes

Powershell Launch Profile:

{
	"guid": "{574e775e-4f2a-5b96-ac1e-a2962a402336}",
	"hidden": false,
	"name": "PowerShell Core",
	"source": "Windows.Terminal.PowershellCore",
	"commandline" : "C:\\Program Files\\PowerShell\\7\\pwsh.exe -noprofile",
}

Duplicate pane key bind:

{ "command": { "action": "splitPane", "split": "auto", "splitMode": "duplicate" }, "keys": "alt+shift+d" }

Metadata

Metadata

Assignees

No one assigned

    Labels

    Issue-BugIt either shouldn't be doing this or needs an investigation.Needs-Tag-FixDoesn't match tag requirementsNeeds-TriageIt's a new issue that the core contributor team needs to triage at the next triage meetingPriority-1A description (P1)Product-TerminalThe new Windows Terminal.Resolution-Fix-CommittedFix is checked in, but it might be 3-4 weeks until a release.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions