Repository navigation
fix(ci): restore chat-update dispatch assertions - #137196
Conversation
Align the update tool and /update exact-call assertions with the shared in-process Gateway actor introduced by #136952. Preserve owner checks, trusted routing, admin scopes, abort propagation, and the update timeout. Reuse Peter Steinberger's two-line fix from commit 0fee3dc in #137041, separated so this CI prerequisite can land independently of its UI and Android changes. Four failures reproduced on main 993ad30. All 50 owner and sibling tests pass after the correction. Production delta: zero lines.
|
🦞👀 Pull request received. I will update this pull request when review starts. |
|
Codex review: needs maintainer review before merge. Reviewed September 3, 2026, 4:52 AM ET / 08:52 UTC. ClawSweeper reviewWhat this changesUpdates the Gateway update-tool and Regression provenancePossible regression — probable (reviewed change; known regression link). No predecessor PR is attributed. Merge readiness✅ Ready for maintainer review Keep open. This precise test-only repair restores two stale exact dispatch assertions to the current shared Gateway contract; the PR is member-authored, so it is not eligible for automatic cleanup closure. Priority: P2 Review scores
Verification
How this fits togetherChat-triggered updates enter through the agent Gateway tool or the flowchart TD
A[Agent update tool] --> C[In-process Gateway dispatcher]
B[/update command] --> C
C --> D[System actor metadata]
D --> E[Gateway update owner]
F[Exact dispatch tests] --> C
Before mergeNone. Agent review detailsSecurityNone. PR surfaceTests +2. Total +2 across 2 files. View PR surface stats
Review metrics
Technical reviewBest possible solution: Retain the shared dispatcher behavior and land these two matching assertion updates once the normal exact-head checks complete. Do we have a high-confidence way to reproduce the issue? Yes. Current main's dispatcher includes the system actor while both exact-call expectations omit it; the failure path is clear from the source, although this read-only review did not execute the suite. Is this the best way to solve the issue? Yes. Aligning the two callers' exact expectations with the shared dispatcher is the narrowest maintainable repair and avoids changing the production authority behavior. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 32bb94ee8467. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
|
|
Merged via squash.
|
…7196) Align the update tool and /update exact-call assertions with the shared in-process Gateway actor introduced by openclaw#136952. Preserve owner checks, trusted routing, admin scopes, abort propagation, and the update timeout. Reuse Peter Steinberger's two-line fix from commit 0fee3dc in openclaw#137041, separated so this CI prerequisite can land independently of its UI and Android changes. Four failures reproduced on main 385c9d9. All 50 owner and sibling tests pass after the correction. Production delta: zero lines.
What Problem This Solves
Resolves a problem where CI fails four chat-update tests because their exact dispatch assertions omit the system actor carried by the shared Gateway helper.
Why This Change Was Made
The shared in-process dispatcher and its owner tests gained the explicit system actor in #136952. This updates the two remaining caller assertions while preserving their owner checks, trusted routing, admin scopes, abort signal, and 20-minute timeout.
Reuses Peter Steinberger's exact two-line fix from 0fee3dcee, already present in #137041. It is separated here so this CI prerequisite can land independently of that PR's unrelated UI and Android changes.
User Impact
No runtime behavior changes. Restores the update test gate for current main and dependent PRs.
Evidence
993ad3048bf; the other 46 tests passed./update, and shared in-process Gateway helper.node scripts/run-vitest.mjs src/agents/tools/gateway-tool.test.ts src/auto-reply/reply/commands-update.test.ts src/agents/tools/in-process-gateway.test.ts.