feat: run doctor after restart

This commit is contained in:
Peter Steinberger
2026-01-10 23:14:55 +01:00
parent 4eb6aec016
commit 494743a4e5
6 changed files with 74 additions and 1 deletions

View File

@@ -28,11 +28,12 @@ export type RestartSentinelStats = {
};
export type RestartSentinelPayload = {
kind: "config-apply" | "update";
kind: "config-apply" | "update" | "restart";
status: "ok" | "error" | "skipped";
ts: number;
sessionKey?: string;
message?: string | null;
doctorHint?: string | null;
stats?: RestartSentinelStats | null;
};
@@ -43,6 +44,9 @@ export type RestartSentinel = {
const SENTINEL_FILENAME = "restart-sentinel.json";
export const DOCTOR_NONINTERACTIVE_HINT =
"Run: clawdbot doctor --non-interactive";
export function resolveRestartSentinelPath(
env: NodeJS.ProcessEnv = process.env,
): string {