Repository navigation
fix: Claude CLI shutdown can falsely fail process cleanup - #171969
Merged
Merged
Conversation
RomneyDa
marked this pull request as ready for review
October 14, 2026 08:28
Contributor
|
ClawSweeper reviews are opt-in for maintainers. If a review is required, finish the work and validation first, then comment |
Member
Author
|
Merged via squash auto-merge.
|
vincentkoc
added a commit
that referenced
this pull request
Oct 14, 2026
…/plugin-memory-addon-presentation-20261014 * commit 'a8da8c92e3dbb21dd1441a30eb842fcd942e82b6': (52 commits) test(ui): await terminal reconnect fixture readiness (#171945) perf(gateway): retain only the requested ordered session page (#171968) test(gateway): cover automation run-alias placement lifecycle (#139313) fix(ci): retry FRV job listings with smaller pages after GitHub 5xx (#171952) fix(process): prevent false cleanup failures after CLI stdin closes (#171969) test(doctor): cover released updater advisory warnings (#157086) fix(ci): skip Testbox builds for known prose files (#171946) perf(sessions): remove redundant snapshot walks (#171964) fix(ci): skip plugin scaffold build for SDK instructions (#171944) fix(infra): preserve scheduler scope abort state after retirement fix: setup diagnostics can repair state without approval (#171960) perf(usage): avoid per-session admission churn during inventory (#171868) fix(ci): exclude documentation from extension lint scope (#171909) test(gateway): keep runtime-only compat flags out of live gateway config (#171953) docs: document ClawHub install telemetry opt-out (#114376) fix: recover completed chat replies after missed publication (#171766) refactor(ui): decouple session controller types from Lit (#171559) fix(gateway): settle worker reconciliation during busy shutdowns (#171843) fix(ci): ignore protocol prose in bundled check selection (#171908) fix(ui): align replacement lines and highlight inline diff edits (#171935) ...
github-actions Bot
pushed a commit
to Desicool/openclaw
that referenced
this pull request
Oct 15, 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
Claude CLI shutdown can falsely report
service child cleanup identity lost: write EPIPEwhen the process has already closed stdin.User Impact
Closed CLI sessions can finish cleanup and allow a fresh session. Real delivery and descendant-cleanup failures still surface; there are no configuration or schema changes.
Why This Change Was Made
Make the existing managed stdin close operation idempotent. Root-exit and remote-pipe-close receipts already destroy stdin; a later graceful-shutdown call must not send another EOF over the closing control channel. The existing ownership receipts, descendant-extinction checks, deadlines, and error handling are unchanged.
Evidence
1cbebe1a2596with the sameEPIPEcall stack as the failing provider job, then passes with the fix. It exercises the production control sender and cleanup join with fixed external I/O; it does not certify native descendants by itself.839c50c3plus this production patch: 812 passed, one skipped, including all 51 Claude native-stdio cases. Linux amd64 is emulated; Node 24.19.0, pnpm 12.9.0, locked dependencies, two CPUs, and an 8 GiB memory limit. Vitest 224.14 s; test wrapper 228.98 s. This is the original failed group, not a full-product suite.The original hosted interleaving is only partially reproduced: unchanged isolated and full Claude controls passed before this repair. The regression proves the redundant-EOF failure mechanism, not that every possible control-channel
EPIPEis harmless. Hosted CI remains the exact-head qualification.Related: #171524