Repository navigation
fix(codex): expose selectable node exec - #104198
Merged
Merged
Conversation
Contributor
Author
|
Merged via squash.
|
github-actions Bot
pushed a commit
to Desicool/openclaw
that referenced
this pull request
Jul 11, 2026
* fix(codex): expose selectable node exec * chore: defer Codex node release note
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.
Addresses the mixed-session node-exec portion of #101961.
What Problem This Solves
Codex-backed agent sessions using the default
tools.exec.host=autokept Codex native shell access but omitted OpenClaw's node-capable exec tool. An agent could discover a connected Mac node, but its only shell tool ran on the app-server host; directnodes invoke system.runcorrectly rejected the request and instructed the unavailableexec host=nodepath.Why This Change Was Made
The Codex plugin already owns
node_execandnode_processdynamic-tool adapters for whole-sessionhost=noderouting. This change reuses that owner boundary for mixed sessions whenautoresolves to the Gateway with no active OpenClaw sandbox.The adapter forces
host=node, strips model-suppliedsecurityandaskoverrides, and preserves configured node bindings. Unbound sessions expose only the node name/id selector; bound sessions hide and pin it. Explicitgatewayrouting and sandbox-backedautosessions do not gain the node surface.User Impact
Codex agents can keep native local shell access and choose a paired Mac, Windows, or CLI node for individual commands through
node_exec. Existing OpenClaw node approval, allowlist, connectivity, andsystem.run.preparepolicy remain authoritative.Evidence
system.run, but the Codex agent had only nativebash; direct node invocation failed closed as reserved, and the agent could not rununameon the node.node_execrequires no protocol change.corepack pnpm test extensions/codex/src/app-server/dynamic-tool-build.test.ts— 54 passed.OPENCLAW_CHECK_CHANGED_REMOTE_CHILD=1 OPENCLAW_CHANGED_LANES_RAW_SYNC=1 corepack pnpm check:changed— passed extension/test typechecks, lint, policy guards, and import-cycle checks.