deepseek-ai/deepseek-harness · error · Error
cordis-client-runner: window.__ModuleLoader__ is missing (bo
Error message
cordis-client-runner: window.__ModuleLoader__ is missing (booted outside the web shell?)
What it means
Error "cordis-client-runner: window.__ModuleLoader__ is missing (booted outside the web shell?)" thrown in deepseek-ai/deepseek-harness.
Source
Thrown at packages/extensions/cordis-client-runner/src/client/runtime.ts:374
} catch (error) {
styles.dispose()
return { ok: false, cause: 'evaluate', ...errorDetails(error), error }
}
const pkg: DynamicCordisPackage = {
pluginId: half.pluginId,
packageId: half.packageId,
pluginRunId: half.pluginRunId,
name: half.name,
}
const surface = this.guardedSurface(pkg, half.agentId, plugin, ledger)
const moduleId = moduleIdOf(half.pluginId)
// Invalidate-then-register keeps re-loading legal: the module table throws
// loudly on a duplicate factory registration.
this.env.modules.invalidate(moduleId)
const sink = (globalThis as ModuleLoaderSink).__ModuleLoader__
if (sink === undefined) {
throw new Error('cordis-client-runner: window.__ModuleLoader__ is missing (booted outside the web shell?)')
}
sink.load({ id: moduleId, factory: () => surface })
const entryId = await this.env.loader.create({ name: moduleId })
const fiber = this.env.loader.resolve(entryId).fiber
if (fiber === undefined) {
await this.teardown(half.pluginId, entryId, styles)
return { ok: false, cause: 'module-import', message: 'module import failed (see the browser console)' }
}
try {
await fiber.await()
} catch (error) {
await this.teardown(half.pluginId, entryId, styles)
return { ok: false, cause: 'activate', ...errorDetails(error), error }
}
// Settled but not active = legal pending on an unsatisfied declaration. The
// record is seated only now, so an error mirrored during `apply` cannot
// claim the package is already live.View on GitHub (pinned to b150a551b8)
When it happens
Trigger: Thrown at packages/extensions/cordis-client-runner/src/client/runtime.ts:374 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of deepseek-ai/deepseek-harness@b150a551b8 (2026-08-24).
Data as JSON: /api/errors/c2d1f8d63c2e3809.
Report an issue: GitHub.