Skip to content

Preserve shell-command execution for Windows models - #622

Merged
zemaj merged 1 commit into
just-every:mainfrom
voarsh2:pr/windows-shell-command-20260925
Sep 26, 2026
Merged

zemaj merged 1 commit into
just-every:mainfrom
voarsh2:pr/windows-shell-command-20260925

Conversation

@voarsh2

@voarsh2 voarsh2 commented Sep 25, 2026

Copy link
Copy Markdown

Summary

  • Keep shell_command as the selected tool when the model advertises shell-command support.
  • Preserve the dedicated Windows JSON/function apply_patch tool independently.
  • Avoid downgrading Windows shell execution to the argv-style shell contract when apply_patch is enabled.

Motivation

The Windows-specific tool selection previously forced shell-command-capable models back to the legacy argv-style shell tool whenever apply_patch was enabled.

That caused PowerShell pipelines such as:

Get-ChildItem ... | Select-Object ... | Sort-Object ...

Keeps model-advertised shell behavior consistent across
platforms when the dedicated patch tool is available.

Removes obsolete platform and tool-selection coupling from
the shell selection path and updates its regression test.
@chatgpt-codex-connector

Copy link
Copy Markdown

Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits.
Repo admins can enable using credits for code reviews in their settings.

@zemaj
zemaj merged commit 161bebb into just-every:main Sep 26, 2026
9 checks passed
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