agent-ecosystem/src
777genius 635321dd9a perf: drop per-acquire existsSync stat from file lock fast path
tryAcquire() ran fs.existsSync(dir) on every lock acquisition to lazily create the
lock directory. The dir almost always already exists (team dirs are created up
front), so that stat was wasted on every acquire — and the file-lock path churns
heavily during a launch (inbox writes, journals, task mutations all lock per write,
showing up as unlink/open/stat syscall load in the launch profile).

Attempt the openSync('wx') directly; only on ENOENT create the directory and retry
the acquire in the same call. Same locking semantics, same files, same first-acquire
latency for a missing dir — just one fewer stat per acquire in the common case.
2026-05-30 13:55:43 +03:00
..
features wip: team messages panel updates and runtime usage cache refinements 2026-05-30 12:54:11 +03:00
main perf: drop per-acquire existsSync stat from file lock fast path 2026-05-30 13:55:43 +03:00
preload perf(startup): defer provider status checks 2026-05-23 14:23:57 +03:00
renderer wip: team messages panel updates and runtime usage cache refinements 2026-05-30 12:54:11 +03:00
shared fix(team): reconcile provisioned-but-not-alive bootstrap state 2026-05-27 12:16:41 +03:00
types feat: harden opencode and team runtime flows 2026-05-21 01:10:48 +03:00