Repository navigation
fix: stop Code Mode after tool reply decoding runs out of memory - #188023
Merged
Merged
Conversation
Contributor
|
🦞👀 Pull request received. I will update this pull request when review starts. |
vincentkoc
marked this pull request as ready for review
October 30, 2026 01:38
Member
Author
|
@clawsweeper review |
Contributor
|
🦞👀 Re-review progress:
|
Member
Author
|
Merged via squash.
|
github-actions Bot
pushed a commit
to Desicool/openclaw
that referenced
this pull request
Oct 30, 2026
amittell
pushed a commit
to amittell/openclaw
that referenced
this pull request
Nov 16, 2026
…openclaw#188023) (cherry picked from commit 9ca944e)
amittell
added a commit
to amittell/openclaw
that referenced
this pull request
Nov 16, 2026
Alex, room openclaw#620. Of the 72 11.3..11.4 commits the census counted as production changes, six main fixes are ported: openclaw#187499, openclaw#187653, openclaw#188023, openclaw#195400, openclaw#196297 and openclaw#197960. PORTING-NOTES.md, "The 72 11.4 repairs reviewed against the carry", records each deferral with its reason, the two UNSURE outcomes, and the M4 qualification.
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
Fixes Code Mode silently treating a tool result as a string and running later tools when QuickJS runs out of memory while decoding that result.
User Impact
The affected cell now fails visibly and stops subsequent effects. The original tool may already have executed; this change does not roll back completed tools. No configuration, default, dependency, or migration changes.
Why This Change Was Made
The shared reply decoder caught every JSON parsing failure and resolved the tool promise with raw JSON text. All production reply producers encode JSON, so the fallback violated the result contract. Let the existing checked worker settlement terminate the cell on decoding failure.
The fix removes six net production lines. Regressions cover public exec completion and delivery after an explicit public checkpoint, exact-once tool execution, suppression of a later sentinel tool, cleanup, and fresh-cell recovery. Existing guest-caught allocation OOM behavior remains covered.
Evidence
{ array: false, length: 1500001 }and ran the sentinel tool in both routes. Both unchanged regression cases fail against the original decoder.05fa4fc7d8105cf1b6d52ab205b05d7a7baa90ea, tree9e6d5ffc6cf9818ecb658c704c487f0d1e52a6fa: 91 tests passed across QuickJS integration, Node/QuickJS parity, failure phases, and reply inbox accounting. Targeted typecheck and lint passed on the same source; formatting passed.tbx_01m656zcsyx8kccr0w5wsfkdwr, with native command exit 0. The holder workflow may show cancelled after lease cleanup.scoped-clean, no actionable findings. Reviewed the local fix against7fdbd694e6723bdc9e3baa6b6df9fba9b5501f23; transferred the identical three-file patch onto pinned mainf126f05fd9521e2977f2b7921ff49522fde0b552. The reviewed decoder/caller contexts are unchanged across those bases. Local ClawSweeper has no clean runner checkout; hosted review follows the maintainer fallback route.