Repository navigation
fix: preserve steering after tool-authority checks - #123549
Merged
Merged
Conversation
Contributor
|
🦞👀 Pull request received. I will update this pull request when review starts. |
Contributor
Author
|
Merged via squash.
|
This was referenced Aug 14, 2026
github-actions Bot
pushed a commit
to Desicool/openclaw
that referenced
this pull request
Aug 15, 2026
* fix: preserve authority-bound steering paths * test: preserve heartbeat exports in execution mocks
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 an issue where main CI failed across four Node shards after authority-aware steering changes. The same regressions could make Gateway chat steering fall back to a new turn and could let a non-user embedded steer emit before its transcript listener was installed.
Why This Change Was Made
The captured reply-operation authority now crosses the Gateway message-injection target when the request has no turn-scoped tool bindings, preserving the exact active authority without widening tool-bound requests. Non-user steering skips the asynchronous pending-question claim path so transcript observation is installed synchronously. Test fixtures now use canonical session ownership, complete reply-operation authority contracts, and narrow heartbeat exports.
The repair keeps the new tool-authority safety boundary intact; it does not add retries, weaken assertions, or bypass mismatches.
User Impact
Gateway chat messages can continue steering an eligible active turn instead of unnecessarily starting another turn. Embedded queued steering reliably observes transcript completion and cancellation again.
Evidence
node scripts/run-vitest.mjs src/gateway/server-methods/chat.directive-tags.test.ts— 192 tests passed.node scripts/run-vitest.mjs src/agents/embedded-agent-runner/run/attempt.queue-message.test.ts— 15 tests passed.node scripts/check-changed.mjspassed on Blacksmith Testbox: https://github.com/openclaw/openclaw/actions/runs/31780502502Production LOC: +22/-3 (net +19), required to preserve the active authority binding and synchronous transcript-listener lifecycle. Tests and test support: +41/-11.
Relevant failing main runs: https://github.com/openclaw/openclaw/actions/runs/31776439546, https://github.com/openclaw/openclaw/actions/runs/31776648638, and https://github.com/openclaw/openclaw/actions/runs/31776785997.