Skip to content

fix(proxy-capture): make path-based session cleanup atomic - #98852

Merged
steipete merged 1 commit into
openclaw:mainfrom
zhangLei99586:fix/delete-sessions-transaction
Aug 1, 2026
Merged

steipete merged 1 commit into
openclaw:mainfrom
zhangLei99586:fix/delete-sessions-transaction

Conversation

@zhangLei99586

@zhangLei99586 zhangLei99586 commented Jul 2, 2026 •

Copy link
Copy Markdown
Contributor

Fixes #98959

Original contributor and issue reporter: @zhangLei99586. The original human Git author, email, and first authored timestamp are preserved.

What Problem This Solves

The shipped path-based Plugin SDK proxy-capture store deleted capture events and capture sessions in separate SQLite auto-commit operations. A real failure on the second delete permanently removed the events while leaving the session behind; retrying deleteSessions could also strand the real payload blob. The sibling path-based purgeAll had the same atomicity defect.

Why This Change Was Made

Use the already-existing synchronous runSqliteImmediateTransactionSync owner around only the SQL deletes in both path-based deleteSessions and purgeAll. All blob filesystem inspection and deletion remains outside and after the committed SQLite transaction. The non-path-based/shared-state implementations already own equivalent transactional behavior.

The original contributor branch predated a major store rewrite and no longer merged. This takeover reapplies the same original architectural fix onto current main, covers the sibling with the identical violated invariant, and adds actual fault-injection regression coverage. Production delta is four net lines; there is no schema migration, schema-version bump, configuration, dependency, or public API change.

User Impact

Interrupted or failed path-based diagnostic cleanup can no longer silently corrupt session/event relationships or orphan capture payloads. Successful cleanup retains its existing counts and behavior.

Evidence

Real production acquireDebugProxyCaptureStore, actual file-backed Node SQLite, actual on-disk payload blobs, and real DatabaseSync.setAuthorizer(SQLITE_DELETE => SQLITE_DENY) fault injection on the second SQL delete, with the same failure-then-retry execution order for both cleanup operations:

Before, current main:

{"node":"v26.5.0","dependency":"node:sqlite DatabaseSync.setAuthorizer SQLITE_DELETE/SQLITE_DENY","results":[{"operation":"deleteSessions","afterFailure":{"error":"not authorized","sessions":1,"events":0,"blobExists":true,"transactionActive":false},"afterRetry":{"result":{"sessions":1,"events":0,"blobs":0},"sessions":0,"events":0,"blobExists":true,"schemaVersion":1}},{"operation":"purgeAll","afterFailure":{"error":"not authorized","sessions":1,"events":0,"blobExists":true,"transactionActive":false},"afterRetry":{"result":{"sessions":1,"events":0,"blobs":1},"sessions":0,"events":0,"blobExists":false,"schemaVersion":1}}]}

After, exact refreshed contributor head b13ba9423a39540e012f61f0a4ecfe07e0fbf3bf:

{"node":"v26.5.0","dependency":"node:sqlite DatabaseSync.setAuthorizer SQLITE_DELETE/SQLITE_DENY","results":[{"operation":"deleteSessions","afterFailure":{"error":"not authorized","sessions":1,"events":1,"blobExists":true,"transactionActive":false},"afterRetry":{"result":{"sessions":1,"events":1,"blobs":1},"sessions":0,"events":0,"blobExists":false,"schemaVersion":1}},{"operation":"purgeAll","afterFailure":{"error":"not authorized","sessions":1,"events":1,"blobExists":true,"transactionActive":false},"afterRetry":{"result":{"sessions":1,"events":1,"blobs":1},"sessions":0,"events":0,"blobExists":false,"schemaVersion":1}}]}

Before, both operations persist sessions=1, events=0 after the injected failure, and a retry of deleteSessions also leaves its payload blob orphaned. After, both operations roll back to sessions=1, events=1, blobExists=true, leave no active transaction, and a safe retry deletes one session, one event, and one blob. PRAGMA user_version remains exactly 1.

OPENCLAW_VITEST_FS_MODULE_CACHE_PATH=/private/tmp/openclaw-vitest-s02-98852-b13ba942 node scripts/run-vitest.mjs src/proxy-capture/store.sqlite.test.ts

