Skip to content

core: keep remote exec on reported shell#28983

Merged
anp-oai merged 2 commits into
mainfrom
codex/remote-exec-default-shell
Jun 18, 2026
Merged

core: keep remote exec on reported shell#28983
anp-oai merged 2 commits into
mainfrom
codex/remote-exec-default-shell

Conversation

@anp-oai

@anp-oai anp-oai commented Jun 18, 2026

Copy link
Copy Markdown
Collaborator

Why

We need to avoid resolving shells on the app-server's host for remote environments. We might make it possible to do fancier shell resolution from remote envs but for now just require the model to produce a shell that matches the environment's default.

This gets my e2e demo working for shell commands after #28854 moved shell resolution to PathUri and caused remote envs to hit the fallback shell when the requested shell wasn't available on the host.

What

Remote exec_command calls now accept only the environment's reported default shell name or exact path, and execute with that reported path. Other explicit shells return a concise error. A Wine-backed integration test covers explicit PowerShell execution in the Windows cwd.

@anp-oai anp-oai marked this pull request as ready for review June 18, 2026 21:57
@anp-oai anp-oai requested a review from a team as a code owner June 18, 2026 21:57
@anp-oai

anp-oai commented Jun 18, 2026

Copy link
Copy Markdown
Collaborator Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown
Contributor

Codex Review: Didn't find any major issues. More of your lovely PRs please.

Reviewed commit: a6c0cf8254

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread codex-rs/core/src/tools/handlers/unified_exec/exec_command.rs Outdated
@anp-oai anp-oai enabled auto-merge (squash) June 18, 2026 23:11
@anp-oai anp-oai force-pushed the codex/remote-exec-default-shell branch from 6a086e9 to 9f85d13 Compare June 18, 2026 23:22
@anp-oai anp-oai merged commit 346d2c1 into main Jun 18, 2026
31 checks passed
@anp-oai anp-oai deleted the codex/remote-exec-default-shell branch June 18, 2026 23:39
@github-actions github-actions Bot locked and limited conversation to collaborators Jun 18, 2026
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.

2 participants