chore: bump version to 0.1436

This commit is contained in:
arkon
2026-01-30 11:39:15 +01:00
parent 1fb06ecf47
commit 0020ae5a3e
5 changed files with 31 additions and 15 deletions
+13 -2
View File
@@ -705,8 +705,11 @@ export class RespawnController extends EventEmitter {
if (c.aiPlanCheckMaxContext <= 0) c.aiPlanCheckMaxContext = DEFAULT_CONFIG.aiPlanCheckMaxContext;
}
/** Wire up AI checker events to controller events */
/** Wire up AI checker events to controller events (removes existing listeners first to prevent duplicates) */
private setupAiCheckerListeners(): void {
// Remove any existing listeners to prevent duplicates when restarting
this.aiChecker.removeAllListeners();
this.aiChecker.on('log', (message: string) => {
this.log(message);
});
@@ -728,8 +731,11 @@ export class RespawnController extends EventEmitter {
});
}
/** Wire up plan checker events to controller events */
/** Wire up plan checker events to controller events (removes existing listeners first to prevent duplicates) */
private setupPlanCheckerListeners(): void {
// Remove any existing listeners to prevent duplicates when restarting
this.planChecker.removeAllListeners();
this.planChecker.on('log', (message: string) => {
this.log(message);
});
@@ -996,6 +1002,11 @@ export class RespawnController extends EventEmitter {
this.log('Starting respawn controller (multi-layer detection)');
// Re-setup AI checker listeners in case they were removed by a previous stop()
// This allows the controller to be restarted after being stopped
this.setupAiCheckerListeners();
this.setupPlanCheckerListeners();
// Initialize all timestamps and reset hook state
const now = Date.now();
this.lastActivityTime = now;