Skip to content

[codex] Delete tool handler plan indirection#21427

Merged
pakrym-oai merged 7 commits into
mainfrom
pakrym/delete-tool-handler-kind
May 7, 2026
Merged

[codex] Delete tool handler plan indirection#21427
pakrym-oai merged 7 commits into
mainfrom
pakrym/delete-tool-handler-kind

Conversation

@pakrym-oai
Copy link
Copy Markdown
Collaborator

Why

The spec split in the parent PR still left an intermediate registry plan that recorded ToolHandlerKind values and translated them into concrete handlers later. That kept tool registration dependent on static enum bookkeeping instead of registering handlers from the same code that assembles their specs.

What Changed

  • Make build_tool_registry_builder register concrete handlers directly while adding specs.
  • Add small ToolRegistryBuilder helpers for spec augmentation and nested code-mode inspection.
  • Remove ToolHandlerKind, ToolHandlerSpec, and ToolRegistryPlan.
  • Update spec-plan tests to assert against the built ToolRegistry instead of static handler descriptors.

Validation

  • cargo check -p codex-core
  • cargo test -p codex-core tools::spec_plan::tests
  • cargo test -p codex-core tools::spec::tests
  • just fix -p codex-core

Base automatically changed from pakrym/tool-handler-specs-pr1 to main May 6, 2026 22:40
pakrym-oai added 3 commits May 6, 2026 15:47
…ndler-kind

# Conflicts:
#	codex-rs/core/src/tools/spec.rs
#	codex-rs/core/src/tools/spec_plan.rs
#	codex-rs/core/src/tools/spec_plan_tests.rs
#	codex-rs/core/src/tools/spec_plan_types.rs
@pakrym-oai pakrym-oai marked this pull request as ready for review May 6, 2026 23:54
@pakrym-oai pakrym-oai requested a review from a team as a code owner May 6, 2026 23:54
@pakrym-oai pakrym-oai merged commit e394625 into main May 7, 2026
26 of 27 checks passed
@pakrym-oai pakrym-oai deleted the pakrym/delete-tool-handler-kind branch May 7, 2026 03:36
@github-actions github-actions Bot locked and limited conversation to collaborators May 7, 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