{"record":{"id":"7b3d0abcf222adf5","repo":"diegosouzapw/OmniRoute","slug":"startup-could-not-scan-combos-for-model-name-col","errorCode":null,"errorMessage":"[STARTUP] Could not scan combos for model-name collisions (non-fatal):","messagePattern":"\\[STARTUP\\] Could not scan combos for model-name collisions \\(non-fatal\\):","errorType":"console","errorClass":null,"httpStatus":null,"severity":"error","filePath":"src/instrumentation-node.ts","lineNumber":232,"sourceCode":" * tested directly without exercising the rest of the startup sequence.\n */\nexport async function scanComboModelNameCollisionsAtBoot(): Promise<void> {\n  try {\n    const [{ getCombos }, { scanCombosForModelCollisions }] = await Promise.all([\n      import(\"@/lib/db/combos\"),\n      import(\"@/lib/combos/modelNameCollision\"),\n    ]);\n    const collisions = scanCombosForModelCollisions(await getCombos());\n    if (collisions.length > 0) {\n      console.warn(\n        `[STARTUP] ${collisions.length} combo(s) share a name with a real model id (#8530) — ` +\n          \"intentional per #6940 bare-model-id fallback, but confirm each is expected: \" +\n          collisions.map((c) => `${c.comboName}→${c.providerId}/${c.modelId}`).join(\", \")\n      );\n    }\n  } catch (err: unknown) {\n    const msg = err instanceof Error ? err.message : String(err);\n    console.warn(\"[STARTUP] Could not scan combos for model-name collisions (non-fatal):\", msg);\n  }\n}\n\n/**\n * #9654 U7: fold a dashboard DB toggle for the adaptive virtual-lanes flag into\n * the process-global admission runtime's env at boot. Env-wins: no-op when the\n * operator's OMNIROUTE_CHAT_VIRTUAL_LANES env var is set (the lazy runtime\n * already reads process.env correctly). The runtime reads env only at\n * construction, so this must run before the first request touches it — hence\n * awaited here, after ensureDbReadyForBoot(). Non-fatal.\n *\n * Exported (rather than inline in registerNodejs()) so it can be unit tested\n * directly without exercising the rest of the startup sequence.\n */\nexport async function warmAdaptiveVirtualLanesIntoRuntime(): Promise<void> {\n  try {\n    const { warmAdaptiveVirtualLanesIntoRuntime: warm } =\n      await import(\"@/lib/admissionVirtualLanes\");","sourceCodeStart":214,"sourceCodeEnd":250,"githubUrl":"https://github.com/diegosouzapw/OmniRoute/blob/a179ffed5bb2e0b883b9ae7214ce8717b2a94c4d/src/instrumentation-node.ts#L214-L250","documentation":"Error \"[STARTUP] Could not scan combos for model-name collisions (non-fatal):\" thrown in diegosouzapw/OmniRoute.","triggerScenarios":"Thrown at src/instrumentation-node.ts:232 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"a179ffed5bb2e0b883b9ae7214ce8717b2a94c4d","analyzedAt":"2026-08-25T18:35:09.898Z","schemaVersion":2},"datasetVersion":"2026-08-25T21:54:21.419Z"}