Focused owner suite passes, including both new real SQLite authorizer regressions; independent repeated proof reports 13 passing tests. Targeted oxfmt and git diff --check pass. Fresh Codex Sol xhigh autoreview reports no accepted or actionable findings.

Both ClawSweeper rank-up moves are complete: the conflict is resolved on current main, only synchronous SQL statements are inside the transaction, blob filesystem work remains outside it, and the focused path-based owner suite passes.

The exact unchanged two-file owner patch was rebased over the already-landed main fix a14ada134f91c92f76d2bc886ae75b7c7dc0cc0d after an unrelated CI tooling baseline failure. Both formerly failing oxlint shard-routing owner expectations now pass (2/2); the focused proxy-capture owner suite passes 13/13 again; fresh Codex Sol xhigh commit review is clean.

@clawsweeper

clawsweeper Bot commented Jul 2, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed August 1, 2026, 1:29 PM ET / 17:29 UTC.

ClawSweeper review

What this changes

Makes path-based proxy-capture session cleanup atomic by wrapping related SQLite event/session deletions in the existing immediate transaction helper and adds rollback-and-retry regression coverage.

Merge readiness

⚠️ Ready for maintainer review - 2 items remain

This PR remains necessary: current main still performs the two path-based cleanup deletes outside a transaction, while the branch applies the repository’s existing synchronous transaction owner to both affected cleanup paths. The patch is correct on source review, includes direct fault-and-retry proof, and needs only the normal exact-head CI/merge gate before landing.

Priority: P2
Reviewed head: b13ba9423a39540e012f61f0a4ecfe07e0fbf3bf

Review scores

