Repository navigation
fix(ui): keep task recovery actions across refresh - #124371
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. |
|
Codex review: needs maintainer review before merge. Reviewed August 16, 2026, 7:41 AM ET / 11:41 UTC. ClawSweeper reviewWhat this changesThe PR makes successful Retry and Dismiss task-delivery responses join the Tasks page refresh buffer so delayed list responses cannot restore stale recovery controls. Merge readinessNo blocking findings: the shared refresh-buffer boundary correctly keeps successful Retry and Dismiss projections newer than a delayed task snapshot. This maintainer-labeled PR should remain open until exact-head checks finish green. Priority: P2 Review scores
Verification
How this fits togetherThe Control UI Tasks page combines Gateway list snapshots, task events, and operator recovery responses into one visible ledger. The refresh buffer replays newer changes after a delayed snapshot so operators retain the actual recovery outcome. flowchart LR
A[Gateway task snapshots] --> C[Tasks page refresh]
B[Task events and recovery replies] --> D[Scoped refresh buffer]
C --> E[Replay newer task changes]
D --> E
E --> F[Visible Tasks ledger]
F --> G[Retry and Dismiss controls]
Before merge
Agent review detailsSecurityNone. PR surfaceSource +2, Tests +173. Total +175 across 2 files. View PR surface stats
Review metrics
Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Keep the single scoped buffer for task events and all authoritative task mutations, then merge once exact-head CI is green. Do we have a high-confidence way to reproduce the issue? Yes, source reproducible: begin a Tasks refresh, complete Retry or Dismiss, then resolve the older list snapshot; current-base recovery replies update only the visible list while buffered events are replayed after the snapshot. Is this the best way to solve the issue? Yes: centralizing the existing gateway/client/agent-scoped buffer guard is preferable to adding separate Retry and Dismiss exceptions or moving UI ordering policy into task-data normalization. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 96cacfdf7450. LabelsLabel justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (3 earlier review cycles)
|
4b1079a to
b13fd0d
Compare
|
Broken-main blocker cleared; #124371 has been mechanically refreshed and is green on its exact head.
Because the rebase changed no task blobs, the existing exact-patch evidence remains valid:
The old https://github.com/openclaw/openclaw/actions/runs/31927051953 failure therefore predates the shared-fixture fix and is not a live product failure. New exact-head CI completed successfully at https://github.com/openclaw/openclaw/actions/runs/31944763313. Exact-head ClawSweeper review also completed with no findings, sufficient recording proof, and 5/6 readiness: #124371 (comment). Native review artifacts validated |
b13fd0d to
d0f73cc
Compare
|
Merged via squash.
|
What Problem This Solves
Fixes an issue where operators using Retry or Dismiss on a blocked task delivery could briefly see the successful action, then have an older in-flight Tasks refresh restore the stale blocked state or the wrong row.
Why This Change Was Made
The Tasks page already replayed pushed task events and cancellation responses through a refresh-local buffer, but Retry and Dismiss responses updated only the visible list. This routes pushed events, cancellation responses, Retry responses, and Dismiss responses through the same gateway/client/agent-scoped buffer, so an older
tasks.listsnapshot cannot overwrite a newer authoritative mutation.This is UI-only concurrency custody. Scheduler actions, task persistence, Gateway RPC schemas, delivery semantics, and protocol behavior are unchanged. Production delta: +25/-23, net +2 LOC. Test delta: +173/-0. No changelog change; changelog generation is release-only.
AI-assisted: Codex implementation/review with an explicit Claude land decision.
User Impact
Retry and Dismiss now remain visibly authoritative while a manual refresh is in flight. Pushed deletion, cancellation, and reconnect behavior continue to share the same ordering boundary, so stale snapshots cannot resurrect removed rows or blocked controls.
Evidence
git diff --checkpatch is correct, confidence 0.97).71fb47cf6f9a7c3701001410abfb0e8e54947d36.Visual proof
Blocked deliveries before action:
Rejected Retry remains visible and actionable:
Successful Retry and Dismiss projections:
Older refresh cannot restore the dismissed row or blocked Retry state:
Reconnect establishes a replacement projection and permits one new Retry:
task-action-outcomes.webm
Disclosed unrelated follow-up
The real
gateway-rpc-automationscenario still has its separately owned heartbeat fixture defect: the fixture assertstarget-nonewhile omittingtarget: "none", so currentmaindeterministically reportsno-route. The existing task will align that fixture with its asserted contract. This PR does not bundle, bypass, retry around, or weaken that assertion.