Repository navigation
refactor(auto-reply): normalize inbound text once - #113179
Merged
Merged
Conversation
steipete
marked this pull request as ready for review
July 24, 2026 00:00
steipete
force-pushed
the
steipete/simplify-w5-inbound-text
branch
from
July 24, 2026 00:11
4b5f576 to
963c04e
Compare
Contributor
Author
|
Maintainer decision: accept the additive canonical Plugin SDK context contract in this PR. The supported boundary is:
Redacted runtime proof on exact head This covers ClawSweeper's two rank-up moves: inspectable post-fix runtime evidence for legacy-only/canonical/empty-canonical plugin contexts, and explicit maintainer acceptance of the compatibility contract. Exact-head CI run 30055493042 and Testbox changed-gate run 30055521842 are green. |
Contributor
Author
|
Merged via squash.
|
github-actions Bot
pushed a commit
to Desicool/openclaw
that referenced
this pull request
Jul 24, 2026
* refactor(auto-reply): canonicalize inbound text once * chore(plugin-sdk): refresh API baseline * refactor(auto-reply): narrow finalized template context * test(auto-reply): keep runner fixtures structurally compatible * fix(auto-reply): guard optional post-command agent text * fix(auto-reply): finalize intercepted gateway context * fix(ci): register iOS release planner entries
3 tasks done
scribe-dandelion-cult
added a commit
to karmaterminal/openclaw
that referenced
this pull request
Oct 3, 2026
Block: userText fallback chain in agent-runner-result-complete.ts (drift residue). Home: restored to upstream (drift residue). 2273ef6 widened buildReplyDiagnosticsPayload's userText to commandText || agentText || CommandBody || RawBody || BodyForAgent || Body. Upstream canonicalized inbound text once in 0dd9dcd (openclaw#113179), removing those raw-body fallbacks, and 56da574 (openclaw#138695) set this site to commandText || agentText. Restore upstream's expression; the surrounding continuation change (skip diagnostics for silent continuations) stays. Refs #1418 Co-Authored-By: Claude Opus 5.5 <[email protected]>
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
The inbound reply flow repeatedly selected text from overlapping legacy fields such as
BodyForCommands,CommandBody,RawBody,Transcript,BodyStripped, andBody. Different consumers could therefore make different choices for command parsing, prompt construction, session state, or ACP dispatch from the same message context.Why This Change Was Made
finalizeInboundContextnow normalizes inbound text once into canonicalcommandText,agentText, andrawTextfacts. Internal reply, directive, session, prompt, and ACP paths consume those facts directly, while the shipped uppercase fields remain compatibility projections at the public SDK boundary, following the finalized-context convention established by #113042.MsgContextgains additive canonical fields, but no persisted session row, Gateway protocol schema, or other wire schema is changed. Public legacy fields are not removed. A private non-enumerable finalization marker prevents boundary adapters from reinterpreting authoritative canonical values, including empty strings.Collision note: #111301 and #112833 are both still open and touch
get-reply-run.ts/ its media-only suite. This branch preserves their neighboring behavior and was semantically rebased onto currentmainbefore proof.CI merge-tree repair: two iOS release-planner commits landed on
mainafter the first exact-head proof but omitted the new CLI scripts from Knip's root model and its tooling-shard test from two routing expectations. This PR includes that small registration/test repair because the unrelated redmainstate blocked the merge gate.User Impact
No intentional user-visible feature change. Commands, directives, prompts, queued turns, and plugin-created contexts now use one consistent normalized text interpretation, reducing drift and making deprecated alias precedence an ingress concern rather than a per-consumer concern.
Evidence
963c04ec8e6src/auto-replysuite on Blacksmith Testbox run 30053560284: 4,467 tests green across three routed shards (738 + 41 + 3,688), includingget-reply-run.media-only.test.ts101/101 and directive/session/templating coverage.git diff --checkand regenerated Plugin SDK API baseline check: clean.