Skip to content

[codex] Outline remaining core ToolExecutor handlers - #27302

Closed
anp-oai wants to merge 1 commit into
codex/outline-multi-agent-tool-executor-handlersfrom
codex/outline-remaining-core-tool-executor-handlers
Closed

[codex] Outline remaining core ToolExecutor handlers#27302
anp-oai wants to merge 1 commit into
codex/outline-multi-agent-tool-executor-handlersfrom
codex/outline-remaining-core-tool-executor-handlers

Conversation

@anp-oai

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

Copy link
Copy Markdown
Contributor

Why

ToolExecutor's async_trait usage is a significant contributor to slow debug builds for codex-core unit tests. Removing it makes those builds materially faster, but the direct trait flip is easier to review once large handler bodies are outside ToolExecutor::handle.

Stacked on #27301, this PR finishes the behavior-preserving core handler preparation before the trait change.

What Changed

Outlined the existing ToolExecutor::handle bodies into inherent async handle_call methods for the remaining core handlers that still contained substantial trait-method bodies, including code mode, dynamic, plan, permission, tool search, shell, test-sync, list-install, request-user-input, and write-stdin handlers.

The trait methods still use async_trait and now just delegate to self.handle_call(invocation).await.

Validation

No new tests; this is a behavior-preserving refactor.

@anp-oai
anp-oai force-pushed the codex/outline-remaining-core-tool-executor-handlers branch from ab59a6d to 4e310a8 Compare June 10, 2026 04:01
@anp-oai
anp-oai force-pushed the codex/outline-multi-agent-tool-executor-handlers branch from 8d24241 to 5a4c7c9 Compare June 10, 2026 04:01
@anp-oai
anp-oai force-pushed the codex/outline-remaining-core-tool-executor-handlers branch from 4e310a8 to 8a4f370 Compare June 10, 2026 04:11
@anp-oai
anp-oai force-pushed the codex/outline-multi-agent-tool-executor-handlers branch from 5a4c7c9 to 4c0c14b Compare June 10, 2026 04:11
@anp-oai

anp-oai commented Jun 10, 2026

Copy link
Copy Markdown
Contributor Author

[from Codex]: Collapsed into #27299 after the handler extraction diff became small enough to review as one mechanical prep PR.

@anp-oai anp-oai closed this Jun 10, 2026
@anp-oai
anp-oai deleted the codex/outline-remaining-core-tool-executor-handlers branch June 10, 2026 04:39
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.

1 participant