Measure Result What it means
Overall readiness 🦞 diamond lobster (5/6) Strong direct rollback proof, focused regression coverage, and a small owner-aligned patch support merge once normal exact-head checks complete.
Proof confidence 🦞 diamond lobster (5/6) Sufficient (live_output): The PR body and maintainer verification show an after-fix run against the real file-backed production store, real payload files, and Node SQLite authorizer fault injection, including rollback and successful retry for both changed operations.
Patch quality 🦞 diamond lobster (5/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Verified Sufficient (live_output): The PR body and maintainer verification show an after-fix run against the real file-backed production store, real payload files, and Node SQLite authorizer fault injection, including rollback and successful retry for both changed operations.
Evidence reviewed 6 items Current-main defect remains: Current main deletes path-based purge records with a direct multi-statement exec and deletes path-based session events and sessions as separate auto-commit statements; either cleanup path can leave database state partially removed if the latter delete fails.
Patch uses the canonical owner: The PR head wraps the affected path-based delete pairs in runSqliteImmediateTransactionSync while keeping blob filesystem work after the SQL transaction, matching the existing shared-state cleanup boundary.
Transaction rollback contract: The shared helper starts an immediate synchronous transaction, rolls it back when the operation throws, and rejects Promise-returning transaction bodies; the PR limits the transaction body to synchronous SQL statements.
Findings None None.
Security None None.

How this fits together

Proxy capture stores diagnostic sessions, captured events, and payload blobs in SQLite plus a path-based blob directory. Cleanup receives a session selection or purge request, removes the database records, then removes unreferenced payload files; the database portion must not partially commit.

flowchart LR
  A[Cleanup request] --> B[Path-based proxy capture store]
  B --> C[Read sessions, events, and blob references]
  C --> D[Immediate SQLite transaction]
  D --> E[Delete events and sessions together]
  E --> F[Find unreferenced payload blobs]
  F --> G[Remove payload files]
  G --> H[Return cleanup counts]
Loading

Before merge

  • Resolve merge risk (P1) - The branch is behind current main and several exact-head checks were still in progress in the supplied state; merge only after GitHub’s normal mergeability and required-check gates pass for the refreshed head.
  • Complete next step (P2) - No repair lane is needed: the patch has no source-level finding and only awaits the ordinary exact-head CI and merge gates.
Agent review details

Security

None.

PR surface

Source +4, Tests +61. Total +65 across 2 files.

View PR surface stats
Area Files Added Removed Net
Source 1 11 7 +4
Tests 1 61 0 +61
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 2 72 7 +65

Review metrics

None.

Root-cause cluster

Relationship: fixed_by_candidate
Canonical: #98959
Summary: This PR is the current candidate fix for the canonical path-based cleanup atomicity report and also covers the closely related purge-all sibling.

Members:

Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything.

Merge-risk options

Maintainer options:

  1. Decide the mitigation before merge
    Land the focused transactional repair after the current head passes required checks, preserving filesystem cleanup outside the committed SQL transaction.
  2. Pause or close
    Do not merge this PR until maintainers decide whether the risk is worth taking.

Technical review

Best possible solution:

Land the focused transactional repair after the current head passes required checks, preserving filesystem cleanup outside the committed SQL transaction.

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

Yes. Current main visibly executes the path-based delete pairs outside a transaction, and the PR supplies a real file-backed Node SQLite authorizer failure/retry run that demonstrates the resulting partial state and its rollback after the fix.

Is this the best way to solve the issue?

Yes. Reusing the existing synchronous immediate-transaction helper at the database owner boundary is narrower and safer than compensating after partial deletion; the paired test covers both cleanup siblings.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning high; reviewed against 586e1fe10e11.

Labels

Label justifications:

  • P2: This repairs a real but limited diagnostic-store consistency defect without evidence of an immediate core-runtime outage.
  • 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 (live_output): The PR body and maintainer verification show an after-fix run against the real file-backed production store, real payload files, and Node SQLite authorizer fault injection, including rollback and successful retry for both changed operations.
  • proof: sufficient: Contributor real behavior proof is sufficient. The PR body and maintainer verification show an after-fix run against the real file-backed production store, real payload files, and Node SQLite authorizer fault injection, including rollback and successful retry for both changed operations.

Evidence

What I checked:

  • Current-main defect remains: Current main deletes path-based purge records with a direct multi-statement exec and deletes path-based session events and sessions as separate auto-commit statements; either cleanup path can leave database state partially removed if the latter delete fails. (src/proxy-capture/store.sqlite.ts:619, 586e1fe10e11)
  • Patch uses the canonical owner: The PR head wraps the affected path-based delete pairs in runSqliteImmediateTransactionSync while keeping blob filesystem work after the SQL transaction, matching the existing shared-state cleanup boundary. (src/proxy-capture/store.sqlite.ts:619, b13ba9423a39)
  • Transaction rollback contract: The shared helper starts an immediate synchronous transaction, rolls it back when the operation throws, and rejects Promise-returning transaction bodies; the PR limits the transaction body to synchronous SQL statements. (src/infra/sqlite-transaction.ts:257, 586e1fe10e11)
  • Regression coverage exercises both siblings: The added parameterized test creates the real path-based file-backed store and payload, authorizer-denies the capture_sessions delete, verifies session/event/blob rollback, then verifies a successful retry for deleteSessions and purgeAll. (src/proxy-capture/store.sqlite.test.ts:165, b13ba9423a39)
  • Current ownership provenance: Blame and file history attribute the current proxy-capture store and test rewrite to the same recent commit, which is the relevant current-main owner context for this focused correction. (src/proxy-capture/store.sqlite.ts:768, afe024e8c799)
  • Not implemented or released: The PR head is not contained by current main or a local release tag; current main still has the unwrapped deletes, so this is neither implemented-on-main nor release-superseded. (b13ba9423a39)

Likely related people:

  • Yiğit ERDOĞAN: The current store implementation and its test file both trace to the recent rewrite commit, so this is the strongest current-main ownership signal for the corrected cleanup boundary. (role: recent proxy-capture store refactor author; confidence: high; commits: afe024e8c799; files: src/proxy-capture/store.sqlite.ts, src/proxy-capture/store.sqlite.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 (6 earlier review cycles)
  • reviewed 2026-07-03T06:38:31.969Z sha 93514ba061cdd463f09054279dafd2326851cfcc :: needs maintainer review before merge. :: none
  • reviewed 2026-07-17T00:30:31.729Z sha 93514ba061cdd463f09054279dafd2326851cfcc :: needs maintainer review before merge. :: none
  • reviewed 2026-07-30T04:10:27.430Z sha 93514ba061cdd463f09054279dafd2326851cfcc :: needs maintainer review before merge. :: none
  • reviewed 2026-08-01T16:35:28.860Z sha 93514ba061cdd463f09054279dafd2326851cfcc :: needs changes before merge. :: none
  • reviewed 2026-08-01T16:48:53.460Z sha 93514ba061cdd463f09054279dafd2326851cfcc :: needs changes before merge. :: none
  • reviewed 2026-08-01T17:18:30.012Z sha ceefb5282d89c6ee4410b36d26fe19c19d12fa73 :: needs maintainer review before merge. :: none

@clawsweeper clawsweeper Bot added 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. P2 Normal backlog priority with limited blast radius. labels Jul 2, 2026
@zhangLei99586

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Jul 2, 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 repository_dispatch).
Result: the existing ClawSweeper review comment will be edited in place when the review finishes.

@zhangLei99586

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Jul 2, 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 repository_dispatch).
Result: when the review finishes, ClawSweeper will create the durable review comment if needed or update the existing comment in place.

