Skip to content

fix: stop queued cloud work and persist canceled turns - #133241

Merged
steipete merged 4 commits into
mainfrom
codex/cloud-stop-admission-terminal
Aug 30, 2026
Merged

steipete merged 4 commits into
mainfrom
codex/cloud-stop-admission-terminal

Conversation

@steipete

@steipete steipete commented Aug 30, 2026 •

Copy link
Copy Markdown
Contributor

Problem

Stopping a cloud worker could let accepted queued work restart it, leave a cancelled native turn marked running across restart, or send the held initial message after provisioning completed. A provider cleanup failure also exposed a reconciliation self-wait that blocked reclaim, later dispatch and Gateway shutdown. After provider destruction, an accepted reclaim result could remain stranded because restart recovery recognized only the turn-before-drain generation order.

Owner-level repair

The session lifecycle now reserves pending admission before its first wait and closes that boundary throughout Stop. Pending owners are cancelled before awaited cancellation or persistence can fail. Both active and failed reclaim use the authorized Gateway cancellation and durable terminal owner; fresh explicit input after Stop remains allowed. The old internal forced controller-cleanup path is removed, and lifecycle drain checks the recorded terminal owner even after bounded maintenance retires a registration.

The existing UI startup owner pauses the selected held draft before Stop, including before its lazy runtime loads. A late dispatch response cannot send it or trigger duplicate reclaim; Retry remains explicit. The documented GUI policy stays two-step: stop the chat turn, then stop its worker. Active sessions.reclaim is a separate API path. The shared pause reason now covers both cloud and device workers.

Accepted results retain tracked same-Gateway recovery, but reclaim releases the fence before that recovery runs. Ordered recovery owners preserve full-sweep coalescing, fresh targeted passes and provisioning joins. One shared generation predicate recognizes both claim-before-drain and claim-after-drain result orders under the exact durable tuple, without reviving live turn authority. No new cancellation registry, retry, timeout, configuration, protocol, dependency or database schema is added.

Current proof

Candidate: 763714331b3d49673de606f8f6e2d876d67c96e4. Exact-head CI passed: 186 successful jobs, 12 workflow-selected skips, no rerun. The canonical full build, fresh UI build and strict package integrity passed; all 35,493 Git blobs/modes and the frozen dependency graph match the packaged source. Managed P0–P2 reviews are clean for the source-bound stack and final six-file follow-up.

Local proof includes captured pre-fix owner failures, 1,959 earlier owner/integration cases, 868 frozen-main composition cases including 16 browser E2E cases, and 536 final follow-up cases covering result recovery/publication/abandonment and rendered UI Stop. These are successive source-bound sets, not a unique-test total. Core/UI production types, all 16 core-test type shards and canonical guards pass on the independently attested fresh graph. Separate from the native phases below, loopback WebSocket/RFB and compiled-owner fixtures pass 68 idle/backpressure/revocation and execution/shutdown scenarios across eight processes. UI startup remains below the unchanged budget (345,991 gzip bytes versus 346,761 on the measured composition).

The exact package with Codex 0.151.0 passed the following native phases:

  • Preserved-state startup: the original draining placement became reclaimed, the accepted result and cleanup ref retired, and workspace HEAD, tracked bytes and cleanliness stayed unchanged. Old drafts stayed Not sent/Retry after reload; startup observers show no send, dispatch, reclaim or new allocation.
  • Provisioning GUI Stop: the held message stayed paused through the late dispatch reply, with zero held sends and one reclaim RPC. That RPC succeeded after 335.808 seconds waiting for already-started setup, followed by independent provider-release verification. Reload retained the paused draft, no active run and no pending input.
  • Computer continuity and GUI interruption: actual WebVNC, raw RFB and native images agreed on the synthetic counter changing from 0 to 3 through three sequential clicks; a later turn produced a fresh screenshot on a distinct execution. All five native images and tool arguments match the saved mirror. GUI composer Stop produced a raw native turn_aborted, successful nonignored computer-close acknowledgment and durable killed/abortedLastRun:true state. The worker remained usable; idle worker Stop was shown and canceled.
  • Active API reclaim and restart: reclaim was requested during actual native execution, followed by computer close/acknowledgment, durable killed state, reclaimed placement and destroyed environment. The single provider Stop in this final attempt succeeded; the same RPC completed in 28.730 seconds and independent inspection confirmed release. The fresh RFB observer closed with owner code 1012 before expiry. Final restart preserved byte-identical terminal history, all four reclaimed/destroyed placements/environments, no claims or pending results, unchanged original workspace and paused old drafts. No new allocation or automatic send occurred. All task Gateways, watchers and tunnel processes exited; proof logs drained.

