mirror of
https://github.com/deepseek-ai/deepseek-harness.git
synced 2026-09-12 04:01:20 +00:00
`JsonlSessionPersistence.exists` treats ENOENT as absence and stats the path's parent first, so a session directory blocked by a regular file stays a storage fault. Only Windows needs that: it reports ENOENT rather than ENOTDIR for `regular-file/child`, while POSIX open reports ENOTDIR before the branch is reached. The stat ran on every platform and every absent probe. findLog issues four probes per project directory and the coordinator resolves an id twice per inspect, so nearly every probe paid it. Counting fs calls against a five-project store, loading an existing session drops from 40 open + 41 stat to 40 open + 3 stat.