Re-review progress:

@zhangLei99586

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

@clawsweeper clawsweeper Bot added proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. and removed proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. labels Jul 2, 2026
@zhangLei99586

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

@clawsweeper clawsweeper Bot added proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. and removed rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. labels Jul 2, 2026
@openclaw-barnacle openclaw-barnacle Bot added triage: needs-pr-context Candidate: external PR body lacks required problem context or evidence. and removed triage: needs-pr-context Candidate: external PR body lacks required problem context or evidence. labels Jul 2, 2026
@zhangLei99586

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

1 similar comment
@zhangLei99586

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

@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 proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. 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. proof: sufficient ClawSweeper judged the real behavior proof convincing. labels Jul 2, 2026
@clawsweeper clawsweeper Bot added 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 status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. labels Jul 3, 2026
@zhangLei99586

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

@clawsweeper clawsweeper Bot added rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. and removed rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. labels Jul 30, 2026
@steipete
steipete force-pushed the fix/delete-sessions-transaction branch from 93514ba to ceefb52 Compare August 1, 2026 17:07
@steipete steipete changed the title fix(proxy-capture): wrap deletePathBasedSessions in transaction fix(proxy-capture): make path-based session cleanup atomic Aug 1, 2026
@steipete

steipete commented Aug 1, 2026 •

Copy link
Copy Markdown
Contributor

Maintainer real SQLite crash-atomicity verification

Preserved the original @zhangLei99586 contributor and original first human authorship for #98959, refreshed the previously conflicting branch, and fixed both path-based cleanup siblings at their canonical synchronous SQLite owner.

Exact real file-backed production store, actual payload files, actual Node SQLite authorizer fault, and retry proof:

node --import tsx --input-type=module -e 'import {constants} from "node:sqlite";import {existsSync,mkdtempSync,rmSync} from "node:fs";import {tmpdir} from "node:os";import {join} from "node:path";import {acquireDebugProxyCaptureStore} from "./src/proxy-capture/store.sqlite.ts";const results=[];for(const operation of ["deleteSessions","purgeAll"]){const directory=mkdtempSync(join(tmpdir(),"openclaw-proxy-98852-"));const databasePath=join(directory,"capture.sqlite");const blobDirectory=join(directory,"blobs");const lease=acquireDebugProxyCaptureStore(databasePath,blobDirectory);try{lease.store.upsertSession({id:"session",startedAt:1,mode:"sdk",sourceScope:"openclaw",sourceProcess:"plugin",dbPath:databasePath,blobDir:blobDirectory});const blob=lease.store.persistPayload(Buffer.from("rollback payload"),"text/plain");lease.store.recordEvent({sessionId:"session",ts:2,sourceScope:"openclaw",sourceProcess:"plugin",protocol:"https",direction:"outbound",kind:"request",flowId:"proof-flow",dataBlobId:blob.blobId,dataSha256:blob.sha256});const cleanup=()=>operation==="deleteSessions"?lease.store.deleteSessions(["session"]):lease.store.purgeAll();lease.store.db.setAuthorizer((action,table)=>action===constants.SQLITE_DELETE&&table==="capture_sessions"?constants.SQLITE_DENY:constants.SQLITE_OK);let failure;try{cleanup()}catch(error){failure=error.message}lease.store.db.setAuthorizer(null);const afterFailure={error:failure,sessions:lease.store.listSessions().length,events:lease.store.getSessionEvents("session").length,blobExists:existsSync(blob.path),transactionActive:lease.store.db.isTransaction};const retry=cleanup();const afterRetry={result:retry,sessions:lease.store.listSessions().length,events:lease.store.getSessionEvents("session").length,blobExists:existsSync(blob.path),schemaVersion:lease.store.db.prepare("PRAGMA user_version").get().user_version};results.push({operation,afterFailure,afterRetry})}finally{lease.store.db.setAuthorizer(null);lease.release();rmSync(directory,{recursive:true,force:true})}}process.stdout.write(JSON.stringify({node:process.version,dependency:"node:sqlite DatabaseSync.setAuthorizer SQLITE_DELETE/SQLITE_DENY",results})+"\n")'

