[PR #10045] Disable path validation, add warning #27873

Open
opened 2026-01-31 09:24:48 +00:00 by claunia · 0 comments
Owner

Original Pull Request: https://github.com/microsoft/terminal/pull/10045

State: closed
Merged: Yes


This is primarily being done to unblock #9223.

Prior to this, we'd validate that the user's startingDirectory existed
here. If it was invalid, we'd gracefully fall back to %USERPROFILE%.

However, that could cause hangs when combined with WSL. When the WSL
filesystem is slow to respond, we'll end up waiting indefinitely for
their filesystem driver to respond. This can result in the whole terminal
becoming unresponsive.

Similarly, with #9223 we want users to be able to specify WSL paths in a
profile, but this bit of validation logic totally prevents that from working,
because it'll just replace the path with %USERPROFILE%.

If the path is eventually invalid, we'll display warning in the
ConptyConnection, when the process fails to launch.

Closes #9541
Closes #9114

image

**Original Pull Request:** https://github.com/microsoft/terminal/pull/10045 **State:** closed **Merged:** Yes --- This is primarily being done to unblock #9223. Prior to this, we'd validate that the user's `startingDirectory` existed here. If it was invalid, we'd gracefully fall back to `%USERPROFILE%`. However, that could cause hangs when combined with WSL. When the WSL filesystem is slow to respond, we'll end up waiting indefinitely for their filesystem driver to respond. This can result in the whole terminal becoming unresponsive. Similarly, with #9223 we want users to be able to specify WSL paths in a profile, but this bit of validation logic totally prevents that from working, because it'll just replace the path with `%USERPROFILE%`. If the path is eventually invalid, we'll display warning in the `ConptyConnection`, when the process fails to launch. Closes #9541 Closes #9114 ![image](https://user-images.githubusercontent.com/18356694/117318675-426d2d00-ae50-11eb-9cc0-0b23c397472c.png)
claunia added the pull-request label 2026-01-31 09:24:48 +00:00
Sign in to join this conversation.
No Label pull-request
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#27873