picoclaw/pkg
程智超0668000959 a90d8d35ee fix(pid): verify process identity in singleton PID check
isProcessRunning() previously only checked whether a PID existed via signal(0)/OpenProcess, without confirming the process was actually picoclaw. When the PID was reused by an unrelated process (e.g., systemd-resolved after a kill -9), the gateway would refuse to start with 'already running'.

Add isPicoclawProcess() that verifies the process name matches picoclaw:
- Unix: reads /proc/<pid>/comm
- Windows: calls QueryFullProcessImageNameW

If the running process is not picoclaw, treat the PID file as stale and proceed with normal startup. Falls back to trusting the liveness check when identity verification is unavailable (e.g., /proc unreadable, API call fails).

Fixes #2720.
2026-06-04 20:04:51 +08:00
..
agent fix(agent): retry transient LLM HTTP errors using provider error classifier 2026-06-02 19:58:09 +08:00
audio refactor(models): unify provider metadata around backend catalog (#2896) 2026-05-20 11:50:34 +08:00
auth fix(auth): canonicalize Google Antigravity provider and enhance credential management (#2599) 2026-04-21 16:28:29 +08:00
bus feat: support streaming (#2892) 2026-05-19 16:38:47 +08:00
channels Merge pull request #2856 from bogdanovich/feat/message-media-outbound 2026-05-31 11:38:38 +02:00
commands feat(agent): stop command 2026-05-04 08:41:29 +02:00
config fix(message): gate local media attachments 2026-05-22 16:36:44 -07:00
constants refactor: replace bool map with set-style map for internal channels (#472) 2026-02-19 11:48:17 +01:00
credential refactor config and security to simplified the structure (#2068) 2026-03-28 00:03:34 +08:00
cron feat(cron): add get and update actions to cron tool 2026-05-31 10:55:54 +08:00
devices refactor(runtime): drop non-session legacy context compatibility 2026-04-01 20:56:48 +08:00
events fix(events): keep runtime observers non-blocking 2026-04-27 13:09:03 +08:00
evolution feat: agent self evolution (#2847) 2026-05-11 16:13:27 +08:00
fileutil Merge pull request #1829 from perhapzz/test/add-fileutil-health-tests 2026-03-26 10:42:13 +01:00
gateway Merge pull request #2719 from loafoe/feat/slack-webhook-channel 2026-05-11 16:22:27 +08:00
health fix(host): modernize default host selection order 2026-04-14 14:03:23 +08:00
heartbeat refactor(runtime): drop non-session legacy context compatibility 2026-04-01 20:56:48 +08:00
identity fix(identity): support negative integers in isNumeric for Telegram group IDs 2026-03-21 17:09:02 +07:00
isolation fix: treat PID=1 as stale in PID file singleton check, fix govet shadow, add .gitattributes (#2642) 2026-04-24 15:26:34 +08:00
logger unify all panic event to panic log file (#2250) 2026-04-01 23:26:49 +08:00
mcp feat: support streaming (#2892) 2026-05-19 16:38:47 +08:00
media Fix 1886 media cleanup policy (#1887) 2026-03-23 12:13:59 +08:00
memory fix(session): tighten main-session alias detection to exact 3-part format 2026-06-04 11:01:10 +08:00
migrate refactor(config): make config.Channel to multiple instance support 2026-04-13 22:21:21 +08:00
netbind fix(web): address latest Copilot review points 2026-04-14 23:39:59 +08:00
pid fix(pid): verify process identity in singleton PID check 2026-06-04 20:04:51 +08:00
providers Merge pull request #2989 from yuxuan-7814/fix/2943-zhipu-error-1210 2026-06-02 12:20:16 +02:00
routing feat(routing): add ordered dispatch rules 2026-04-01 22:13:04 +08:00
seahorse fix(seahorse,session): preserve created_at across history bootstrap 2026-05-26 14:05:20 +08:00
session fix(seahorse,session): preserve created_at across history bootstrap 2026-05-26 14:05:20 +08:00
skills feat: agent self evolution (#2847) 2026-05-11 16:13:27 +08:00
state fix(security): harden unauthenticated tool-exec paths (#1360) 2026-03-11 19:22:20 +08:00
tokenizer feat(seahorse): implement short-term memory engine (LCM) (#2285) 2026-04-05 09:05:16 +08:00
tools fix(tools): use sync.Once for thread-safe Stop() in SessionManager 2026-06-02 20:20:30 +08:00
updater fix(updater): retry release fetches (#2511) 2026-04-14 10:44:21 +08:00
utils Merge pull request #2670 from david1gp/fix/tool-feedback-pretty-print 2026-05-04 21:47:32 +02:00
env.go Merge branch 'main' into version 2026-03-19 18:04:58 +08:00