Repository navigation
fix(protocol): make Swift model checks non-mutating - #115793
Merged
Merged
Conversation
vincentkoc
marked this pull request as ready for review
July 29, 2026 09:55
Member
Author
|
Land-ready proof completed for head
No open review threads, no ClawSweeper rank-up moves, and no known proof gaps. |
Member
Author
|
Merged via squash.
|
pull Bot
pushed a commit
to yann0001/openclaw
that referenced
this pull request
Jul 29, 2026
* origin/main: fix(codex): restore connected apps for token-authenticated runs (openclaw#115075) fix(codex): classify hosted search timeouts (openclaw#115837) fix(msteams): keep attachment replies in channel threads (openclaw#94348) fix(telegram): linkPreview:false is ignored on streamed replies (openclaw#114125) fix(protocol): make Swift model checks non-mutating (openclaw#115793) fix(searxng): avoid duplicating search endpoint (openclaw#113661) fix(agents): preserve tool-result middleware identity (openclaw#115821) refactor(meetings): consolidate runtime facades (openclaw#115819)
github-actions Bot
pushed a commit
to Desicool/openclaw
that referenced
this pull request
Jul 30, 2026
* fix(protocol): make Swift drift checks non-mutating * test(protocol): cover core Swift gateway frames * docs(protocol): clarify Swift model update flow
github-actions Bot
pushed a commit
to Desicool/openclaw
that referenced
this pull request
Jul 30, 2026
* origin/main: fix(codex): restore connected apps for token-authenticated runs (openclaw#115075) fix(codex): classify hosted search timeouts (openclaw#115837) fix(msteams): keep attachment replies in channel threads (openclaw#94348) fix(telegram): linkPreview:false is ignored on streamed replies (openclaw#114125) fix(protocol): make Swift model checks non-mutating (openclaw#115793) fix(searxng): avoid duplicating search endpoint (openclaw#113661) fix(agents): preserve tool-result middleware identity (openclaw#115821) refactor(meetings): consolidate runtime facades (openclaw#115819)
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 Problem This Solves
Resolves a problem where Swift gateway model verification rewrote generated files before reporting drift, leaving native contributors with a generic Git diff instead of a direct repair command.
The existing compatibility suite also lacked small envelope-level regressions for the request, response, and event frames consumed by OpenClawKit.
Why This Change Was Made
Adds a non-mutating
protocol:check:swiftcommand and uses it from the existing protocol and pre-push checks. The generator now reports the stale file and the exact regeneration command.Adds focused OpenClawKit regressions for request, response, and event round trips plus additive unknown fields. This intentionally does not add a compatibility manifest, enum policy, generated fixture matrix, or additional release gate.
User Impact
No runtime behavior changes. Native contributors get a clearer generated-model failure and a short documented update flow. Established Swift decoding behavior has focused regression coverage without expanding the release process.
AI-assisted: yes.
Evidence
node --import tsx scripts/protocol-gen-swift.ts --check1and reportspnpm protocol:gen:swiftas the repair command.swift test --package-path apps/shared/OpenClawKit --filter GatewayModelsCompatibilityTests— 10 tests passed.git diff --checkpassed.origin/main: clean, no actionable findings.