fix: resolve critical worker crashes on startup (v8.0.2 regression)
Fixes #417, #418, #421, #422, #425 1. Handle Chroma sync errors gracefully in DatabaseManager to prevent unhandled promise rejections. 2. Safely handle missing 'claude' executable in SDKAgent with try-catch block around auto-detection.
This commit is contained in:
@@ -31,7 +31,9 @@ export class DatabaseManager {
|
||||
this.chromaSync = new ChromaSync('claude-mem');
|
||||
|
||||
// Start background backfill (fire-and-forget)
|
||||
this.chromaSync.ensureBackfilled();
|
||||
this.chromaSync.ensureBackfilled().catch(error => {
|
||||
logger.error('DB', 'Chroma backfill failed (non-fatal)', {}, error);
|
||||
});
|
||||
|
||||
logger.info('DB', 'Database initialized');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user