Repository navigation
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. |
|
@clawsweeper automerge |
|
ClawSweeper 🐠 automerge status ClawSweeper finished this automerge repair pass without changing the branch. Executor outcome: validation command failed (pnpm check:changed): $ node scripts/check-changed.mjs --timed [check:changed] lanes=core, coreTests [check:changed] src/gateway/server-methods/sessions-abort.ts: core production [check:changed] src/gateway/server-methods/sessions..... Worker actions:
No push, rebase, replacement PR, merge, or ClawSweeper re-review happened on this pass. fish notes: reasoning medium; reviewed against 72c26ed. Automerge progress:
|
|
Codex review: passed. Reviewed October 6, 2026, 4:45 PM ET / 20:45 UTC (Revision 3). ClawSweeper reviewWhat this changesThe PR adds queue-timeout metadata to cancellation receipts for agent runs that have not started execution while preserving running-agent and chat receipts. Merge readiness✅ Ready for maintainer review The repair remains necessary on current main. No actionable introduced defect remains, and the earlier running-agent metadata finding is resolved. Priority: P2 Review scores
Verification
How this fits togetherGateway session cancellation stops admitted runs and publishes cached results for RPC callers. Those results feed agent wait and replay responses, which distinguish queued cancellation from execution that already started. flowchart TD
A[Session cancellation request] --> B[Authorized abort handler]
B --> C[Captured run and receipt]
C --> D{Agent execution started?}
D -->|No| E[Canonical queue cancellation result]
D -->|Yes or chat| F[Existing cancellation result]
E --> G[Cached RPC result]
F --> G
Before mergeNone. Agent review detailsSecurityNone. PR surfaceSource +10, Tests +2. Total +12 across 2 files. View PR surface stats
Review metricsNone. Technical reviewBest possible solution: Keep cancellation receipt metadata aligned with the execution owner's canonical result while retaining existing running-agent and chat semantics. Do we have a high-confidence way to reproduce the issue? Yes, from source: cancel an admitted, undispatched agent before its execution owner publishes the terminal result, and the current-main supplemental receipt omits queue metadata. No runtime reproduction was executed in this read-only review. Is this the best way to solve the issue? Yes. Reusing the existing payload builder under the explicit undispatched-agent guard is a narrow repair that preserves running-agent and chat behavior. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 660556970ac3. LabelsLabel changes: No label changes. Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
History |
|
@clawsweeper re-review |
|
🦞👀 Re-review progress:
|
|
@clawsweeper re-review |
|
🦞👀 Re-review progress:
|
72c26ed to
61ef1b7
Compare
Problem
Full Release Validation reproduced an agent cancellation race twice in the real release shard.
sessions.abortcan publish its supplemental dedupe timeout before the admitted agent execution publishes the terminal result. That supplemental agent payload omittedtimeoutPhaseandproviderStarted, so callers observed an incomplete queue-timeout result.Solution
Use the canonical aborted-agent payload builder for the
sessions.abortagent fallback while preserving the existing chat payload. The fallback now reportstimeoutPhase: "queue"andproviderStarted: falseconsistently with the agent execution owner.Evidence
Repair against current main
ba6d94ec17712:getRpcSourceStartedAt; the agent-only queued guard uses the retained exact aborted source. Running agents and chat keep the existing receipt shape.sessions.aborthandler: red on unmodified main (both queue metadata fields absent), green on this repair.git diff --checkpassed.ba6d94ec17712..61ef1b752b257: no actionable correctness/security findings.Original FRV failure: https://github.com/openclaw/openclaw/actions/runs/37518320382/job/112457505051