picoclaw/pkg/pid
wenjie 7d16764674
fix(gateway): validate PID ownership and clean stale pid files (#2422)
* fix(gateway): validate PID ownership and clean stale pid files

- include `pid` in health responses for runtime PID verification
- add `RemovePidFileIfPID` to safely delete PID files only on PID match
- sanitize gateway PID data via process-command checks with health fallback
- ignore and remove stale/non-gateway PID files before gateway operations
- refuse stop/restart actions when the attached process is not a gateway
- update gateway and websocket tests to cover PID validation and safety paths

* test(seahorse): use shared in-memory SQLite DB in tests to fix async compaction failures

* test: remove unused sendMediaErr field from hook test mock
2026-04-08 14:23:21 +08:00
..
pidfile.go fix(gateway): validate PID ownership and clean stale pid files (#2422) 2026-04-08 14:23:21 +08:00
pidfile_test.go fix(gateway): validate PID ownership and clean stale pid files (#2422) 2026-04-08 14:23:21 +08:00
pidfile_unix.go fix(gateway): harden PID liveness handling and websocket proxy state (#2403) 2026-04-07 16:34:42 +08:00
pidfile_windows.go fix [BUG] WebUI cannot connect to the gateway started by WebUI (#2267) 2026-04-07 15:46:45 +08:00