Fix dashboard startup blocking on recovery

This commit is contained in:
gsxdsm
2026-04-12 23:50:51 -07:00
parent 55478b42b0
commit ca87a96cb4
4 changed files with 60 additions and 9 deletions

View File

@@ -17,6 +17,7 @@ import { CronRunner, createAiPromptExecutor } from "./cron-runner.js";
import { aiMergeTask } from "./merger.js";
import { PRIORITY_MERGE } from "./concurrency.js";
import { runtimeLog } from "./logger.js";
import type { HeartbeatMonitor, HeartbeatTriggerScheduler } from "./agent-heartbeat.js";
/**
* Callback for processing pull-request merge strategy.
@@ -258,6 +259,21 @@ export class ProjectEngine {
return this.automationStore;
}
/** Get the project's working directory. */
getWorkingDirectory(): string {
return this.config.workingDirectory;
}
/** Get the HeartbeatMonitor from the underlying runtime, if initialized. */
getHeartbeatMonitor(): HeartbeatMonitor | undefined {
return this.runtime.getHeartbeatMonitor();
}
/** Get the HeartbeatTriggerScheduler from the underlying runtime, if initialized. */
getHeartbeatTriggerScheduler(): HeartbeatTriggerScheduler | undefined {
return this.runtime.getTriggerScheduler();
}
/**
* Enqueue a task ID for auto-merge if it is not already queued or active.
* Exposed publicly so callers can integrate the engine's merge queue with