fix: feat: stack lock protocol for singleton project stack access (#255)

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Claude 2026-04-05 20:43:02 +00:00
parent 49c4be0706
commit a77aa19c3f

View file

@ -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