Repository navigation
fix(cli): keep public CA roots for macOS one-shot commands - #112868
Merged
Merged
Conversation
steipete
marked this pull request as ready for review
July 23, 2026 03:52
Contributor
Author
|
Land-ready proof for head
Known proof gaps: none for the bounded CA policy correction. Provider transports remain unchanged; explicit system-CA opt-in and interactive/foreground exclusions are preserved. |
Contributor
Author
|
Merged via squash.
|
github-actions Bot
pushed a commit
to Desicool/openclaw
that referenced
this pull request
Jul 23, 2026
This was referenced Jul 23, 2026
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.
Closes #112862
Related: #89655
Follow-up to #110341
What Problem This Solves
Fixes an issue where macOS one-shot commands disabled Keychain CA loading to avoid a shutdown hang but selected an unconfigured OpenSSL CA store. Valid provider calls could then fail with
UNABLE_TO_GET_ISSUER_CERT_LOCALLYeven though plain Node, curl, and direct provider requests succeeded.Why This Change Was Made
One-shot macOS respawns now use Node's bundled public CA roots instead of
--use-openssl-ca. This retains the original shutdown-hang mitigation—NODE_USE_SYSTEM_CAstays disabled in the child—while ensuring public provider TLS does not depend on a version-manager Node build havingSSL_CERT_FILEconfigured. Explicit--use-system-caremains the opt-in for private roots available only through macOS Keychain.The fix stays in CLI lifecycle ownership. Provider transports and Undici dispatchers continue inheriting the process CA policy and do not gain provider-specific trust exceptions.
User Impact
macOS users can run one-shot provider commands such as
openclaw agent --localwithout losing public TLS trust or hanging at process shutdown. Private enterprise/Keychain roots remain available through the existing explicit system-CA flag.Evidence
UNABLE_TO_GET_ISSUER_CERT_LOCALLY.--use-system-ca: onboarding 0, agent 0,LIVE_OK, no exit timeout.LIVE_OK, no exit timeout.node scripts/run-vitest.mjs src/entry.respawn.test.ts src/cli/gateway-backed-exit.process.test.ts: 29/29 passed.git diff --check: clean.gpt-5.6-sol, xhigh): no accepted or actionable findings.AI-assisted: yes. The root cause and Node/Undici trust-store contracts were reviewed before implementation.