API timing limit: the timing and source ordering are consistent with an already-running provider inspection delaying cancellation behind the existing global placement fence; the exact sweep owner was not directly instrumented. Four screenshots occurred after RPC ingress, and the native rollout ended with normal task_complete, not turn_aborted. This API case proves activity at request, later owned closure, durable killed state and safe reclaim/release/restart; it does not prove API-triggered native interruption or zero work immediately after ingress. The separate GUI case proves actual native interruption. The 1012 claim applies to the fresh observer; an older UI viewer closed earlier with 1005 when its desktop source became unavailable.

Preserved failures and dependency boundary

The earlier package's late-send/deadlock and forced-shutdown failures, and the subsequent provider-cleanup and claimless-result restart failures, remain preserved. Final testing also retained two operator-window misses (the native execution finished before the intended GUI/API stop), a correctly rejected running-history sample, and a task PTY input truncation that issued no reclaim. Local terminal tests fixed the launch mode without changing product code, model prompt, deadlines or assertions. An initial approval expired before it was accepted; that failure was preserved, and the actual GUI Allow once path later worked. No GUI approval defect is claimed.

One API attempt had a real provider Stop failure: its RPC returned an error after 64.597 seconds and immediate inspection still showed an active lease. Without a second reclaim or manual provider retry, normal Gateway recovery later reclaimed it and retired the pending result. That is recovery after an error, not success of the original RPC. Process samples are not an HTTP-phase trace.

Native proof used a separately validated, still-uncommitted Crabbox cleanup candidate. It changes reliability inside the existing stop implementation, not any command, flag, output schema, API or configuration consumed by OpenClaw. Its review and landing remain separate. This PR does not claim to fix unpatched Crabbox cleanup, and OpenClaw does not require a new dependency interface to land independently. Exact-source native evidence and its dependency qualification are retained together.

Earlier CI exposed and led to fixes for an eager recovery-schema import that exceeded the UI budget, two missing sidebar test capabilities, and an animation-frame race in a layout test. The shared checkout's preexisting pako declaration failure and one missing E2E video-encoder setup failure remain recorded; identical complete commands passed on the fresh graph/installed browser cache without weakened assertions or suppression.

Review disposition and follow-ups

The latest ClawSweeper review at this head found no discrete correctness or security defect. Its rank-up asks for redacted exact-head traces of active API/UI reclaim, provider-error recovery and restart cleanup; the native evidence above addresses those cases with the explicit API limitation. Its storage heuristic is not a schema change: no DDL, index, migration or storage layout changes; the coordinator is in-memory ordering and the result predicate consumes existing durable records.

Production is +563/-276 (net +287); tests/support +2476/-661; docs +6/-2. Growth supplies continuous admission ownership and canonical terminal cancellation (+180), per-session UI pause and callers (+74), ordered recovery owners (+4), retained terminal ownership (+14), the lazy action boundary (+9), and the shared result-generation rule (+6). Obsolete force cleanup and inline recovery paths are removed. A downstream retry, repeated pending scans or provider-cleanup bypass would not repair these owner boundaries.

