Merged
Conversation
Collaborator
Author
|
Implemented the built-in launcher ownership fix on this PR head ( What changed:
Validation run on this head:
Embedded OpenClaw proof:
Review / comments / CI:
What was not tested locally:
|
Collaborator
Author
|
Landed via temp rebase onto main.\n\n- Gate: validation completed for this repo's change scope\n- Land commit: 1d5d8d5\n- Merge commit: 1d61d4b\n\nThanks @dutifulbob! |
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.
What changed
acpxruntime codeAgentStartupErrorwhen an ACP child exits before initialize completesWhy
A real embedded OpenClaw Claude failure came from launcher ownership drift. The OpenClaw gateway was running on Node 22, but the Claude ACP child was getting launched under Node 18 through the old launcher path and crashing during startup.
The fix is to make
acpxthe single source of truth for built-in adapter launch behavior. That keeps downstream embeddings from redefining built-in launch defaults, keeps installed adapters on the parent Node runtime, and surfaces pre-initialize child exits as explicit startup failures instead of silent hangs.Validation
pnpm run typecheckpnpm run check:docspnpm run buildpnpm run build:test && node --test dist-test/test/agent-registry.test.js dist-test/test/client.test.jsnode dist/cli.js --approve-all --timeout 120 claude exec "Reply with exactly ACPX_CLAUDE_BRIDGE_OK and nothing else."node dist/cli.js --approve-all --timeout 120 codex exec "Reply with exactly ACPX_CODEX_BRIDGE_OK and nothing else."Embedded proof
node_modules/acpx -> /home/bob/repos/acpxclaude-1ACP binding and sent a fresh Discord probeI am Claude, an AI assistant made by Anthropic.Follow-up
This keeps the temporary ACPX-owned npm bridge fallback for missing adapters. The longer-term end state is ACPX-owned explicit adapter materialization and direct launch without implicit
npx-style behavior.