diegosouzapw/OmniRoute · error · Error
Tunnel runtime is not ready
Error message
Tunnel runtime is not ready: ${status.detail} What it means
Readiness timeout in startTunnelRuntime's polling loop: the deadline elapsed while getTunnelRuntimeStatus kept reporting not-ok, with the status detail embedded in the message. The tunnel-client supervisor process started but its runtime endpoint never became healthy — wrong tunnel credentials, upstream connectivity, or a slow startup.
Solutions
- Check the embedded status.detail — it names the concrete failure from the runtime status endpoint
- Verify the Tunnel-ID and Runtime-Key are correct and the tunnel still exists upstream
- Increase the startup timeout and retry; a cold start can exceed the default window
- Inspect supervisor stderr/logs for tunnel-client startup errors
Defensive patterns
Strategy: retry
When it happens
Trigger: Thrown at open-sse/executors/chatgpt-web-codex/tunnelClient.ts:434 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of diegosouzapw/OmniRoute@a179ffed5b (2026-08-25).
Data as JSON: /api/errors/8d1389c1ce745866.
Report an issue: GitHub.
Appendix: source
Thrown at open-sse/executors/chatgpt-web-codex/tunnelClient.ts:434
clearTimeout(timer);
reject(error);
});
child.once("exit", (code, signal) => {
clearTimeout(timer);
if (code === 0 && !signal) resolve();
else
reject(
new Error(`Tunnel runtime startup failed (${code ?? signal}): ${safeDetail(stderr)}`)
);
});
});
const deadline = Date.now() + timeoutMs;
let status = await getTunnelRuntimeStatus(config);
while (!status.ok && Date.now() < deadline) {
await new Promise((resolve) => setTimeout(resolve, 250));
status = await getTunnelRuntimeStatus(config);
}
if (!status.ok) throw new Error(`Tunnel runtime is not ready: ${status.detail}`);
})();
connectedRuntimes.set(identity, connecting);
void connecting.catch(() => connectedRuntimes.delete(identity));
return connecting;
}
export async function stopChatGptWebCodexTunnelRuntime(): Promise<void> {
const paths = tunnelClientPaths();
if (ownsSupervisorLease && existsSync(paths.binary)) {
spawnSync(
paths.binary,
[
"runtimes",
"stop",
"omniroute-chatgpt-web-codex",
"--profile",
"omniroute",
"--profile-dir",View on GitHub (pinned to a179ffed5b)