Before, current main:

{"node":"v26.5.0","dependency":"node:sqlite DatabaseSync.setAuthorizer SQLITE_DELETE/SQLITE_DENY","results":[{"operation":"deleteSessions","afterFailure":{"error":"not authorized","sessions":1,"events":0,"blobExists":true,"transactionActive":false},"afterRetry":{"result":{"sessions":1,"events":0,"blobs":0},"sessions":0,"events":0,"blobExists":true,"schemaVersion":1}},{"operation":"purgeAll","afterFailure":{"error":"not authorized","sessions":1,"events":0,"blobExists":true,"transactionActive":false},"afterRetry":{"result":{"sessions":1,"events":0,"blobs":1},"sessions":0,"events":0,"blobExists":false,"schemaVersion":1}}]}

After, exact contributor head b13ba94:

{"node":"v26.5.0","dependency":"node:sqlite DatabaseSync.setAuthorizer SQLITE_DELETE/SQLITE_DENY","results":[{"operation":"deleteSessions","afterFailure":{"error":"not authorized","sessions":1,"events":1,"blobExists":true,"transactionActive":false},"afterRetry":{"result":{"sessions":1,"events":1,"blobs":1},"sessions":0,"events":0,"blobExists":false,"schemaVersion":1}},{"operation":"purgeAll","afterFailure":{"error":"not authorized","sessions":1,"events":1,"blobExists":true,"transactionActive":false},"afterRetry":{"result":{"sessions":1,"events":1,"blobs":1},"sessions":0,"events":0,"blobExists":false,"schemaVersion":1}}]}

Both real operations previously left one session but zero events after the second delete failed; deleteSessions retry also orphaned its on-disk blob. Both now roll back the SQL pair, preserve session/event/blob, and retry safely removes all three. Blob filesystem I/O stays outside and after the synchronous SQL-only transaction; user_version stays 1.

OPENCLAW_VITEST_FS_MODULE_CACHE_PATH=/private/tmp/openclaw-vitest-s02-98852-b13ba942 node scripts/run-vitest.mjs src/proxy-capture/store.sqlite.test.ts

Focused owner suite passes (independent exact owner run: 13 tests), targeted formatting and git diff --check pass, and fresh Codex Sol xhigh autoreview is clean. Exactly two owner paths changed, +4 net production lines, no schema migration. Both ClawSweeper rank-up moves are satisfied.

Rebased the exact same two-file owner patch over the already-landed unrelated main tooling fix a14ada134f91c92f76d2bc886ae75b7c7dc0cc0d. On exact contributor head b13ba9423a39540e012f61f0a4ecfe07e0fbf3bf, the production SQLite fault-and-retry proof remains identical, all 13 focused owner tests pass, both formerly failing oxlint shard-routing expectations pass (2/2), and fresh Codex Sol xhigh autoreview is clean.

@steipete
steipete force-pushed the fix/delete-sessions-transaction branch from ceefb52 to b13ba94 Compare August 1, 2026 17:21
@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 1, 2026
@steipete
steipete merged commit 685a3db into openclaw:main Aug 1, 2026
131 of 133 checks passed
@steipete

steipete commented Aug 1, 2026

Copy link
Copy Markdown
Contributor

Merged via squash.

vincentkoc added a commit that referenced this pull request Aug 1, 2026
* origin/main: (26 commits)
  fix(update): return failure when dirty checkout blocks update (#117452)
  fix(auto-reply): apply mixed chat directives in one session transaction (#117542)
  refactor(ui): unify channel status and setup controls (#117499)
  fix(doctor): preserve surviving lint selections (#117543)
  fix(media): keep an unquoted MEDIA path with spaces as one media item (#112464)
  refactor(channels): consolidate lightweight plugin discovery (#117541)
  fix(imessage): prevent duplicate messages after delayed sends (#110853)
  refactor(memory): unify authoritative dreaming state and presentation (#117538)
  refactor(agents): consolidate main-session recovery ownership (#117383)
  fix(proxy-capture): make path-based session cleanup atomic (#98852)
  refactor(agents): consolidate compaction and context-engine ownership (#117482)
  fix(gateway): preserve Responses usage details (#117533)
  perf(gateway): skip empty session recovery stores (#117498)
  fix(ci): update canonical Kova performance pin (#117508)
  fix(system-agent): emit the wizard cancel hint once per message (#113731)
  refactor: dedupe secrets runtime snapshot fixtures (#117502)
  test(google): cover ready callback close precedence
  test(openai): dedupe realtime voice fixtures (#117503)
  fix(google): flush lazy prompts on provider readiness
  fix(gateway): keep canonical hooks on pristine startup path (#117493)
  ...
abdulrahman305 pushed a commit to qenex-ai/openclaw that referenced this pull request Aug 1, 2026
* origin/main: (35 commits)
  fix(update): return failure when dirty checkout blocks update (openclaw#117452)
  fix(auto-reply): apply mixed chat directives in one session transaction (openclaw#117542)
  refactor(ui): unify channel status and setup controls (openclaw#117499)
  fix(doctor): preserve surviving lint selections (openclaw#117543)
  fix(media): keep an unquoted MEDIA path with spaces as one media item (openclaw#112464)
  refactor(channels): consolidate lightweight plugin discovery (openclaw#117541)
  fix(imessage): prevent duplicate messages after delayed sends (openclaw#110853)
  refactor(memory): unify authoritative dreaming state and presentation (openclaw#117538)
  refactor(agents): consolidate main-session recovery ownership (openclaw#117383)
  fix(proxy-capture): make path-based session cleanup atomic (openclaw#98852)
  refactor(agents): consolidate compaction and context-engine ownership (openclaw#117482)
  fix(gateway): preserve Responses usage details (openclaw#117533)
  perf(gateway): skip empty session recovery stores (openclaw#117498)
  fix(ci): update canonical Kova performance pin (openclaw#117508)
  fix(system-agent): emit the wizard cancel hint once per message (openclaw#113731)
  refactor: dedupe secrets runtime snapshot fixtures (openclaw#117502)
  test(google): cover ready callback close precedence
  test(openai): dedupe realtime voice fixtures (openclaw#117503)
  fix(google): flush lazy prompts on provider readiness
  fix(gateway): keep canonical hooks on pristine startup path (openclaw#117493)
  ...
vincentkoc added a commit that referenced this pull request Aug 1, 2026
* origin/main: (491 commits)
  feat(gateway): advertise chat attachment limits on hello-ok (#116188)
  fix(ui): preserve full graphemes in session owner initials (#117350)
  refactor(tui): consolidate runtime ownership (#117368)
  fix(update): return failure when dirty checkout blocks update (#117452)
  fix(auto-reply): apply mixed chat directives in one session transaction (#117542)
  refactor(ui): unify channel status and setup controls (#117499)
  fix(doctor): preserve surviving lint selections (#117543)
  fix(media): keep an unquoted MEDIA path with spaces as one media item (#112464)
  refactor(channels): consolidate lightweight plugin discovery (#117541)
  fix(imessage): prevent duplicate messages after delayed sends (#110853)
  refactor(memory): unify authoritative dreaming state and presentation (#117538)
  refactor(agents): consolidate main-session recovery ownership (#117383)
  fix(proxy-capture): make path-based session cleanup atomic (#98852)
  refactor(agents): consolidate compaction and context-engine ownership (#117482)
  fix(gateway): preserve Responses usage details (#117533)
  perf(gateway): skip empty session recovery stores (#117498)
  fix(ci): update canonical Kova performance pin (#117508)
  fix(system-agent): emit the wizard cancel hint once per message (#113731)
  refactor: dedupe secrets runtime snapshot fixtures (#117502)
  test(google): cover ready callback close precedence
  ...
vincentkoc added a commit that referenced this pull request Aug 1, 2026
* origin/main: (325 commits)
  fix(skills): preserve profile in ClawHub command hints (#117555)
  fix(cli): explain filtered plugin policy without unsafe recovery (#117556)
  fix(irc): strip markdown from outbound text (#112961)
  refactor(plugins): consolidate registry snapshots (#117561)
  fix(plugins): fail blocked enable commands (#117536)
  test(secrets): dedupe runtime state fixtures (#117563)
  feat(gateway): advertise chat attachment limits on hello-ok (#116188)
  fix(ui): preserve full graphemes in session owner initials (#117350)
  refactor(tui): consolidate runtime ownership (#117368)
  fix(update): return failure when dirty checkout blocks update (#117452)
  fix(auto-reply): apply mixed chat directives in one session transaction (#117542)
  refactor(ui): unify channel status and setup controls (#117499)
  fix(doctor): preserve surviving lint selections (#117543)
  fix(media): keep an unquoted MEDIA path with spaces as one media item (#112464)
  refactor(channels): consolidate lightweight plugin discovery (#117541)
  fix(imessage): prevent duplicate messages after delayed sends (#110853)
  refactor(memory): unify authoritative dreaming state and presentation (#117538)
  refactor(agents): consolidate main-session recovery ownership (#117383)
  fix(proxy-capture): make path-based session cleanup atomic (#98852)
  refactor(agents): consolidate compaction and context-engine ownership (#117482)
  ...

# Conflicts:
#	extensions/xai/realtime-voice-bridge.ts
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Aug 2, 2026
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Aug 2, 2026
* origin/main: (26 commits)
  fix(update): return failure when dirty checkout blocks update (openclaw#117452)
  fix(auto-reply): apply mixed chat directives in one session transaction (openclaw#117542)
  refactor(ui): unify channel status and setup controls (openclaw#117499)
  fix(doctor): preserve surviving lint selections (openclaw#117543)
  fix(media): keep an unquoted MEDIA path with spaces as one media item (openclaw#112464)
  refactor(channels): consolidate lightweight plugin discovery (openclaw#117541)
  fix(imessage): prevent duplicate messages after delayed sends (openclaw#110853)
  refactor(memory): unify authoritative dreaming state and presentation (openclaw#117538)
  refactor(agents): consolidate main-session recovery ownership (openclaw#117383)
  fix(proxy-capture): make path-based session cleanup atomic (openclaw#98852)
  refactor(agents): consolidate compaction and context-engine ownership (openclaw#117482)
  fix(gateway): preserve Responses usage details (openclaw#117533)
  perf(gateway): skip empty session recovery stores (openclaw#117498)
  fix(ci): update canonical Kova performance pin (openclaw#117508)
  fix(system-agent): emit the wizard cancel hint once per message (openclaw#113731)
  refactor: dedupe secrets runtime snapshot fixtures (openclaw#117502)
  test(google): cover ready callback close precedence
  test(openai): dedupe realtime voice fixtures (openclaw#117503)
  fix(google): flush lazy prompts on provider readiness
  fix(gateway): keep canonical hooks on pristine startup path (openclaw#117493)
  ...
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Aug 2, 2026
* origin/main: (35 commits)
  fix(update): return failure when dirty checkout blocks update (openclaw#117452)
  fix(auto-reply): apply mixed chat directives in one session transaction (openclaw#117542)
  refactor(ui): unify channel status and setup controls (openclaw#117499)
  fix(doctor): preserve surviving lint selections (openclaw#117543)
  fix(media): keep an unquoted MEDIA path with spaces as one media item (openclaw#112464)
  refactor(channels): consolidate lightweight plugin discovery (openclaw#117541)
  fix(imessage): prevent duplicate messages after delayed sends (openclaw#110853)
  refactor(memory): unify authoritative dreaming state and presentation (openclaw#117538)
  refactor(agents): consolidate main-session recovery ownership (openclaw#117383)
  fix(proxy-capture): make path-based session cleanup atomic (openclaw#98852)
  refactor(agents): consolidate compaction and context-engine ownership (openclaw#117482)
  fix(gateway): preserve Responses usage details (openclaw#117533)
  perf(gateway): skip empty session recovery stores (openclaw#117498)
  fix(ci): update canonical Kova performance pin (openclaw#117508)
  fix(system-agent): emit the wizard cancel hint once per message (openclaw#113731)
  refactor: dedupe secrets runtime snapshot fixtures (openclaw#117502)
  test(google): cover ready callback close precedence
  test(openai): dedupe realtime voice fixtures (openclaw#117503)
  fix(google): flush lazy prompts on provider readiness
  fix(gateway): keep canonical hooks on pristine startup path (openclaw#117493)
  ...
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Aug 2, 2026
* origin/main: (491 commits)
  feat(gateway): advertise chat attachment limits on hello-ok (openclaw#116188)
  fix(ui): preserve full graphemes in session owner initials (openclaw#117350)
  refactor(tui): consolidate runtime ownership (openclaw#117368)
  fix(update): return failure when dirty checkout blocks update (openclaw#117452)
  fix(auto-reply): apply mixed chat directives in one session transaction (openclaw#117542)
  refactor(ui): unify channel status and setup controls (openclaw#117499)
  fix(doctor): preserve surviving lint selections (openclaw#117543)
  fix(media): keep an unquoted MEDIA path with spaces as one media item (openclaw#112464)
  refactor(channels): consolidate lightweight plugin discovery (openclaw#117541)
  fix(imessage): prevent duplicate messages after delayed sends (openclaw#110853)
  refactor(memory): unify authoritative dreaming state and presentation (openclaw#117538)
  refactor(agents): consolidate main-session recovery ownership (openclaw#117383)
  fix(proxy-capture): make path-based session cleanup atomic (openclaw#98852)
  refactor(agents): consolidate compaction and context-engine ownership (openclaw#117482)
  fix(gateway): preserve Responses usage details (openclaw#117533)
  perf(gateway): skip empty session recovery stores (openclaw#117498)
  fix(ci): update canonical Kova performance pin (openclaw#117508)
  fix(system-agent): emit the wizard cancel hint once per message (openclaw#113731)
  refactor: dedupe secrets runtime snapshot fixtures (openclaw#117502)
  test(google): cover ready callback close precedence
  ...
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Aug 2, 2026
* origin/main: (325 commits)
  fix(skills): preserve profile in ClawHub command hints (openclaw#117555)
  fix(cli): explain filtered plugin policy without unsafe recovery (openclaw#117556)
  fix(irc): strip markdown from outbound text (openclaw#112961)
  refactor(plugins): consolidate registry snapshots (openclaw#117561)
  fix(plugins): fail blocked enable commands (openclaw#117536)
  test(secrets): dedupe runtime state fixtures (openclaw#117563)
  feat(gateway): advertise chat attachment limits on hello-ok (openclaw#116188)
  fix(ui): preserve full graphemes in session owner initials (openclaw#117350)
  refactor(tui): consolidate runtime ownership (openclaw#117368)
  fix(update): return failure when dirty checkout blocks update (openclaw#117452)
  fix(auto-reply): apply mixed chat directives in one session transaction (openclaw#117542)
  refactor(ui): unify channel status and setup controls (openclaw#117499)
  fix(doctor): preserve surviving lint selections (openclaw#117543)
  fix(media): keep an unquoted MEDIA path with spaces as one media item (openclaw#112464)
  refactor(channels): consolidate lightweight plugin discovery (openclaw#117541)
  fix(imessage): prevent duplicate messages after delayed sends (openclaw#110853)
  refactor(memory): unify authoritative dreaming state and presentation (openclaw#117538)
  refactor(agents): consolidate main-session recovery ownership (openclaw#117383)
  fix(proxy-capture): make path-based session cleanup atomic (openclaw#98852)
  refactor(agents): consolidate compaction and context-engine ownership (openclaw#117482)
  ...

# Conflicts:
#	extensions/xai/realtime-voice-bridge.ts
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

P2 Normal backlog priority with limited blast radius. proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🦞 diamond lobster Very strong PR readiness with only minor maintainer review expected. size: S 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.

proxy-capture: deletePathBasedSessions runs two DELETEs without transaction

2 participants