{"record":{"id":"2f9a925ca7b9da91","repo":"diegosouzapw/OmniRoute","slug":"hot-reload-runtime-config-reload-failed-for-so","errorCode":null,"errorMessage":"[HOT_RELOAD] Runtime config reload failed for ${source}:","messagePattern":"\\[HOT_RELOAD\\] Runtime config reload failed for (.+?):","errorType":"console","errorClass":null,"httpStatus":null,"severity":"error","filePath":"src/lib/config/hotReload.ts","lineNumber":52,"sourceCode":"      .join(\", \")}`\n  );\n}\n\nasync function runHotReloadCheck(source: string) {\n  const settings = await getSettings();\n  const changes = await applyRuntimeSettings(settings, { source });\n  logChanges(source, changes);\n}\n\nfunction queueHotReloadCheck(source: string) {\n  if (activeCheck) {\n    queuedSource = source;\n    return;\n  }\n\n  activeCheck = runHotReloadCheck(source)\n    .catch((error) => {\n      console.warn(\n        `[HOT_RELOAD] Runtime config reload failed for ${source}:`,\n        error instanceof Error ? error.message : error\n      );\n    })\n    .finally(() => {\n      activeCheck = null;\n      if (!queuedSource) return;\n      const nextSource = queuedSource;\n      queuedSource = null;\n      queueHotReloadCheck(nextSource);\n    });\n}\n\nexport function startRuntimeConfigHotReload(options: { pollIntervalMs?: number } = {}) {\n  if (pollTimer || sqliteWatcher) return;\n\n  const pollIntervalMs = Math.max(\n    options.pollIntervalMs || getPollIntervalMs(),","sourceCodeStart":34,"sourceCodeEnd":70,"githubUrl":"https://github.com/diegosouzapw/OmniRoute/blob/a179ffed5bb2e0b883b9ae7214ce8717b2a94c4d/src/lib/config/hotReload.ts#L34-L70","documentation":"A runtime hot-reload configuration check (triggered by settings change, poll tick, or SQLite file watch) failed while applying runtime settings via applyRuntimeSettings. The error was caught so the watcher/queue loop keeps running, but the config change that triggered it was not applied — the process keeps the previous runtime configuration.","triggerScenarios":"Thrown at src/lib/config/hotReload.ts:52 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Inspect the logged error to find which setting failed to apply","Fix or remove the invalid setting value in the settings store","Trigger another settings change or wait for the next poll tick to re-run the reload"],"exampleFix":null,"handlingStrategy":"try-catch","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"a179ffed5bb2e0b883b9ae7214ce8717b2a94c4d","analyzedAt":"2026-08-25T18:35:09.898Z","contentChangedAt":null,"schemaVersion":2},"datasetVersion":"2026-09-23T08:17:48.524Z"}