We have quite a few support questions related to out of sync or file counts. We usually need to ask the user to query the api, and sometimes even that information isn’t entirely conclusive. In one case the
stindex idxck command showed a db defect (later connected to panic (most likely)).
Maybe we could add something like
lib/diagnostics that contains the index check and potential other useful debugging tools. Then make those accessible e.g. with
syncthing -diag idxck.
Does that sound reasonable? Other ideas?