Skip to content

[codex] Remove unused legacy shell tools#22246

Merged
pakrym-oai merged 11 commits into
mainfrom
pakrym/delete-local-shell-container-exec-tools
May 13, 2026
Merged

[codex] Remove unused legacy shell tools#22246
pakrym-oai merged 11 commits into
mainfrom
pakrym/delete-local-shell-container-exec-tools

Conversation

@pakrym-oai
Copy link
Copy Markdown
Collaborator

@pakrym-oai pakrym-oai commented May 12, 2026

Why

Recent session history showed no active use of the raw shell, local_shell, or container.exec execution surfaces. Keeping those handlers/specs wired into core leaves duplicate shell execution paths alongside the supported shell_command and unified exec tools.

What changed

  • Removed the raw shell handler/spec and its ShellToolCallParams protocol helper.
  • Removed the legacy local_shell and container.exec handler/spec plumbing while preserving persisted-history compatibility for old response items.
  • Normalized model/config default and local shell selections to shell_command.
  • Pruned tests that exercised removed raw-shell/local-shell/apply-patch variants and kept coverage on shell_command, unified exec, and freeform apply_patch.

Verification

  • git diff --check
  • cargo test -p codex-protocol
  • cargo test -p codex-tools
  • cargo test -p codex-core tools::handlers::shell
  • cargo test -p codex-core tools::spec
  • cargo test -p codex-core tools::router
  • cargo test -p codex-core active_call_preserves_triggering_command_context
  • cargo test -p codex-core guardian_tests
  • cargo test -p codex-core --test all shell_serialization
  • cargo test -p codex-core --test all apply_patch_cli
  • cargo test -p codex-core --test all shell_command_
  • cargo test -p codex-core --test all local_shell
  • cargo test -p codex-core --test all otel::
  • cargo test -p codex-core --test all hooks::
  • just fix -p codex-core
  • just fix -p codex-tools

@pakrym-oai pakrym-oai changed the title [codex] Remove legacy local shell tools [codex] Remove unused legacy shell tools May 12, 2026
…hell-container-exec-tools

# Conflicts:
#	codex-rs/core/src/tools/handlers/shell.rs
#	codex-rs/core/src/tools/handlers/shell/container_exec.rs
#	codex-rs/core/src/tools/handlers/shell/local_shell.rs
#	codex-rs/core/src/tools/handlers/shell/shell_handler.rs
…hell-container-exec-tools

# Conflicts:
#	codex-rs/core/src/tools/handlers/shell/container_exec.rs
#	codex-rs/core/src/tools/handlers/shell/local_shell.rs
#	codex-rs/core/src/tools/handlers/shell/shell_handler.rs
#	codex-rs/core/src/tools/router.rs
#	codex-rs/core/src/tools/spec_plan.rs
@pakrym-oai
Copy link
Copy Markdown
Collaborator Author

@codex review this

@pakrym-oai pakrym-oai marked this pull request as ready for review May 13, 2026 01:56
@pakrym-oai pakrym-oai requested a review from a team as a code owner May 13, 2026 01:56
…hell-container-exec-tools

# Conflicts:
#	codex-rs/core/src/function_tool.rs
#	codex-rs/core/src/tools/context.rs
#	codex-rs/core/src/tools/handlers/shell/container_exec.rs
#	codex-rs/core/src/tools/handlers/shell/local_shell.rs
#	codex-rs/core/src/tools/handlers/shell/shell_handler.rs
#	codex-rs/core/src/tools/router.rs
#	codex-rs/core/tests/suite/tools.rs
@pakrym-oai pakrym-oai enabled auto-merge (squash) May 13, 2026 16:42
@pakrym-oai pakrym-oai merged commit 83decfa into main May 13, 2026
27 checks passed
@pakrym-oai pakrym-oai deleted the pakrym/delete-local-shell-container-exec-tools branch May 13, 2026 16:43
@github-actions github-actions Bot locked and limited conversation to collaborators May 13, 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