The folder automation re-admitted a file every minute when the user had removed its jobs while a hoster was still missing, because nothing recorded the removal. Removing automatic jobs (selected, all, per hoster or through MCP) now stores the file path and identity in automation-dismissals.json. The automation skips such files until the file changes or the user adds it manually again. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
13178512bf
commit
f64fe23019
8 files changed
+176
-11
No files matched your search
@@ -49,7 +49,7 @@ const { UploadStatistics } = require('./lib/upload-statistics');
|
||||
const { createCollectors } = require('./lib/diagnostics-collectors');
|
||||
const { buildSessionReport, buildSessionReportCsv } = require('./lib/session-report');
|
||||
const { inspectImportEntries, inspectReadableImportPath } = require('./lib/import-preflight');
|
||||
const { normalizeAutomationSettings, automationCompletionKey, createAutomationCompletionWriter, isPathWithinAutomationFolder, normalizeAutomationCompletion } = require('./lib/automation-control');
|
||||
const { normalizeAutomationSettings, automationCompletionKey, createAutomationCompletionWriter, isPathWithinAutomationFolder, normalizeAutomationCompletion, normalizeAutomationDismissal } = require('./lib/automation-control');
|
||||
const { McpService } = require('./lib/mcp-service');
|
||||
const { createMcpApp } = require('./lib/mcp-app');
|
||||
const { requiresMcpConfirmation } = require('./lib/mcp-tools');
|
||||
@@ -4124,6 +4124,25 @@ ipcMain.handle('automation:record-completions', async (_event, entries) => {
|
||||
return true;
|
||||
});
|
||||
|
||||
ipcMain.handle('automation:get-dismissals', () => {
|
||||
return configStore.loadAutomationDismissals();
|
||||
});
|
||||
|
||||
ipcMain.handle('automation:dismiss-files', async (_event, entries) => {
|
||||
const source = Array.isArray(entries) ? entries.slice(0, 5000) : [];
|
||||
const normalized = source.map(normalizeAutomationDismissal);
|
||||
if (source.length === 0 || normalized.some(entry => !entry)) throw new Error('Entfernte Automatik-Dateien sind ungültig');
|
||||
await configStore.addAutomationDismissals(normalized);
|
||||
return true;
|
||||
});
|
||||
|
||||
ipcMain.handle('automation:undismiss-files', async (_event, paths) => {
|
||||
const source = Array.isArray(paths) ? paths.slice(0, 5000).filter(value => typeof value === 'string' && value.trim()) : [];
|
||||
if (source.length === 0) return true;
|
||||
await configStore.removeAutomationDismissals(source);
|
||||
return true;
|
||||
});
|
||||
|
||||
ipcMain.handle('automation:pause-after-active', () => {
|
||||
assertConfigWriteAllowed();
|
||||
const intent = { pausedAt: Date.now() };
|
||||
|
||||
Reference in new issue
Block a user