Skip to content

make exec_shell configurable#264

Merged
klieret merged 2 commits intoSWE-agent:mainfrom
GerryLon:feature/entrypoint-configurable
Sep 26, 2025
Merged

make exec_shell configurable#264
klieret merged 2 commits intoSWE-agent:mainfrom
GerryLon:feature/entrypoint-configurable

Conversation

@GerryLon
Copy link
Contributor

@GerryLon GerryLon commented Sep 26, 2025

@klieret klieret requested a review from Copilot September 26, 2025 15:12
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR makes the shell executable configurable in Docker deployments by adding an exec_shell configuration option. This allows users to customize which shell and arguments are used when executing commands in Docker containers.

  • Added a configurable exec_shell field to DockerDeploymentConfig with sensible defaults
  • Updated command execution to use the configured shell instead of hardcoded /bin/sh -c

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
src/swerex/deployment/config.py Added exec_shell configuration field with default value ["/bin/sh", "-c"]
src/swerex/deployment/docker.py Updated _get_swerex_start_cmd to use configurable shell from config instead of hardcoded values

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

Copy link
Member

@klieret klieret left a comment

Choose a reason for hiding this comment

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

sgtm, easy enough. Thanks!

@klieret klieret merged commit a25feea into SWE-agent:main Sep 26, 2025
3 of 4 checks passed
lurf21 added a commit to lurf21/SWE-ReX that referenced this pull request Jan 30, 2026
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.

3 participants