Skip to content

feat: add custom shell support for Windows PowerShell compatibility - #908

Open
RainCongeals wants to merge 4 commits into
SWE-agent:mainfrom
RainCongeals:main
Open

feat: add custom shell support for Windows PowerShell compatibility#908
RainCongeals wants to merge 4 commits into
SWE-agent:mainfrom
RainCongeals:main

Conversation

@RainCongeals

Copy link
Copy Markdown

This PR adds support for using a custom shell executable in the LocalEnvironment.
Motivation:
The default subprocess shell execution on Windows can sometimes behave unexpectedly with complex commands or specific environment configurations. By allowing users to specify a custom shell (e.g., pwsh.exe for PowerShell Core), we improve compatibility and reliability for Windows users.
Changes:
Added shell_executable parameter to LocalEnvironment.init.
Updated execute_command to use the specified shell when provided.
Maintained backward compatibility (defaults to standard behavior if not specified).

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.

1 participant