openclaw/packages/agent-core
Peter Steinberger 5469328b6c
fix(gateway): preserve live owners through restart (#147242)
Record Gateway owner identity alongside the physical lifecycle coordinator so restart cleanup preserves live and slow-starting Gateways before they begin listening. Route foreground restarts through the recorded owner even when an installed Scheduled Task uses a different launch mode.

Limit Scheduled Task termination to the installed task's recorded owners or exact installed-argv-attributed legacy processes. Revalidate ownership before termination, repair initially unavailable native process identity through the guarded heartbeat, and preserve captured Unix process-group identities through escalation.

Validated by exact-head CI run 34780366323, including the affected Windows batch's 88 passing tests, and a scoped-clean P1 review. Native Windows final-effect proof and a published-updater end-to-end matrix remain accepted proof gaps; the Windows guest was unavailable in startup recovery. Supervisor metadata uses the new owner row's JSON payload without a schema version, table, or retention change.

Reported by @deYangar (#140162).
Fixes #140162
2026-09-13 13:55:49 -07:00
..
src fix(gateway): preserve live owners through restart (#147242) 2026-09-13 13:55:49 -07:00
package.json chore(deps): advance cooled dependencies and major upgrades (#146258) 2026-09-12 13:28:12 -07:00