fix(macos): use foundationValue when serializing browser proxy POST body#43069
Merged
frankekn merged 2 commits intoopenclaw:mainfrom Mar 11, 2026
Merged
fix(macos): use foundationValue when serializing browser proxy POST body#43069frankekn merged 2 commits intoopenclaw:mainfrom
frankekn merged 2 commits intoopenclaw:mainfrom
Conversation
Contributor
Greptile SummaryThis PR fixes a deterministic SIGABRT crash in Changes:
Notes:
Confidence Score: 5/5
Last reviewed commit: b33b805 |
b33b805 to
2da99f4
Compare
frankekn
added a commit
to ImLukeF/openclaw
that referenced
this pull request
Mar 11, 2026
2da99f4 to
04c33fa
Compare
Contributor
|
Merged via squash.
Thanks @ImLukeF! |
Contributor
hydro13
pushed a commit
to andyliu/openclaw
that referenced
this pull request
Mar 11, 2026
…ody (openclaw#43069) Merged via squash. Prepared head SHA: 04c33fa Co-authored-by: ImLukeF <[email protected]> Co-authored-by: frankekn <[email protected]> Reviewed-by: @frankekn
Treedy2020
pushed a commit
to Treedy2020/openclaw
that referenced
this pull request
Mar 11, 2026
…ody (openclaw#43069) Merged via squash. Prepared head SHA: 04c33fa Co-authored-by: ImLukeF <[email protected]> Co-authored-by: frankekn <[email protected]> Reviewed-by: @frankekn
mrosmarin
added a commit
to mrosmarin/openclaw
that referenced
this pull request
Mar 11, 2026
* main: (49 commits) fix(agents): add nodes to owner-only tool policy fallbacks fix(gateway): propagate real gateway client into plugin subagent runtime fix(gateway): enforce caller-scope subsetting in device.token.rotate fix(terminal): stabilize skills table width across Terminal.app and iTerm (openclaw#42849) fix(models): guard optional model input capabilities (openclaw#42096) macOS/onboarding: prompt for remote gateway auth tokens (openclaw#43100) fix(macos): use foundationValue when serializing browser proxy POST body (openclaw#43069) feat(ios): add local beta release flow (openclaw#42991) docs(changelog): update context pruning PR reference fix(context-pruning): cover image-only tool-result pruning fix(context-pruning): prune image-containing tool results instead of skipping them (openclaw#41789) fix(agents): include azure-openai in Responses API store override (openclaw#42934) fix(telegram): fall back on ambiguous first preview sends fix(telegram): prevent duplicate messages with slow LLM providers (openclaw#41932) Providers: add Opencode Go support (openclaw#42313) fix(sandbox): sanitize Docker env before marking OPENCLAW_CLI (openclaw#42256) macOS: add chat model selector and persist thinking (openclaw#42314) fix: clear pnpm prod audit vulnerabilities fix(build): restore full gate fix(gateway): split conversation reset from admin reset ...
dhoman
pushed a commit
to dhoman/chrono-claw
that referenced
this pull request
Mar 11, 2026
…ody (openclaw#43069) Merged via squash. Prepared head SHA: 04c33fa Co-authored-by: ImLukeF <[email protected]> Co-authored-by: frankekn <[email protected]> Reviewed-by: @frankekn
ahelpercn
pushed a commit
to ahelpercn/openclaw
that referenced
this pull request
Mar 12, 2026
…ody (openclaw#43069) Merged via squash. Prepared head SHA: 04c33fa Co-authored-by: ImLukeF <[email protected]> Co-authored-by: frankekn <[email protected]> Reviewed-by: @frankekn
Ruijie-Ysp
pushed a commit
to Ruijie-Ysp/clawdbot
that referenced
this pull request
Mar 12, 2026
…ody (openclaw#43069) Merged via squash. Prepared head SHA: 04c33fa Co-authored-by: ImLukeF <[email protected]> Co-authored-by: frankekn <[email protected]> Reviewed-by: @frankekn
leozhengliu-pixel
pushed a commit
to leozhengliu-pixel/openclaw
that referenced
this pull request
Mar 13, 2026
…ody (openclaw#43069) Merged via squash. Prepared head SHA: 04c33fa Co-authored-by: ImLukeF <[email protected]> Co-authored-by: frankekn <[email protected]> Reviewed-by: @frankekn
plabzzxx
pushed a commit
to plabzzxx/openclaw
that referenced
this pull request
Mar 13, 2026
…ody (openclaw#43069) Merged via squash. Prepared head SHA: 04c33fa Co-authored-by: ImLukeF <[email protected]> Co-authored-by: frankekn <[email protected]> Reviewed-by: @frankekn
senw-developers
pushed a commit
to senw-developers/va-openclaw
that referenced
this pull request
Mar 17, 2026
…ody (openclaw#43069) Merged via squash. Prepared head SHA: 04c33fa Co-authored-by: ImLukeF <[email protected]> Co-authored-by: frankekn <[email protected]> Reviewed-by: @frankekn
t--becker
pushed a commit
to t--becker/openclaw
that referenced
this pull request
Mar 19, 2026
…ody (openclaw#43069) Merged via squash. Prepared head SHA: 04c33fa Co-authored-by: ImLukeF <[email protected]> Co-authored-by: frankekn <[email protected]> Reviewed-by: @frankekn
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.
Replacement for #41635.
Original contributor: @Effet
This PR preserves the exact original contributor commit on a maintainer-owned rescue branch after the prior rescue PR was removed.
Summary
MacNodeBrowserProxy.makeRequestpassesparams.body?.valuedirectly toJSONSerialization.data(withJSONObject:).AnyCodable.init(from:)stores decoded JSON objects as[String: AnyCodable]internally — a pure Swift struct (__SwiftValue) thatNSJSONSerializationcan't handle, causing anNSInvalidArgumentExceptioncrash (SIGABRT) on every non-GET request with a JSON body.params.body?.foundationValueinstead ofparams.body?.value.foundationValue(already defined inAnyCodable+Helpers.swift) recursively converts[String: AnyCodable]→[String: Any]soJSONSerializationreceives only Foundation-compatible types.Change Type (select all)
Scope (select all touched areas)
Linked Issue/PR
User-visible / Behavior Changes
Mac app no longer crashes when making POST/PUT/PATCH requests through the browser proxy.
Security Impact (required)
Repro + Verification
Environment
Steps
MacNodeBrowserProxy.request)NSInvalidArgumentException: Invalid type in JSON write (__SwiftValue)Expected
Actual
MacNodeBrowserProxy.makeRequestatJSONSerialization.data(withJSONObject:)Evidence
postRequestSerializesNestedBodyWithoutCrashinMacNodeBrowserProxyTests.swift— covers nested dict + array body, was impossible to add before the fix (would crash)Human Verification (required)
foundationValueis the correct converter, added failing→passing testfoundationValuerecursionReview Conversations
Compatibility / Migration
Failure Recovery (if this breaks)
params.body?.valueinMacNodeBrowserProxy.swift:149Risks and Mitigations
foundationValueon an unrecognized type falls through toself.value(the default case) — same behavior as before, so no regression risk.