Repository navigation
fix(tokenjuice): preserve Code Mode tool results - #194898
Merged
Merged
Conversation
Contributor
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review endedClawSweeper stopped reviewing this revision because the pull request closed. |
vincentkoc
marked this pull request as ready for review
November 8, 2026 01:14
Contributor
|
vincentkoc
enabled auto-merge (squash)
November 8, 2026 01:16
vincentkoc
disabled auto-merge
November 8, 2026 01:17
Member
Author
|
Merged via squash.
|
github-actions Bot
pushed a commit
to Desicool/openclaw
that referenced
this pull request
Nov 8, 2026
Consume tokenjuice 0.11.0 so normalized Code Mode calls retain their complete tool results. Update the exact dependency pin, generated lockfile and version-specific release-age exception; the upstream adapter owns the fix, with no duplicate middleware guard. Allocate exactly 15 net test lines in tokenjuice-code-mode-results.txt to prove the original failure through the actual packaged middleware: a normalized code/command pair must preserve structured result text and metadata. The shared test-line scalar is unchanged. The regression failed with tokenjuice 0.10.0 and passed at the reviewed candidate with 0.11.0; both Tokenjuice test files passed (8 tests). Native build:ci-artifacts, extension test typecheck, focused lint and formatting passed. The build covers runtime packaging and SDK entry declarations/exports, without full global declaration emission.
This was referenced Nov 9, 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.
What Problem This Solves
Tokenjuice can compact structured Code Mode results when an
execcall's normalizedcommandfield contains JavaScript.Related: vincentkoc/tokenjuice#426
User Impact
Code Mode results retain their text and metadata. Shell-output compaction and exact file-read preservation continue through the existing middleware.
Why This Change Was Made
Consume the released tokenjuice 0.11.0 fix at its owning adapter, with no duplicate guard or production middleware changes. Update the exact dependency pin, generated lockfile, and existing release-age exception; its expiry is seven days after npm publication. Extend the real packaged middleware test with one normalized Code Mode result and a matching 15-line test-budget allocation.
Evidence
git diff --checkpassed.[tokenjuice compacted bash output](1 failed, 1 passed). Restored the test patch before checking out the candidate.review-testspassed both Tokenjuice test files, 8/8 tests. This covers actual packaged Code Mode preservation, shell compaction, exact reads, cache behavior, and existing normalization/error siblings.pnpm build:ci-artifacts,pnpm tsgo:extensions:test, focused native oxlint, and format checks passed. The build covers runtime packaging, built plugin load checks, SDK entry declarations/exports, UI and metadata; full global declaration emission and full release packaging were not run. This change modifies no public API or declaration source.