Repository navigation
docs(gateway): describe restart wakes for background processes accurately - #202066
Merged
Merged
Conversation
…tely - Distinguish interrupted-root resume inputs from finished-root lost-process exit notices. - Document the accepted double-wake edge without coupling restart recovery to process reporting.
Contributor
|
🦞👀 Pull request received. I will update this pull request when review starts. |
github-actions Bot
pushed a commit
to Desicool/openclaw
that referenced
this pull request
Nov 20, 2026
…tely (openclaw#202066) Problem: docs/gateway/restart-recovery.md still said a session owning a running background process is marked running at shutdown and resumed, and that a completed reply with background commands resumes. openclaw#199499 removed that marker (hadBackgroundExec) and moved lost background commands to their own exit notices; shutdown selection does not select background-process owners. Fix (docs only): an interrupted root gets the ordinary resume input; a finished root with a notifying background command gets the lost-process exit notice instead. Named accepted edge case: an interrupted root that also had a notifying background command gets both and may reply twice (rare, visible, recoverable; kept so restart recovery stays independent of process reporting). Proof: real-Gateway SIGKILL restart on unchanged main showed the two-input case; pnpm docs:list, docs:check-mdx, docs:check-links, format:docs:check, git diff --check; clean exact-head local ClawSweeper review. Co-authored-by: Ayaan Zaidi <[email protected]>
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
docs/gateway/restart-recovery.mdstill describes the pre-#199499 behavior for background processes:#199499 deleted the
hadBackgroundExecmarker and moved lost background commands to their own exit notices, but left these sentences behind. Shutdown selection (src/gateway/session-restart-resume-selection.ts:91-150) selects active session operations, live agent runs, sub-agent roots and yield waits. It does not select background-process owners, and a finished turn clearslifecycleRunId(src/config/sessions/session-run-lifecycle-projection.ts:293-295), so crash discovery skips it too.Change
Docs only:
Evidence
main: an interrupted root with a notifying background command received the resume input and the lost-process notice, and replied twice.pnpm docs:list,pnpm docs:check-mdx,pnpm docs:check-links,pnpm format:docs:checkandgit diff --checkpass.pnpm lint:docsreports one existing, unrelatedMD012indocs/internal/conversation-history-redesign.md:340.