fix(ExportOrchestrator): Add pluginName to TempDirectoryManager.create() for targeted cleanup

- Fixed TempDirectoryManager.create() to pass plugin.manifest.id instead of undefined
- Ensures temp directory cleanup targets only this plugin's directories
- Prevents interference with other plugins' temp directories
- Improves plugin isolation and cleanup reliability
- Follows proper plugin namespacing patterns established earlier

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
Jarvis committed 2025-09-25 16:30:53 +02:00
1 parent c4062d66b0
commit 97b356a912
1 file changed
+1 -1
+1 -1
View File
@@ -254,7 +254,7 @@ export class ExportOrchestrator {
// Clean up temporary directories
try {
const cleanupManager = TempDirectoryManager.create(vaultPath, this.plugin.app.vault.configDir, undefined, this.plugin.app);
const cleanupManager = TempDirectoryManager.create(vaultPath, this.plugin.app.vault.configDir, this.plugin.manifest.id, this.plugin.app);
await cleanupManager.cleanupAllTempDirs();
} catch (cleanupError) {
console.warn('Export: Failed to clean up temporary directories:', cleanupError);