readDirectory took a failed stat or listing of a project folder as an
empty folder. A refusal that passes (too many files open under a long
history's parse, a sharing violation, a stalled network home) took every
session in the folder off the Sessions page, and refresh let go their
parses with them; a later poll read the folder again and parsed them
anew, so sessions vanished and came back. A failed read is unknown: the
last good listing stands. A folder that is gone still lists as none.
Run (mote-run): TestUnreadableDirectoryKeepsItsLastListing red on the
old code (listed 0 entries, want its last 2), green with the change;
go test ./internal/sessions ok; gofmt clean; go vet on darwin, linux
nogui and windows for internal/sessions clean.
Not tried: the full suite before the tag (started after it); a real
EMFILE; a per-file stat that fails for a moment (statFiles still drops
that one file, filed in the report as open).