You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(overlay): cross-session lock at user-scope with stale-lock recovery
The overlay queue lock was scoped to $TMPDIR, which on macOS is often a
per-process folder under /var/folders/... - not shared across CC sessions.
Two simultaneous CC sessions could each open their own tmux popup,
breaking the serialization.
Also: when a hook was SIGKILLed (OOM, timeout) the lock directory
persisted forever, blocking every subsequent overlay until manually
cleared.
Fixes:
- Lock lives at $(passthru_user_home)/passthru-overlay.lock.d, guaranteed
shared across CC sessions of the same user.
- New _OVERLAY_LOCK_STALE_AFTER threshold (default 180s, > overlay
timeout + margin): if the existing lock's mtime is older than that,
clear it and retry. Checked every ~2s during wait.
- Default lock timeout raised from 90s to 180s to match typical user
response time across multiple queued sessions.
0 commit comments