diff --git a/src/gateway/config-reload.ts b/src/gateway/config-reload.ts index 9be7f458a..8c3f7c231 100644 --- a/src/gateway/config-reload.ts +++ b/src/gateway/config-reload.ts @@ -297,6 +297,10 @@ export function startGatewayConfigReloader(opts: { } try { const snapshot = await opts.readSnapshot(); + if (!snapshot.exists) { + opts.log.warn("config reload skipped (config file not found; may be mid-write)"); + return; + } if (!snapshot.valid) { const issues = snapshot.issues.map((issue) => `${issue.path}: ${issue.message}`).join(", "); opts.log.warn(`config reload skipped (invalid config): ${issues}`);