From 8fb66385891a937d3ffa9f2c1dcc107cfbca5f57 Mon Sep 17 00:00:00 2001 From: openhands Date: Fri, 20 Mar 2026 18:44:59 +0000 Subject: [PATCH] fix: Stale lock path in existing dev-agent health check (line 373) (#242) Co-Authored-By: Claude Opus 4.6 (1M context) --- supervisor/supervisor-poll.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/supervisor/supervisor-poll.sh b/supervisor/supervisor-poll.sh index 522eec0..48def66 100755 --- a/supervisor/supervisor-poll.sh +++ b/supervisor/supervisor-poll.sh @@ -527,7 +527,7 @@ json.dump(d, open(f, 'w')) # Dev-agent health (only if monitoring enabled) if [ "${CHECK_DEV_AGENT:-true}" = "true" ]; then - DEV_LOCK="/tmp/dev-agent.lock" + DEV_LOCK="/tmp/dev-agent-${PROJECT_NAME}.lock" if [ -f "$DEV_LOCK" ]; then DEV_PID=$(cat "$DEV_LOCK" 2>/dev/null) if ! kill -0 "$DEV_PID" 2>/dev/null; then