Skip to content

A reactive notebook for Python — run reproducible experiments, query with SQL, execute as a script, deploy as an app, and version with git. Stored as pure Python. All in a modern, AI-native editor.

fix(frontend): skip /health checks for static notebooks (#9498)

Myles Scolnick3be8cdf2180c
diff --git a/frontend/src/core/runtime/runtime.ts b/frontend/src/core/runtime/runtime.ts
index 24bcc8fe71..6cce29d6c6 100644
--- a/frontend/src/core/runtime/runtime.ts
+++ b/frontend/src/core/runtime/runtime.ts
@@ -5,6 +5,7 @@ import { Logger } from "@/utils/Logger";
import { KnownQueryParams } from "../constants";
import { isIslands } from "../islands/utils";
import { getSessionId, type SessionId } from "../kernel/session";
+import { isStaticNotebook } from "../static/static-state";
import { isWasm } from "../wasm/utils";
import type { RuntimeConfig } from "./types";
@@ -178,8 +179,8 @@ export class RuntimeManager {
}
async isHealthy(): Promise<boolean> {
- // Always healthy if WASM
- if (isWasm() || isIslands()) {
+ // Always healthy if WASM, Islands, or a static notebook (no server)
+ if (isWasm() || isIslands() || isStaticNotebook()) {
return true;
}