Support workspace dependency tool calls - #366
Open
josephtesfaye wants to merge 1 commit into
Open
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Introduction
Codex plugins that create or manipulate artifacts—such as spreadsheets, documents, presentations, PDFs, and images—may depend on the managed workspace runtime distributed with Codex. They use the
load_workspace_dependenciesdynamic tool to discover the bundled Node.js, Python, Git, pnpm, and package paths.When Codex runs through
codex-acp, the app server can send this request as anitem/tool/call. Previously, the adapter did not register a handler for that request. As a result, workflows requiring workspace dependencies could fail or stall even though the required runtime was already installed locally.This pull request adds the missing bridge. It handles
load_workspace_dependencies, validates the installed runtime, and returns the paths needed by artifact-oriented plugins. It also returns a useful failure response when the runtime is incomplete or unavailable.Summary
load_workspace_dependenciesdynamic tool calls from Codex app-serverUser impact
After this change, Codex sessions launched through ACP clients can use plugins that depend on the managed workspace runtime without requiring users to locate or configure the bundled dependencies manually.
Existing sessions that do not use
load_workspace_dependenciesare unaffected. If the managed runtime is unavailable, the adapter reports the missing runtime information instead of leaving the dynamic tool request unhandled.Validation
npm run typechecknpm test— 345 passed, 28 skippednpm run bundle:all