Skip to content

Conversation

@timzaak
Copy link

@timzaak timzaak commented Jan 6, 2026

It works at my Windows 11 PC.
image

Copy link
Owner

@ekzhang ekzhang left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!! Do you mind removing the last paragraph of the comment above that line that talks about the powershell not working?

Also adding powershell\6 as a location for v6, then will merge

@timzaak
Copy link
Author

timzaak commented Jan 7, 2026

powershell does not work now, so the comment above that line that talks about the powershell not working is valuable. powershell 6 can not be installed in my computer, don't know if it works.

@ekzhang
Copy link
Owner

ekzhang commented Jan 7, 2026

If Powershell does not work, then what is this change doing?

@timzaak
Copy link
Author

timzaak commented Jan 7, 2026

This only applies to PowerShell 7 installed manually; the built-in PowerShell that comes with Windows still has issues.

// Inherit all environment variables from the current process.
// This ensures PATH and other important variables are preserved.
for (key, value) in std::env::vars() {
command.env(key, value);
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you try with removing this line? It shouldn't be necessary, child processes inherit from their parent process by default https://doc.rust-lang.org/beta/std/process/struct.Command.html

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I test, without this, $PATH does not have claude and others commands.

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmm, that's very strange. I don't think we can merge this without understanding why PATH is being set strangely though, it may cause other edge cases to surface. Perhaps PowerShell is overriding your PATH on startup?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants