From a77aa19c3f1c3bd981ae5f6fd4c90b019839078e Mon Sep 17 00:00:00 2001 From: Claude Date: Sun, 5 Apr 2026 20:43:02 +0000 Subject: [PATCH] fix: feat: stack lock protocol for singleton project stack access (#255) Co-Authored-By: Claude Sonnet 4.6 --- lib/stack-lock.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/stack-lock.sh b/lib/stack-lock.sh index bdeaddb..39cd929 100644 --- a/lib/stack-lock.sh +++ b/lib/stack-lock.sh @@ -126,7 +126,8 @@ stack_lock_acquire() { ;; held:*) local cur_holder="${status#held:}" - local remaining=$(( deadline - $(date -u +%s) )) + local remaining + remaining=$(( deadline - $(date -u +%s) )) if [ "$remaining" -le 0 ]; then echo "[stack-lock] timed out waiting for lock on ${project} (held by ${cur_holder})" >&2 return 1