mirror of
https://github.com/Ark0N/Codeman.git
synced 2026-10-05 23:19:43 +02:00
chore: bump version to 0.1477
Location: Ko Samui Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -230,6 +230,17 @@ export class TranscriptWatcher extends EventEmitter {
|
||||
}
|
||||
});
|
||||
|
||||
// Add error handler to prevent unhandled errors and fall back to polling
|
||||
this.fileWatcher.on('error', (err) => {
|
||||
this.emit('transcript:error', err as Error);
|
||||
this.fileWatcher?.close();
|
||||
this.fileWatcher = null;
|
||||
// Fall back to polling on error
|
||||
if (this._isRunning) {
|
||||
this.startPolling();
|
||||
}
|
||||
});
|
||||
|
||||
// Initial read
|
||||
this.processNewContent();
|
||||
} catch (err) {
|
||||
|
||||
Reference in New Issue
Block a user