List threads from checkpoints table.
Sort field — "updated" or "created".
Optional filter by git branch name.
Optional filter by working directory. Only threads whose stored
cwd metadata equals this path are returned. Matching is an
exact string comparison — no path normalization, symlink
resolution, or prefix matching. Threads without a stored cwd
(older rows) are excluded.