Repository navigation
fix: canceled steering messages still reach active runs - #145809
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
Codex review: needs maintainer review before merge. Reviewed September 12, 2026, 4:33 AM ET / 08:33 UTC. ClawSweeper reviewWhat this changesThe PR forwards each steering submission’s cancellation signal to the existing runtime queue, documents withdrawal limits, and adds a Gateway regression covering cancellation and replay. Merge readiness✅ Ready for maintainer review This remains a useful fix: current main still omits the cancellation signal, and source review found no introduced correctness defect. The maintainer-authored PR and its linked bug should remain open through normal landing. Priority: P2 Review scores
Verification
How this fits togetherGateway chat requests can add steering input to an already-running agent. The runtime queue holds that input until a delivery boundary, while the Gateway tracks each submission’s cancellation and terminal result. flowchart TD
A[Chat send] --> B[Submission abort controller]
A --> C[Gateway steering adapter]
D[Authorized chat abort] --> B
B --> C
C --> E[Runtime steering queue]
E --> F{Canceled before delivery?}
F -->|Yes| G[Withdraw input]
F -->|No| H[Active run consumes input]
Before mergeNone. Agent review detailsSecurityNone. PR surfaceSource 0, Tests +129, Docs +11. Total +140 across 5 files. View PR surface stats
Review metricsNone. Root-cause clusterRelationship: Members:
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything. Technical reviewBest possible solution: Keep cancellation with the existing per-message queue owner so withdrawn input disappears before delivery while the original run continues. Do we have a high-confidence way to reproduce the issue? Yes: the held-provider sequence isolates cancellation before consumption, and current-main source confirms the missing signal. This review did not execute that sequence. Is this the best way to solve the issue? Yes: forwarding the existing submission signal repairs the missing connection without adding a competing cancellation mechanism or changing public configuration. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 817b87141673. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
|
|
Fixed: canceling steering before delivery withdraws the queued message while the active OpenClaw run continues. |
) Withdraw canceled pending steering before delivery without stopping the active OpenClaw run or scheduling a followup. Fixes openclaw#145727.
Closes #145727
What Problem This Solves
Fixes an issue where users canceling a pending
chat.sendinsteermode could still have that input delivered to the active OpenClaw run afterchat.abortacknowledged cancellation.Why This Change Was Made
Pass the steering submission's abort signal to the existing per-message queue owner so it withdraws only the canceled input. Fallback dispatch retains the same signal, and the steering guide explains the withdrawal boundary before delivery starts.
User Impact
Pending steering can be canceled without stopping the active run or starting a later turn. Input already being delivered or consumed retains the existing handling for uncertain delivery.
Evidence
ca28965b39be18168670ec6d9aa41dd11a68cb5abecause A's next model request contains the canceled marker.f9a04a3675e85d05c75cb5464a938b84941318e3Platinum with no findings.