fix(torrent): harden metadata reuse and live peer telemetry

- reuse validated tracker-bearing metainfo without restoring direct web seeds
- preserve Torrent file selection while making long paths scrollable and copyable
- add lifecycle-fenced peer and seeder summaries to Properties telemetry
- validate cache tracker metadata and cover malformed, stale, and path-copy cases
This commit is contained in:
NimBold
2026-08-14 13:13:06 +03:30
parent 314f4e2e00
commit de41dd55d6
23 changed files with 536 additions and 81 deletions
+9
View File
@@ -0,0 +1,9 @@
export type ClipboardWriter = (text: string) => Promise<void>;
/** Copy the exact Torrent-relative path without normalizing or truncating it. */
export const copyTorrentFilePath = async (
path: string,
writeText: ClipboardWriter,
): Promise<void> => {
await writeText(path);
};