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
{{ message }}
Repository navigation
Commit 075fcc4
Browse filesBrowse the repository at this point in the historyBrowse files
refactor(server): share one keyed lock that releases idle keys
Several services kept a hand-rolled Map<key, Semaphore> for per-key mutual
exclusion and never removed entries, so the maps grew with every thread,
cwd, ssh target, session, and update lock key ever seen.
Add KeyedLock in packages/shared, an RcMap of Semaphore(1) whose entry lives
only while someone holds or waits on its key. KeyedSerialExecutor now uses
it, and the terminal Manager, VcsStatusBroadcaster, ssh tunnel manager,
provider maintenance coordinator, CheckpointService, and OpenCode2 session
gates move onto it, keeping one FIFO permit per key.
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
0 commit comments