Named follow-ups: Stop responsiveness behind in-flight provider reconciliation; CLI least-privilege tool discoverability; Sessions-page provisioning Stop visibility; runner-accurate sidebar/list device confirmations; and original Stop error reporting after later successful recovery. Never-attempted browser outbox rows or submissions still awaiting Blob storage have not entered server custody and are outside server reclaim. No native scheduling claim replaces the deterministic hostile-order regressions.

Visual evidence

Before: the held provisioning message entered Sending after Stop and teardown remained blocked.

Before: late held-message send after Stop

After: the same scenario stays Not sent/Retry after Stop and reload.

After: paused draft remains after Stop and reload

Native computer results and actual WebVNC show the synthetic counter at 3 after three clicks.

Native computer and WebVNC counter proof

@clawsweeper

clawsweeper Bot commented Aug 30, 2026

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

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

@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation gateway Gateway runtime size: XL maintainer Maintainer-authored PR labels Aug 30, 2026
@steipete steipete self-assigned this Aug 30, 2026
@clawsweeper

clawsweeper Bot commented Aug 30, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed August 30, 2026, 10:33 AM ET / 14:33 UTC.

ClawSweeper review

What this changes

The branch fences queued cloud-worker work during Stop/reclaim, persists cancelled turn outcomes, pauses a provisioning draft before teardown, and reorders recovery to avoid reclaim deadlocks.

Merge readiness

⚠️ Ready for maintainer review - 2 items remain

No discrete introduced correctness defect was found in this review. This maintainer-owned PR remains necessary, but its own evidence says the full native Stop/restart matrix is pending, so it needs explicit maintainer release judgment before merge.

Priority: P1
Reviewed head: 763714331b3d49673de606f8f6e2d876d67c96e4
Owner decision: Required. See Decision needed.

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) The patch has focused owner-boundary coverage and no discrete review finding, while final confidence is limited by the explicitly pending native lifecycle matrix.
Proof confidence 🌊 off-meta tidepool Not applicable: This is maintainer-owned, assigned work with a maintainer label, so the external-contributor proof gate does not apply. The PR body records partial native recovery and draft-no-resend evidence but explicitly leaves the full native Stop/restart matrix pending; that is retained as a merge risk rather than misclassified as missing contributor proof.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: This is maintainer-owned, assigned work with a maintainer label, so the external-contributor proof gate does not apply. The PR body records partial native recovery and draft-no-resend evidence but explicitly leaves the full native Stop/restart matrix pending; that is retained as a merge risk rather than misclassified as missing contributor proof.
Evidence reviewed 7 items Admission owner boundary: The introduced lifecycle mutation records a closed-admission owner before awaited cleanup and interrupts pending admissions, retaining the fence until finalization.
Cancellation path: Cloud-worker reclaim resolves the canonical session target, closes admissions, routes cancellation through the Gateway abort owner, drains the controller, and only then proceeds toward teardown.
Terminal-state regression coverage: The new owner-boundary test holds terminal persistence, verifies reclaim does not start early, rejects late admission, and verifies the persisted cancelled session state before allowing fresh work.
Findings None None.
Security None None.

How this fits together

A Control UI Stop action reaches the Gateway session lifecycle, which must close new admissions, cancel and persist existing work, reconcile the remote workspace, and reclaim the worker. The UI draft handoff must also prevent a late provisioning response from sending an initial message after Stop.

flowchart LR
  UI[Control UI Stop] --> Draft[Pause held draft]
  UI --> Gateway[Gateway reclaim]
  Gateway --> Admission[Close and cancel session work]
  Admission --> Terminal[Persist stopped turn]
  Gateway --> Recovery[Reconcile workspace result]
  Recovery --> Teardown[Destroy cloud worker]
  Teardown --> State[Durable placement state]
Loading

Decision needed

Question Recommendation
Should this maintainer-owned lifecycle change land after the remaining exact-head native Stop/restart acceptance matrix is recorded? Complete native acceptance first: Record the exact-head Stop/restart matrix across active reclaim, provider-error recovery, and restart cleanup before merge.

