Skip to content

Revert "Revert "Overhaul shell detection and centralize command generation for unified exec""#6607

Merged
pakrym-oai merged 6 commits intomainfrom
revert-6606-revert-6577-pakrym/shell-experiments
Nov 14, 2025
Merged

Revert "Revert "Overhaul shell detection and centralize command generation for unified exec""#6607
pakrym-oai merged 6 commits intomainfrom
revert-6606-revert-6577-pakrym/shell-experiments

Conversation

@pakrym-oai
Copy link
Copy Markdown
Collaborator

Reverts #6606

…ents

# Conflicts:
#	codex-rs/core/src/unified_exec/mod.rs
… and instantiation

Refactor shell path detection and shell constructors to accept an optional explicit shell path. Update functions and internal logic to use the provided path if available, improving flexibility for custom shell locations. Adjust related tests and code paths to match new signatures.
- Use `ends_with` instead of `assert_eq!` for shell paths to support symlinks and variations
- Consolidate Windows-specific tests and guard them with runtime `cfg!(windows)` checks
- Update call to `get_shell` to include required argument
- Remove redundant test module separation
@pakrym-oai pakrym-oai enabled auto-merge (squash) November 14, 2025 00:35
@pakrym-oai pakrym-oai disabled auto-merge November 14, 2025 00:45
@pakrym-oai pakrym-oai merged commit 7b027e7 into main Nov 14, 2025
24 checks passed
@pakrym-oai pakrym-oai deleted the revert-6606-revert-6577-pakrym/shell-experiments branch November 14, 2025 00:45
@github-actions github-actions Bot locked and limited conversation to collaborators Nov 14, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant