Skip to content

fix(ui): keep task recovery actions across refresh - #124371

Merged
steipete merged 1 commit into
mainfrom
fix/autoqa-refill-automations-actions-v2
Aug 16, 2026
Merged

steipete merged 1 commit into
mainfrom
fix/autoqa-refill-automations-actions-v2

Conversation

@steipete

Copy link
Copy Markdown
Contributor

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.list snapshot 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

Visual proof

Blocked deliveries before action:

Blocked task deliveries

Rejected Retry remains visible and actionable:

Retry failure surfaced

Successful Retry and Dismiss projections:

Successful task recovery actions

Older refresh cannot restore the dismissed row or blocked Retry state:

Stale refresh suppressed

Reconnect establishes a replacement projection and permits one new Retry:

Reconnect retry

task-action-outcomes.webm

Disclosed unrelated follow-up

The real gateway-rpc-automation scenario still has its separately owned heartbeat fixture defect: the fixture asserts target-none while omitting target: "none", so current main deterministically reports no-route. The existing task will align that fixture with its asserted contract. This PR does not bundle, bypass, retry around, or weaken that assertion.

@clawsweeper

clawsweeper Bot commented Aug 16, 2026

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

@steipete
steipete marked this pull request as ready for review August 16, 2026 02:56
@openclaw-barnacle openclaw-barnacle Bot added app: web-ui App: web-ui size: M maintainer Maintainer-authored PR labels Aug 16, 2026
@steipete steipete self-assigned this Aug 16, 2026
@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. proof: 🎥 video Contributor real behavior proof includes video or recording evidence. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Aug 16, 2026
@clawsweeper

clawsweeper Bot commented Aug 16, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed August 16, 2026, 7:41 AM ET / 11:41 UTC.

ClawSweeper review

What this changes

The 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 readiness

⚠️ Ready for maintainer review - 2 items remain

No 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
Reviewed head: d0f73cc2d60c2f6621f0ebf442e2911dc074f39b

Review scores

Measure Result What it means
Overall readiness 🦞 diamond lobster (5/6) Strong behavior proof, focused browser regression coverage, and a canonical owner-boundary repair support a high-confidence patch review.
Proof confidence 🦞 diamond lobster (5/6) ✨ media proof bonus Sufficient (recording): The supplied after-fix Chromium recording and screenshots show Retry/Dismiss through deferred list responses and reconnect behavior, alongside linked exact-candidate Testbox evidence.
Patch quality 🦞 diamond lobster (5/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Verified Sufficient (recording): The supplied after-fix Chromium recording and screenshots show Retry/Dismiss through deferred list responses and reconnect behavior, alongside linked exact-candidate Testbox evidence.
Evidence reviewed 6 items Documented operator contract: Current documentation says the Control UI Tasks page supports retrying or dismissing blocked completion delivery, so retaining the resulting projection is established behavior.
Canonical refresh ordering: The PR retains one gateway/client/agent-scoped buffer and replays its events only after merging active and recent task snapshots.
Recovery response repair: Retry and Dismiss normalize their authoritative returned task, buffer it through the same boundary, then update the immediate projection.
Findings None None.
Security None None.

How this fits together

The 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]
Loading

Before merge

  • Resolve merge risk (P1) - The supplied exact-head check state still includes in-progress jobs; merge only after the required checks conclude successfully on the current head.
  • Complete next step (P2) - This maintainer-labeled member PR already has a focused implementation and sufficient proof; the remaining action is exact-head CI completion, not automated repair.
Agent review details

Security

None.

PR surface

Source +2, Tests +173. Total +175 across 2 files.

View PR surface stats
Area Files Added Removed Net
Source 1 25 23 +2
Tests 1 173 0 +173
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 2 198 23 +175

Review metrics

Metric Value Why it matters
Production versus regression coverage production +2, tests +173 The small production increase creates one canonical buffer entry point and replaces duplicated guards; the added browser coverage exercises the ordering failure, mutation outcomes, and reconnect.

Merge-risk options

Maintainer options:

  1. Decide the mitigation before merge
    Keep the single scoped buffer for task events and all authoritative task mutations, then merge once exact-head CI is green.
  2. Pause or close
    Do not merge this PR until maintainers decide whether the risk is worth taking.

Technical review

Best 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.

Labels