Why: Focused source and regression coverage supports the design, but the remaining native scenarios exercise the worker teardown and restart boundary that unit and harness evidence cannot fully replace.

Before merge

  • Resolve merge risk (P1) - The change adds a net 287 production lines to cancellation, session-state, and recovery ordering; the PR body says the full native Stop/restart matrix remains pending, leaving complete packaged behavior across active API/UI and recovery paths unverified.
Agent review details

Security

None.

PR surface

Source +485, Tests +1617, Docs +4. Total +2106 across 65 files.

View PR surface stats
Area Files Added Removed Net
Source 36 774 289 +485
Tests 28 2265 648 +1617
Docs 1 6 2 +4
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 65 3045 939 +2106

Review metrics

Metric Value Why it matters
Production versus test delta production +563/-276 (net +287); tests/support +2476/-661; docs +6/-2 The production growth is concentrated in a new lifecycle ownership boundary, cancellation path, UI draft pause, and recovery ordering, so native boundary proof matters before merge.

Stored data model

Persistent data-model change detected: durable storage schema: src/gateway/worker-environments/placement-dispatch-coordinator.ts, durable storage schema: src/gateway/worker-environments/placement-dispatch-test-harness.ts, durable storage schema: src/gateway/worker-environments/placement-workspace-result.ts, unknown-data-model-change: src/gateway/worker-environments/placement-dispatch-coordinator.ts, unknown-data-model-change: src/gateway/worker-environments/placement-workspace-result.ts. Confirm migration or upgrade compatibility proof before merge.

Merge-risk options

Maintainer options:

  1. Complete exact-head native Stop/restart acceptance (recommended)
    Validate active API/UI reclaim, provider-cleanup recovery, and restart cleanup against the packaged candidate before merge.
  2. Accept the packaged-runtime coverage gap
    Merge only if a maintainer explicitly accepts that the remaining native matrix is not yet demonstrated.

Technical review

Best possible solution:

Keep the single Gateway lifecycle mutation as the cancellation owner and obtain exact-head native evidence for active API/UI Stop, provider-error recovery, and restart cleanup before landing.

Do we have a high-confidence way to reproduce the issue?

No live reproduction was run in this read-only review. The new owner-boundary tests provide a concrete source-level path for queued-admission, terminal-write, and recovery ordering failures, but the full packaged native matrix remains unexecuted here.

Is this the best way to solve the issue?

Yes, subject to native acceptance evidence. The implementation repairs the shared session lifecycle and canonical abort owner instead of adding a downstream retry or duplicate cancellation path.

AGENTS.md: found but not applied because it conflicted with ClawSweeper's review contract.

Codex review notes: model internal, reasoning high; reviewed against 0bd5c6a43b7d.

Labels

Label justifications:

  • P1: A failure in this path can leave a user turn running, resend a held initial message, or stall cloud-worker reclaim.
  • merge-risk: 🚨 session-state: The patch changes admission, cancellation persistence, restart recovery, and the association of queued work with a session.
  • merge-risk: 🚨 availability: The patch changes reclaim and recovery ordering around provider teardown, where an unresolved cycle can stall subsequent work or Gateway shutdown.
  • rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🌊 off-meta tidepool and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: This is maintainer-owned, assigned work with a maintainer label, so the external-contributor proof gate does not apply. The PR body records partial native recovery and draft-no-resend evidence but explicitly leaves the full native Stop/restart matrix pending; that is retained as a merge risk rather than misclassified as missing contributor proof.

Evidence

What I checked:

Likely related people:

  • steipete: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)
  • Eden: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)

Rank-up moves

Optional improvements that raise the rating; they are not merge blockers.

  • Record redacted exact-head native traces for active API/UI reclaim, provider-error recovery, and restart cleanup.

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 (7 earlier review cycles)
  • reviewed 2026-08-30T10:02:07.697Z sha e23fae19a717e8350ee5a119c363a2bab255fffa :: needs maintainer review before merge. :: none
  • reviewed 2026-08-30T10:10:46.591Z sha e23fae19a717e8350ee5a119c363a2bab255fffa :: needs maintainer review before merge. :: none
  • reviewed 2026-08-30T10:34:05.444Z sha 3d0b284 :: needs maintainer review before merge. :: none
  • reviewed 2026-08-30T12:35:34.833Z sha 8e0f7ec :: needs maintainer review before merge. :: none
  • reviewed 2026-08-30T13:20:11.029Z sha 4bc8c08 :: found issues before merge. :: [P2] Use a neutral pause reason for device-worker Stop
  • reviewed 2026-08-30T13:33:22.571Z sha 4bc8c08 :: found issues before merge. :: [P2] Use runner-accurate text when pausing a device-worker draft
  • reviewed 2026-08-30T14:18:15.359Z sha 7637143 :: needs maintainer review before merge. :: none

@clawsweeper clawsweeper Bot added merge-risk: 🚨 availability 🚨 May cause crashes, hangs, restart loops, stalls, or process outages. merge-risk: 🚨 session-state 🚨 May lose, corrupt, stale, or mis-associate session, agent, or context state. P1 High-priority user-facing bug, regression, or broken workflow. 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 30, 2026
@steipete
steipete force-pushed the codex/cloud-stop-admission-terminal branch 2 times, most recently from 3d0b284 to 8e0f7ec Compare August 30, 2026 12:30
@steipete
steipete requested a review from a team as a code owner August 30, 2026 12:30
@openclaw-barnacle openclaw-barnacle Bot added the app: web-ui App: web-ui label Aug 30, 2026
@steipete

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

The candidate now includes the provisioning-draft pause and recovery-owner repairs proven by the failed native run, plus the canonical terminal-ownership fix for a late setup failure. The integrated head is 8e0f7ec; 1,959 tests across 82 files, complete type checks, source-bound repository guards, and managed P0–P2 review pass. Exact-package native Stop/restart proof and exact-head CI are still required before merge. Previous native failures remain recorded as failures.

@clawsweeper

clawsweeper Bot commented Aug 30, 2026 •

Copy link
Copy Markdown
Contributor

🦞🧹
ClawSweeper re-review requested.

I asked ClawSweeper to review this item again.
Action: item re-review queued (workflow sweep.yml, event exact_review_queue).
Result: when the review finishes, ClawSweeper will create the durable review comment if needed or update the existing comment in place.

Re-review progress:

Keep pending session admission owned across cloud worker Stop and route active cancellation through canonical terminal persistence before teardown. Preserve fresh post-Stop input and the existing two-step UI flow.
Pause held initial UI drafts before cloud Stop so a late dispatch reply
cannot send them. Preserve explicit Retry and uncertain-delivery custody.

Hand accepted workspace cleanup to the existing tracked recovery owner
after reclaim releases its fence. Coordinate fresh targeted and coalesced
full sweeps through ordered owners so provisioning recovery cannot wait
on its own placement fence.

Remove forced controller cleanup so setup failures cannot bypass an owned
terminal write. Lifecycle drains reject unfinished terminal ownership even
when maintenance has retired its registration.

Retain the provider error, canonical cancellation, and terminal persistence
contracts, with regressions for the observed ordering and cleanup siblings.
Pass canonical recovery functions through the synchronous Stop boundary without importing schema validators into the startup bundle. Keep pause-before-reclaim ordering and preserve the held initial draft.

Update the sidebar Stop fixture to expose its actual placement owner and read responsive layout geometry in one animation frame.
@steipete
steipete force-pushed the codex/cloud-stop-admission-terminal branch from 8e0f7ec to 4bc8c08 Compare August 30, 2026 13:11
@steipete

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

