Skip to content

fix: recover cloud sessions across restart and cancellation - #133728

Merged
steipete merged 23 commits into
mainfrom
codex/cloud-session-stress-recovery
Aug 31, 2026
Merged

steipete merged 23 commits into
mainfrom
codex/cloud-session-stress-recovery

Conversation

@steipete

@steipete steipete commented Aug 31, 2026 •

Copy link
Copy Markdown
Contributor

Fixes #131713

What Problem This Solves

Real cloud-session testing exposed several failures at shared lifecycle boundaries: restart recovery rejected legitimate workspace drift; a lost browser ACK could leave a retained input marked unconfirmed; closed parent authority could outlive awaited worker provisioning; concurrent bootstrap packaging could reject its own archive under a restrictive process mask; and Gateway startup dropped the authorization callback that should tear down a cancelled child allocation.

What Changed

  • Workspace recovery: restore the authenticated original workspace base through the existing transfer context and lazy Git-pack owner, then use canonical three-way reconciliation for Gateway and worker edits. Remove the equality preconditions that rejected normal drift.
  • Browser input recovery: query bounded, exact physical-session receipts from the existing pending-input SQLite owner. Custody no longer depends on the newest 20 display rows. Preserve the existing v4 inputConsumptions projection alongside the additive inputReceipts union, using one query. Retained interrupted input remains visible and never runs automatically.
  • Worker authority: keep the admitted parent-run assertion inside the worker tool capability, independently of optional audit provenance. Recheck after awaited privileged boundaries, including policy hooks. Forward all typed dispatch arguments through Gateway startup so the placement owner receives the live assertion and performs its existing teardown. Preserve uncertainty after entering a send, preventing duplicate delivery.
  • Bootstrap packaging: retain main’s canonical perf(workers): streamline cloud startup and fix bootstrap archive races #134043 repair: record filesystem-applied modes after writing, without reading the process-wide umask. Keep archive integrity verification and parallel copying; remove this branch’s duplicate mask-snapshot implementation and regression fixture.

No configuration, SQLite schema/version, index, retention, migration, protocol version, fallback, retry, or timeout was added. Production code is net smaller.

Live Evidence

Current head: 865b6da, following the c8f513 integration of main 44888f1. The final live runtime is ac6b19d. The intervening d6a3/dfe55 fixes changed only tests, but the final main integration also incorporates upstream runtime changes; this is not claimed as an exact-head live run. The c8f513 integration conflict retained main’s prompt fixture verbatim. Main’s chat-history snapshot and package-lifecycle-marker changes were inspected in the combined modules; all 8 history + 31 bootstrap/bundle/installer tests passed on the integrated candidate. Workspace recovery, browser custody and worker authority remain unchanged; bootstrap now follows main’s canonical implementation described below. Build identity was not rewritten.

Final cancellation proof: PASS. Real AWS/OpenAI run, with execution-identity auditing disabled: the parent successfully executed the exact requested command, then began child provisioning. Exact-run Stop was confirmed at 10:15:46 UTC. The late child allocation was destroyed at 10:20:33 with no attachments. Observation continued for 65 seconds after teardown, with zero child tasks, model admissions, transcript messages, tool authorities, or observed turn claims. This is model/RPC and provider-release proof; direct child filesystem absence is not claimed.

Positive browser controls: PASS. After Stop, Chrome sent another real OpenAI turn through the same parent; its command wrote the expected file and completed in six seconds. Gateway PID 25446 was then SIGKILLed and restarted as PID 30040. Chrome reconnected automatically. The next six-second turn read the pre-crash file and wrote a new one. Exact tool calls, successful results, and openai/gpt-5.4-mini were checked in the canonical transcript. An allowed child subsequently provisioned, executed its command, and returned ALLOWED_CHILD_DONE; parent-to-child sessions_send also succeeded. Both workers reclaimed through the normal Gateway owner. All worker environments are terminal without attachments, the test Gateway lease is released, and temporary credential files are removed.

Historical lost-ACK and restart proof: AWS run on ba1a7d72 exercised restart with Gateway-added identity files and an attachment-backed initial send whose ACK was dropped before Gateway termination. Reload showed exactly one retained input, no unconfirmed alert, an enabled composer, and no active run. A real OpenAI follow-up completed in seven seconds. This evidence retains its actual revision; it is not described as a later exact-head run.

Before After
Retained input remains unconfirmed Retained input recovered and composer released

Captures contain synthetic task data only.

Root-Cause Proof and Verification

The live 6766 build failed before allocation: at umask 077, 145 of 10,381 archive entries had matching bytes but incorrect modes. Node v24.18.1's getter briefly clears the process mask, racing concurrent file creation. Raw-parent inspection ties the concurrent staging change to #133725. The earlier branch repair passed the full artifact at masks077 and022; its controlled32-file regression failed before the fix and all31 owner/sibling tests passed afterward. That evidence remains pinned to its actual earlier revision. Main subsequently landed an independent repair in #134043, and the final branch adopts its producer and tests byte for byte at588219879f97. It never reads the process mask during preparation and records the mode the filesystem actually applied. The final adopted implementation passes all30 bootstrap/bundle/installer cases both normally and under077; independent review is clean. Its one metadata stat perPOSIX file is explicit, without a throughput claim. Main’s separately recorded compiled10362-entry077 evidence is prior canonical-implementation proof, not a fresh run from this task. The local distribution identifies an older build, so no current full-build or exact-final-head live claim is made.

The 6adb live run exposed a separate startup composition failure: after Chrome Stop, no child model task ran, but the late allocation became active and retained its lease. That failed run is not passing evidence. Startup's one-argument adapter discarded dispatch's authorization callback; forwarding the complete argument tuple reconnects the existing owner checks. The adapter predated its #133176 move. A real startup/executor composition regression fails before this repair and passes afterward; all 43 spawn/send tests pass. The final live run above verifies actual provider teardown.

Earlier focused revisions passed 168 Gateway tests, 6 protocol tests, 24 pending-input tests, and 439 Control UI tests. The integrated branch passed CI at 6766b029. Later fixes retain their own proof: current startup composition cases pass; the final service-projection/lease fixture correction removes its type error; full-branch and all follow-up Codex reviews have no accepted/actionable findings. Unrelated local Logger dependency type errors are not represented as a passing local typecheck. Hosted CI validates the final head.

A bounded CI cleanup fixed a sandbox-prompt fixture introduced on main by #133715; main subsequently incorporated the equivalent correction and its exact fixture is retained in the merge: its prepared provider handle omitted the model ID and inadvertently loaded the real provider runtime. Adding the matching ID preserves all sandbox assertions. Full file 12/12 and neighboring prompt file 11/11 pass. Same-host before/after case timings: 5.111s→243ms and 290ms→5ms. Whole-file wall time 58.97s→55.38s and peak RSS 1.849GB→1.844GB include differing import/build costs; the CI 120-second timeout was not reproduced locally. No timeout or assertion was weakened. Fresh review is clean.

Final-head CI: PASS. Both the ordinary PR run, attempt 3 and the repository-native hosted capacity fallback completed successfully on 865b6da18e7346be33777b0dc6eb5adec17804ec. GitHub now reports the required openclaw/ci-gate as SUCCESS. UI, type checks, Gateway, updater, extension lint, Windows, Android, iOS Debug/Release builds, lifecycle and Watch simulator tests, and combined screenshot evidence pass. This answers the latest ClawSweeper exact-head rank-up request.

CI retry history is preserved: the manual gate initially passed but was omitted from GitHub's effective PR rollup despite a valid PR association and matching App. The ordinary run's attempt 1 stalled on a queued iPad job. Attempt 2 acquired hosted macOS through the existing retry policy, but Fastlane timed out reading iPhone build settings before any app build/test. Its locked 2.238.0 source confirms the observed 3/6/12/24-second deadlines; the underlying Xcode delay is unproven. The still-running iPad job was cancelled so both screenshot families could retry together. Attempt 3 passed both families and the same-attempt evidence reducer. No runner setting, timeout, gate, assertion, limit or source was changed for these retries.

The tooltip fixture grouped context and unrelated media messages into one assistant run. Its image-only wait could not prevent lazy video metadata from changing the measured group during hover. A controlled original-order delayed-WebM reproduction fails before the fix (video and group both grow410.078125px) and passes afterward. Giving the context fixture its canonical run identity separates the groups and deletes the unrelated image wait: +2/-5 test lines, zero production changes. The complete112-case browser file, scoped formatting/lint and independent review pass; all geometry, top-layer, pinning, keyboard and dismissal assertions remain unchanged. The baseline separately encountered a cold-navigation MCP fixture error; the candidate passed that unchanged case, without claiming it repaired.

The hosted extension-lint job failed before lint during a Matrix crypto0.6.6 binary download (ECONNRESET); its upstream catch block also references an undefined variable. Direct exact-tag source confirms that error handling defect. No dependency override or source workaround was added; the final-head hosted run completed both installation and lint successfully. This does not claim to repair the upstream error handler.

Main #134088 concurrently broadened Gateway startup to require the full plugin registry. Exact previous-head CI caught our partial composition fixture with TS2740. Reusing one stable createEmptyPluginRegistry() instance matches main’s startup fixtures and removes another three test lines. The actual hosted failure is retained; the merged-contract target typecheck has zero diagnostics, both existing active/cancelled-parent composition cases pass, and scoped lint/format plus independent review pass. The preceding head’s full hosted UI suite also passes after the tooltip repair.

The last merge-time lint failure combined this PR with main #134200: the transfer service reached707 lines under a700-line rule. The final simplification collapses a Boolean-only owner wrapper and chooses the closed download route union directly, preserving lookup order, exact context identity, blob hash membership and manifest matching. The same three-way merged-file lint check fails before and passes afterward; no limit was raised. All30 service/credential/pack/retention/revocation tests, scoped lint and independent review pass. A subsequent bootstrap conflict is resolved by adopting main #134043's two files verbatim; all30 bootstrap/bundle/installer tests pass normally and under umask077.

The hosted fallback also exposed an updater fixture race: a fresh shell plus a30ms sleep had to publish its lock owner within the production200ms window. An injected300ms shell-start delay makes both original missing/empty cases fail with the CI error. Publishing real owner JSON at the incomplete-read retry boundary makes both cases pass under that same delay; all87 updater tests pass. Production behavior and budgets are unchanged, and23 test lines are removed. Formatting, scoped lint and independent review pass.

Earlier CI fixture repairs retain their assertions and timeouts. The terminal sandbox-denial test now uses the existing helper to await the same Code Mode run, without replay; its full file passes30/30. The WebChat source-reply fixture declares its empty external-channel catalog instead of discovering real bundled metadata through inherited channel stubs; its full file passes9/9, with first-case time12.887s→1.872s. A phase probe had measured5.070s in construction,1.463s in execution and about6ms per final projection. The CI120s timeout was not reproduced locally, and total wall-time changes include varying import/build load. Main's Promise-executor and channel WebSocket/raw-SecretRef fixture fixes are retained; the two focused Gateway files passed7 tests, and the subsequently adopted exact #134207 fixture passed both cases.

One Gateway cancellation fixture failed with ENOTEMPTY during cleanup after its behavioral assertions passed. The unchanged six-case baseline and a diagnostic run of the full225-file/4109-test Gateway shard passed locally, with no post-cleanup database reopen observed. Temporary diagnostics were removed. This intermittent teardown race remains an explicit follow-up; no speculative retry, timeout, suppressed error or production repair was added, and a passing CI rerun will not be called proof of repair. Earlier UI keyboard-readiness and Cron-timeout failures likewise remain recorded rather than relabeled harmless.

Local broader static checks are not represented as green: unchanged installed Logger types block core/declaration checks, and the updater test-root check also reports unchanged Telegram dependency types. Corrected files have no remaining diagnostics, scoped lint/format pass, and hosted checks remain authoritative. Earlier GitHub checkout-authentication failures and trusted-base fetch timeouts occurred before tests/scanning; targeted retries recovered them. The dfe55 CI run completed successfully after retrying only those checkout failures. No workflow or security guard was weakened.

Review Follow-Through and Scope

Maintainer disposition: The user's explicit direction to land follows the discussion and live proof of these recovery semantics: retain exact-session custody, never replay an unconfirmed input automatically, reconcile recovered workspaces through the canonical owner, and revoke worker authority after cancellation. That standing direction accepts the reviewed contract and addresses ClawSweeper's maintainer-confirmation request; the subsequent 20:14 UTC exact-head review has no source/security findings, and its remaining CI rank-up request is now satisfied. No additional schema or configuration change is introduced or authorized by this disposition.

The lead also completed the current-main comparison that the reviewer could not finish after a partial-clone DNS failure: through main961f927be8f, the only later overlapping changes are retained-input chronology tests and background-session documentation. The corresponding projection and submission owners were inspected directly; canonical receipt lookup and placement recovery handoff remain intact.

ClawSweeper's exact final-effect evidence requests are answered by the final live cancellation and positive controls above. The earlier receipt fixture/rank-up findings are corrected. Its storage-surface detection does not correspond to a schema change: no schema, version, migration, index, or retention change exists in this diff. The lead directly inspected the Node getter implementation; a review worker's DNS failure did not replace that dependency proof. The integrated independent review raised one older-Gateway UI fallback suggestion, rejected after inspecting ui/AGENTS.md Gateway Coupling and the enforced same-origin build admission: the UI ships with its Gateway and does not support version-skew compatibility. The external v4 response projection remains additive. No accepted/actionable findings remain; the reviewer’s finding and disposition are retained rather than represented as a clean reviewer result.

Landed as bcf8e986c19d. Against the actual merge parent: production +385/-429 (net -44); tests/support +891/-275 (net +616); generated Swift +4/-0; docs +1/-1. Total +1281/-705 across 47 files. Main had already absorbed several overlapping fixes.

Against pinned review base 44888f1: production +394/-431 (net -37); tests/support +958/-314 (net +644); generated Swift +4/-0; docs +1/-1. Total +1357/-746 across 51 files.

Separate work remains explicit: #133735 owns prompt cancellation of in-flight provider allocation and late-allocation custody (#132471/#132514); #132027 owns the completed-model-result/finalization crash gap. #128792 tracks generic CLI admin-scope selection; server authorization remains intentional. The proof uses authenticated admin Stop and the real Control UI, without weakening that policy. Prompt-test import cost remains a separate performance follow-up, not a claimed cloud runtime improvement.

@clawsweeper

clawsweeper Bot commented Aug 31, 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 app: web-ui App: web-ui gateway Gateway runtime size: XL maintainer Maintainer-authored PR labels Aug 31, 2026
@clawsweeper clawsweeper Bot added merge-risk: 🚨 security-boundary 🚨 May affect sandboxing, authorization, credentials, or sensitive data. 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: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. labels Aug 31, 2026
@clawsweeper

clawsweeper Bot commented Aug 31, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed August 31, 2026, 4:14 PM ET / 20:14 UTC.

ClawSweeper review

What this changes

The PR adds durable browser handoff receipts, revalidates worker-tool authority around Gateway calls, relaxes safe workspace recovery reconciliation, and records the filesystem mode actually applied to bootstrap artifacts.

Regression provenance

Possible regression — probable (reproduction; reviewed change). No predecessor PR is attributed.

Merge readiness

⚠️ Ready for maintainer review - 3 items remain

Keep open for maintainer review: the owner-bound recovery design appears coherent and no introduced defect was found, but supplied final-head checks were incomplete and local current-main comparison could not finish after the partial clone’s network fetch failed.

Priority: P1
Reviewed head: 865b6da18e7346be33777b0dc6eb5adec17804ec
Owner decision: Required. See Decision needed.

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) The owner-bound repair is focused, well-covered in source, and supported by real runs, with final-head check completion remaining before merge.
Proof confidence 🐚 platinum hermit (4/6) ✨ media proof bonus Sufficient (linked_artifact): Supplied real provider and browser-recovery artifacts exercise the affected restart and cancellation flows; the strongest live runs precede the exact final head, so final merge-candidate confirmation remains appropriate.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Verified Sufficient (linked_artifact): Supplied real provider and browser-recovery artifacts exercise the affected restart and cancellation flows; the strongest live runs precede the exact final head, so final merge-candidate confirmation remains appropriate.
Evidence reviewed 6 items Live worker authority binding: The new capability captures delegated run authority and verifies active run, current claim, and delegated authority both before and after awaited work.
Gateway call boundary: Worker tool execution requires a live capability, validates the exact source before Gateway dispatch, and carries the runtime identity into that call.
Custody contract and coverage: The protocol bounds receipt lookups to 50 IDs, and focused tests cover retained inputs beyond page size, consumed receipts, session replacement, and oversized requests.
Findings None None.
Security None None.

How this fits together

Browser clients recover pending chat input through Gateway history, while cloud workers execute delegated tool requests through placement and run-claim authority. The changes affect duplicate-input prevention, restart recovery, worker side effects, workspace reconciliation, and bootstrap packaging.

flowchart LR
  A[Browser chat client] --> B[Gateway chat history]
  B --> C[Input custody receipts]
  C --> D[Restart recovery]
  E[Worker tool request] --> F[Placement turn authority]
  F --> G[Gateway side effect]
  H[Workspace snapshot] --> I[Recovery reconciliation]
Loading

Decision needed

Question Recommendation
Should the cloud-worker owner accept this shared restart and cancellation authority change after the exact-head check rollup completes? Review final head and merge: Accept the owner-bound recovery design once the remaining exact-head checks complete without a related failure.

Why: The patch changes durable session custody and privileged worker-side effects, and it is explicitly maintainer-routed.

Before merge

  • Resolve merge risk (P1) - The supplied exact-head check rollup was incomplete, and a local current-main/merge-candidate comparison could not complete because the partial clone could not fetch missing objects.
  • Complete next step (P2) - Maintainer-routed session and authority behavior needs final exact-head evidence review rather than automated repair dispatch.
Agent review details

Security

None.

PR surface

Source -7, Tests +614, Docs 0, Other +4. Total +611 across 51 files.

View PR surface stats
Area Files Added Removed Net
Source 23 435 442 -7
Tests 26 911 297 +614
Docs 1 1 1 0
Config 0 0 0 0
Generated 0 0 0 0
Other 1 4 0 +4
Total 51 1351 740 +611

Review metrics

Metric Value Why it matters
Production versus test delta production +394/-431 (net -37); test/support +952/-308 (net +644); generated +4/-0; docs +1/-1 The production path is net smaller while most growth is focused regression coverage; generated native protocol output is separated from handwritten production code.

Stored data model

Persistent data-model change detected: durable storage schema: src/gateway/worker-environments/node-bootstrap-artifact.ts, durable storage schema: src/gateway/worker-environments/placement-turn-claim-events.ts, durable storage schema: src/gateway/worker-environments/worker-session-tool-executor.ts, durable storage schema: src/gateway/worker-environments/worker-session-tool-send.ts, durable storage schema: src/gateway/worker-environments/worker-turn-payload.ts, serialized state: src/gateway/worker-environments/node-bootstrap-artifact.ts, and 5 more. Confirm migration or upgrade compatibility proof before merge.

Merge-risk options

Maintainer options:

  1. Refresh final merge evidence (recommended)
    Complete the remaining exact-head checks and reconfirm durable input custody and no-replay recovery before merging.
  2. Pause for focused rerun
    Hold the PR if the final head differs materially from the already exercised restart or cancellation path.

Technical review

Best possible solution:

Retain the single live-owner capability path and confirm the final merge candidate still passes restart, cancellation, and browser-handoff coverage before merge.

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

Yes, at source level: focused tests define controlled custody, restart, cancellation, and authority-revocation scenarios, but this read-only review did not execute them at the final head.

Is this the best way to solve the issue?

Likely yes: the patch makes existing custody and live-authority owners authoritative rather than adding a downstream replay fallback.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning high; reviewed against 8558bb57ece1.

Labels

Label changes:

  • add proof: sufficient: Contributor real behavior proof is sufficient. Supplied real provider and browser-recovery artifacts exercise the affected restart and cancellation flows; the strongest live runs precede the exact final head, so final merge-candidate confirmation remains appropriate.

Label justifications:

  • P1: Restart recovery and cancellation can affect active cloud-worker sessions and browser-submitted messages.
  • merge-risk: 🚨 session-state: The PR changes persisted input custody and restart reconciliation, so a merge defect could replay or lose session work.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🐚 platinum hermit and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Sufficient (linked_artifact): Supplied real provider and browser-recovery artifacts exercise the affected restart and cancellation flows; the strongest live runs precede the exact final head, so final merge-candidate confirmation remains appropriate.
  • proof: sufficient: Contributor real behavior proof is sufficient. Supplied real provider and browser-recovery artifacts exercise the affected restart and cancellation flows; the strongest live runs precede the exact final head, so final merge-candidate confirmation remains appropriate.

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)

Rank-up moves

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

  • Confirm the final exact-head check rollup before merge.

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 (22 earlier review cycles; latest 8 shown)
  • reviewed 2026-08-31T15:24:35.142Z sha c8f5136 :: needs maintainer review before merge. :: none
  • reviewed 2026-08-31T16:10:41.214Z sha 26220ca :: needs maintainer review before merge. :: none
  • reviewed 2026-08-31T16:50:08.315Z sha ac92d8b :: needs maintainer review before merge. :: none
  • reviewed 2026-08-31T17:47:17.721Z sha ea2cffb :: needs maintainer review before merge. :: none
  • reviewed 2026-08-31T18:22:58.353Z sha 50ded4b :: needs maintainer review before merge. :: none
  • reviewed 2026-08-31T18:55:57.679Z sha 865b6da :: needs maintainer review before merge. :: none
  • reviewed 2026-08-31T19:36:41.449Z sha 865b6da :: needs maintainer review before merge. :: none
  • reviewed 2026-08-31T20:00:58.688Z sha 865b6da :: needs maintainer review before merge. :: none

@clawsweeper clawsweeper Bot added merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. and removed rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. labels Aug 31, 2026
@steipete
steipete marked this pull request as ready for review August 31, 2026 04:11
@steipete
steipete requested a review from a team as a code owner August 31, 2026 04:11
@steipete

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

The latest finding is addressed at 5c7674fd6e45c3c5186ee7055a94ce939b3e55d9: inputConsumptions remains additive for existing v4/native clients, while inputReceipts supplies exact pending/consumed custody from the same bounded physical-session query. The PR body now contains the redacted live restart, retained-input, and child final-effect evidence plus the exact test results.

@clawsweeper

clawsweeper Bot commented Aug 31, 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.

@clawsweeper clawsweeper Bot added proof: sufficient ClawSweeper judged the real behavior proof convincing. 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. and removed rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. proof: sufficient ClawSweeper judged the real behavior proof convincing. labels Aug 31, 2026
steipete and others added 3 commits August 31, 2026 08:35
Adopt the exact fixture from #134207 to resolve the concurrent CI repair conflict without changing production code.

Co-authored-by: Shakker <[email protected]>
@openclaw-barnacle openclaw-barnacle Bot added the agents Agent runtime and tooling label Aug 31, 2026
@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 31, 2026
@clawsweeper clawsweeper Bot added merge-risk: 🚨 session-state 🚨 May lose, corrupt, stale, or mis-associate session, agent, or context state. 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 31, 2026
@clawsweeper clawsweeper Bot added rating: 🦞 diamond lobster Very strong PR readiness with only minor maintainer review expected. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. and removed proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. rating: 🦞 diamond lobster Very strong PR readiness with only minor maintainer review expected. labels Aug 31, 2026
@steipete steipete self-assigned this Aug 31, 2026
@clawsweeper clawsweeper Bot added the proof: sufficient ClawSweeper judged the real behavior proof convincing. label Aug 31, 2026
@steipete
steipete merged commit bcf8e98 into main Aug 31, 2026
874 of 890 checks passed
@steipete
steipete deleted the codex/cloud-session-stress-recovery branch August 31, 2026 20:48
@steipete

Copy link
Copy Markdown
Contributor Author

Merged via squash.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 1, 2026
…#133728)

* fix(gateway): harden cloud session recovery

* fix(gateway): fence worker tools after cancellation

* fix(gateway): return exact retained input receipts

* fix(protocol): keep input receipts additive

* docs(changelog): note cloud session recovery

* chore(changelog): leave release notes to release owner

* fix(gateway): normalize optional continuation scope

* style(gateway): satisfy cloud authority lint

* test: align cloud recovery fixtures and native receipt client

* test: preserve receipt and send custody expectations after rebase

* fix: preserve bootstrap permissions during concurrent staging

* fix(workers): preserve child dispatch authority through startup

* test(workers): use the leased service projection in startup fixture

* test: keep sandbox prompt fixture on its prepared provider handle

* test: correct channel recovery fixtures for CI

* test: align recovery fixture with main

Adopt the exact fixture from openclaw#134207 to resolve the concurrent CI repair conflict without changing production code.

Co-authored-by: Shakker <[email protected]>

* test: isolate source replies and await terminal settlement

* test: synchronize maintenance lock publication fixtures

* refactor: simplify workspace transfer authorization checks

* fix: align bootstrap archive repair with main

* test: isolate context tooltip geometry from lazy media

* test: use canonical registry in worker startup fixture

---------

Co-authored-by: Shakker <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agents Agent runtime and tooling app: web-ui App: web-ui docs Improvements or additions to documentation gateway Gateway runtime maintainer Maintainer-authored PR 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. proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. 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.

[Bug]: Cloud workspace results remain stuck after Gateway restart

1 participant