Label justifications:

  • P2: This is a bounded Control UI consistency fix for operators recovering blocked task delivery.
  • rating: 🦞 diamond lobster: Overall readiness is 🦞 diamond lobster; proof is 🦞 diamond lobster and patch quality is 🦞 diamond lobster.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Sufficient (recording): The supplied after-fix Chromium recording and screenshots show Retry/Dismiss through deferred list responses and reconnect behavior, alongside linked exact-candidate Testbox evidence.
  • proof: sufficient: Contributor real behavior proof is sufficient. The supplied after-fix Chromium recording and screenshots show Retry/Dismiss through deferred list responses and reconnect behavior, alongside linked exact-candidate Testbox evidence.
  • proof: 🎥 video: Contributor real behavior proof includes video or recording evidence. The supplied after-fix Chromium recording and screenshots show Retry/Dismiss through deferred list responses and reconnect behavior, alongside linked exact-candidate Testbox evidence.

Evidence

What I checked:

Likely related people:

  • steipete: Introduced the current Tasks page in the main-branch history and authored the focused refresh-ordering repair. (role: Tasks page introducer and recent area contributor; confidence: high; commits: fff38795e497, d0f73cc2d60c; files: ui/src/pages/tasks/tasks-page.ts, ui/src/pages/tasks/tasks.e2e.test.ts)
  • joshavant: Commit b717088 specifically aligned task recovery with Gateway lifecycle handling in this page and its unit tests. (role: recent task-recovery contributor; confidence: medium; commits: b71708858a20; files: ui/src/pages/tasks/tasks-page.ts, ui/src/pages/tasks/tasks-page.test.ts)

Rating scale

Score Internal tier Crab rank Meaning
6/6 S 🦀 challenger crab Exceptional readiness
5/6 A 🦞 diamond lobster Very strong readiness
4/6 B 🐚 platinum hermit Good normal PR; ordinary maintainer review
3/6 C 🦐 gold shrimp Useful, but confidence is limited
2/6 D 🦪 silver shellfish Proof or implementation needs work
1/6 F 🧂 unranked krab Not merge-ready
N/A NA 🌊 off-meta tidepool Rating does not apply

Overall follows the weaker of proof and patch quality.
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics.

Workflow

  • ClawSweeper keeps one durable marker-backed review comment per issue or PR.
  • Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
  • A fresh review can be triggered by eligible @clawsweeper re-review comments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.
  • PR/issue authors and users with repository write access can comment @clawsweeper re-review or @clawsweeper re-run on an open PR or issue to request a fresh review only.
  • Maintainers can also comment @clawsweeper review to request a fresh review only.
  • Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge.
  • Maintainer-only repair and merge flows require explicit commands such as @clawsweeper autofix, @clawsweeper automerge, @clawsweeper fix ci, or @clawsweeper address review.
  • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.

History

Review history (3 earlier review cycles)
  • reviewed 2026-08-16T03:02:42.528Z sha 4b1079a7b7d59a6a34bc45b79bdb7d191c78f99c :: needs maintainer review before merge. :: none
  • reviewed August 15, 2026, 11:43 PM ET / August 16, 2026, 03:43 UTC sha unknown :: needs maintainer review before merge. :: none
  • reviewed 2026-08-16T04:42:36.956Z sha b13fd0d :: needs maintainer review before merge. :: none

@clawsweeper clawsweeper Bot added proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🦞 diamond lobster Very strong PR readiness with only minor maintainer review expected. and removed rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. labels Aug 16, 2026
@steipete
steipete force-pushed the fix/autoqa-refill-automations-actions-v2 branch from 4b1079a to b13fd0d Compare August 16, 2026 04:37
@clawsweeper clawsweeper Bot added rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. and removed rating: 🦞 diamond lobster Very strong PR readiness with only minor maintainer review expected. labels Aug 16, 2026
@steipete

steipete commented Aug 16, 2026 •

Copy link
Copy Markdown
Contributor Author

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 READY FOR /prepare-pr with zero findings.

@steipete
steipete force-pushed the fix/autoqa-refill-automations-actions-v2 branch from b13fd0d to d0f73cc Compare August 16, 2026 11:35
@clawsweeper clawsweeper Bot added rating: 🦞 diamond lobster Very strong PR readiness with only minor maintainer review expected. and removed rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. labels Aug 16, 2026
@steipete
steipete merged commit e3e45ed into main Aug 16, 2026
172 checks passed
@steipete
steipete deleted the fix/autoqa-refill-automations-actions-v2 branch August 16, 2026 12:39
@steipete

Copy link
Copy Markdown
Contributor Author

Merged via squash.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

app: web-ui App: web-ui maintainer Maintainer-authored PR P2 Normal backlog priority with limited blast radius. proof: sufficient ClawSweeper judged the real behavior proof convincing. proof: 🎥 video Contributor real behavior proof includes video or recording evidence. rating: 🦞 diamond lobster Very strong PR readiness with only minor maintainer review expected. size: M status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant