Repository navigation
fix: retain ACPX process lease ownership across reconnects - #115247
Merged
shakkernerd merged 4 commits intoJul 28, 2026
Merged
Conversation
shakkernerd
marked this pull request as ready for review
July 28, 2026 14:50
shakkernerd
force-pushed
the
workloop/fix-and-land-acpx-process-lease-45769da6
branch
from
July 28, 2026 14:51
f633121 to
95f25f6
Compare
shakkernerd
force-pushed
the
workloop/fix-and-land-acpx-process-lease-45769da6
branch
from
July 28, 2026 15:24
95f25f6 to
e616188
Compare
shakkernerd
force-pushed
the
workloop/fix-and-land-acpx-process-lease-45769da6
branch
from
July 28, 2026 15:27
e616188 to
ecb5615
Compare
shakkernerd
force-pushed
the
workloop/fix-and-land-acpx-process-lease-45769da6
branch
from
July 28, 2026 15:32
ecb5615 to
0a84717
Compare
shakkernerd
deleted the
workloop/fix-and-land-acpx-process-lease-45769da6
branch
July 28, 2026 15:32
Contributor
Author
|
Merged using rebase. What changed after review:
Verification:
Landed on
Thanks @shakkernerd! |
vincentkoc
added a commit
that referenced
this pull request
Jul 28, 2026
* origin/main: test(codex): de-flake attempt turn-watch timing tests (#115258) fix: preserve retryable ACPX lease ownership (#115247) fix: serialize ACPX lease ownership transitions fix: retain ACPX leases across wrapper reconnects refactor: parse ACPX lease command identity fix: preserve OpenClaw profile env in macOS launch-at-login plist (#99752) refactor(config): retire compaction truncateAfterCompaction gate (#115206) improve(ui): reduce duplicate chat startup work (#114743) fix(ui): keep reconnects, browser tabs, and localized search consistent (#115221) perf(pr): cache complete small file lists (#115199) perf(sqlite): skip no-op automatic schema repair (#115193) docs(browser): correct Docker sandbox setup (#115254) fix(ui): avoid duplicate session refreshes during startup (#114764) # Conflicts: # ui/src/pages/agents/panels-tools-skills.browser.test.ts
vincentkoc
added a commit
that referenced
this pull request
Jul 28, 2026
* origin/main: test(codex): de-flake attempt turn-watch timing tests (#115258) fix: preserve retryable ACPX lease ownership (#115247) fix: serialize ACPX lease ownership transitions fix: retain ACPX leases across wrapper reconnects refactor: parse ACPX lease command identity fix: preserve OpenClaw profile env in macOS launch-at-login plist (#99752) refactor(config): retire compaction truncateAfterCompaction gate (#115206) improve(ui): reduce duplicate chat startup work (#114743) fix(ui): keep reconnects, browser tabs, and localized search consistent (#115221) perf(pr): cache complete small file lists (#115199) perf(sqlite): skip no-op automatic schema repair (#115193) docs(browser): correct Docker sandbox setup (#115254) fix(ui): avoid duplicate session refreshes during startup (#114764)
github-actions Bot
pushed a commit
to Desicool/openclaw
that referenced
this pull request
Jul 29, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What Problem This Solves
Persistent ACPX sessions could reconnect with the stable wrapper command after OpenClaw had stripped its lease arguments from the persisted
agentCommand. The replacement wrapper then ran outside the original lease identity, leaving stale ownership behind and making later cleanup unable to verify the current process.Fixes #115177.
Why This Change Was Made
Current main already deletes terminal
closedandlostlease rows, so adding a periodic reaper would treat the symptom and introduce recurring process-table work. This change instead keeps one OpenClaw-owned lease identity with the persistent session, updates its PID when ACPX saves a replacement process, serializes overlapping ownership transitions, and retires abandoned leases at existing lifecycle boundaries.The ownership checks continue to reject foreign gateway/session identities and preserve PID-reuse safety. Direct plugin-local ACP adapter commands remain outside lease injection.
User Impact
Persistent ACPX sessions can reconnect without losing process ownership, reducing stale wrapper processes and lease state after crashes, timeouts, or reconnects without adding background polling.
Thanks @shakkernerd.
Evidence
pnpm check:changedpassed on the exact pushed head.git diff --checkand the branch worktree are clean.