The current head is 4bc8c08ad5fecf1c1ae050de6cef524cf0545517, integrated onto frozen main 46c1eef6. This follow-up removes the eager UI recovery-schema import, repairs the sidebar Stop fixture, and samples responsive geometry atomically. The tested merge composition passes the unchanged startup budget; 868 composition tests and the full core/test/UI type checks pass. The prior native failure remains recorded, and exact-package Stop/restart acceptance plus required CI are still landing gates.

@clawsweeper

clawsweeper Bot commented Aug 30, 2026 •

Copy link
Copy Markdown
Contributor

🦞🧹
ClawSweeper re-review requested.

I asked ClawSweeper to review this item again.
Action: item re-review queued (workflow sweep.yml, event exact_review_queue).
Result: when the review finishes, ClawSweeper will create the durable review comment if needed or update the existing comment in place.

Re-review progress:

@clawsweeper clawsweeper Bot added rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. merge-risk: 🚨 availability 🚨 May cause crashes, hangs, restart loops, stalls, or process outages. and removed rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. merge-risk: 🚨 availability 🚨 May cause crashes, hangs, restart loops, stalls, or process outages. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Aug 30, 2026
@steipete

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

Updated head 763714331b3d49673de606f8f6e2d876d67c96e4 fixes the device-worker pause reason and the accepted reclaim result generation mismatch found by restart verification. The failing native checks remain documented; exact-package native acceptance is still held.

@clawsweeper

clawsweeper Bot commented Aug 30, 2026 •

Copy link
Copy Markdown
Contributor

🦞🧹
ClawSweeper re-review requested.

I asked ClawSweeper to review this item again.
Action: item re-review queued (workflow sweep.yml, event exact_review_queue).
Result: when the review finishes, ClawSweeper will create the durable review comment if needed or update the existing comment in place.

Re-review progress:

@clawsweeper clawsweeper Bot added status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. and removed status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. labels Aug 30, 2026
@steipete
steipete merged commit 6e63194 into main Aug 30, 2026
270 checks passed
@steipete
steipete deleted the codex/cloud-stop-admission-terminal branch August 30, 2026 15:41
@steipete

Copy link
Copy Markdown
Contributor Author

Merged via squash.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Aug 31, 2026
* fix: stop queued cloud work and persist canceled turns

Keep pending session admission owned across cloud worker Stop and route active cancellation through canonical terminal persistence before teardown. Preserve fresh post-Stop input and the existing two-step UI flow.

* fix: pause provisioning sends and unblock reclaim recovery

Pause held initial UI drafts before cloud Stop so a late dispatch reply
cannot send them. Preserve explicit Retry and uncertain-delivery custody.

Hand accepted workspace cleanup to the existing tracked recovery owner
after reclaim releases its fence. Coordinate fresh targeted and coalesced
full sweeps through ordered owners so provisioning recovery cannot wait
on its own placement fence.

Remove forced controller cleanup so setup failures cannot bypass an owned
terminal write. Lifecycle drains reject unfinished terminal ownership even
when maintenance has retired its registration.

Retain the provider error, canonical cancellation, and terminal persistence
contracts, with regressions for the observed ordering and cleanup siblings.

* fix(ui): keep cloud stop recovery behind lazy action owners

Pass canonical recovery functions through the synchronous Stop boundary without importing schema validators into the startup bundle. Keep pause-before-reclaim ordering and preserve the held initial draft.

Update the sidebar Stop fixture to expose its actual placement owner and read responsive layout geometry in one animation frame.

* fix(cloud): recover accepted reclaim results after restart
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 docs Improvements or additions to documentation gateway Gateway runtime maintainer Maintainer-authored PR merge-risk: 🚨 availability 🚨 May cause crashes, hangs, restart loops, stalls, or process outages. merge-risk: 🚨 session-state 🚨 May lose, corrupt, stale, or mis-associate session, agent, or context state. P1 High-priority user-facing bug, regression, or broken workflow. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. size: XL 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