Delete each uploaded source as soon as its links and queue state are saved

Previously sources were only removed when the whole upload batch ended. In
automation mode a batch keeps growing for hours, so hundreds of finished
files stayed on disk. A file is now removed once every required hoster
succeeded, its links are flushed to the upload log, the automation ledger
is written and the renderer confirmed the queue save. Without that evidence
the file still waits for the batch end as before.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
SucukdeluxeandClaude Opus 5.5 committed 2026-10-21 02:59:54 +02:00
1 parent 58da562e65
commit d12a5de45b
6 files changed
+201 -6

No files matched your search

+1
View File
@@ -29,6 +29,7 @@ const sourceFiles = [
'lib/diagnostics-agent.js',
'lib/diagnostics-collectors.js',
'lib/doodstream-upload.js',
'lib/early-source-cleanup.js',
'lib/file-probe.js',
'lib/file-discovery.js',
'lib/folder-monitor.js',