Repository navigation
fix(windows): preserve gateway restart CLI during Scheduled Task handoff - #120230
clawsweeper[bot] wants to merge 1 commit into
Conversation
|
Thanks for the context here. I swept through the related work, and this is now duplicate or superseded. Close as superseded: the merged current-main repair uses the Gateway-owned safe restart path and the supplied native Windows evidence shows this PR’s cleanup-skipping approach still fails to relaunch the Gateway. Canonical path: Keep the merged Gateway-owned safe restart routing from #134549 and retire this lower-level Scheduled Task workaround. So I’m closing this here and keeping the remaining discussion on #134549. Review detailsBest possible solution: Keep the merged Gateway-owned safe restart routing from #134549 and retire this lower-level Scheduled Task workaround. Do we have a high-confidence way to reproduce the issue? Yes: the supplied native Windows run on this exact head exercised a gateway-descended restart and observed the PR preserve the CLI but fail visibly before relaunch. Is this the best way to solve the issue? No: routing the Windows Gateway-service command into the existing safe Gateway-owned restart path is the better owner boundary, and that repair is already merged. Security review: Security review cleared: The diff changes local Windows process lifecycle logic and introduces no concrete security or supply-chain concern. AGENTS.md: found and applied where relevant. What I checked:
Likely related people:
Codex review notes: model internal, reasoning high; reviewed against a68a4e396841; fix evidence: commit 3a0a62371811, main fix timestamp 2026-09-02T00:55:17Z. |
|
🦞✅ Source: Why human review is needed: What the maintainer can do as a next step: I added |
EvidenceTested PR head Prepared-snapshot validation:
A real model-backed Gateway agent invoked: Verified process ancestry was: Observed behavior:
Sysmon, WMI lifecycle events, Windows Security auditing, Scheduler state, TCP sampling, and before/after health checks agreed on this result. This reports the observed native behavior only and does not prescribe an implementation change. |
|
ClawSweeper recorded closeout evidence for this proposed close.
|
|
🦞👀 Reason: structured ClawSweeper close marker: close-required (sha=d4b40a7f32aa597302c7c7852e3db1109c36e33f) Usage: |
Fixes #120134.
Windows Scheduled Task restart now records ParentProcessId in the verified gateway-process snapshot and uses a bounded ancestor walk to recognize the directly observed gateway-owned invoking CLI. After
schtasks /End, that one path omitstaskkill /T, waits for listener release, then invokes/Run; ordinary external callers retain verified tree cleanup. A still-busy port remains a visible failure and does not proceed to relaunch.Tests cover a verified descendant, a non-descendant retaining tree cleanup, and a descendant path whose port does not release. Windows lifecycle proof must run restart from a gateway-owned exec child and show port release followed by task relaunch.
Credit: thanks @w1130150306 for the report and reproduction in #120134.
Release-note context: Windows Scheduled Task gateway restart no longer kills its own gateway-owned CLI before relaunch.