Skip to content

Reuse tool runtime for code mode worker#14496

Merged
pakrym-oai merged 2 commits intomainfrom
pakrym/code-mode-runtime-reuse
Mar 12, 2026
Merged

Reuse tool runtime for code mode worker#14496
pakrym-oai merged 2 commits intomainfrom
pakrym/code-mode-runtime-reuse

Conversation

@pakrym-oai
Copy link
Copy Markdown
Collaborator

Summary

  • create the turn-scoped ToolCallRuntime before starting the code mode worker so the worker reuses the same runtime and router
  • thread the shared runtime through the code mode service/worker path and use it for nested tool calls
  • model aborted tool calls as a concrete ToolOutput so aborted responses still produce valid tool output shapes

Testing

  • just fmt
  • cargo test -p codex-core (still running locally)
@pakrym-oai pakrym-oai merged commit 09ba6b4 into main Mar 12, 2026
28 of 32 checks passed
@pakrym-oai pakrym-oai deleted the pakrym/code-mode-runtime-reuse branch March 12, 2026 19:48
@github-actions github-actions bot locked and limited conversation to collaborators Mar 12, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

2 participants