deepseek-ai/deepseek-harness · error · Error
${name} is not available in a dynamic client half — ${redire
Error message
${name} is not available in a dynamic client half — ${redirect} What it means
Error "${name} is not available in a dynamic client half — ${redirect}" thrown in deepseek-ai/deepseek-harness.
Source
Thrown at packages/extensions/cordis-client-runner/src/client/evaluator.ts:59
* engine's own bare text, and the author needs the redirect either way.
*/
export const DYNAMIC_CLIENT_REDIRECTS: Readonly<Record<string, string>> = {
setTimeout: TIMER_REDIRECT,
setInterval: TIMER_REDIRECT,
clearTimeout: TIMER_REDIRECT,
clearInterval: TIMER_REDIRECT,
fetch:
'network belongs to the HOST half: register a handler there with harness.handle(method, fn) and call it here via host.call(method, args).',
require:
'modules cannot be imported here. React arrives as the `React` closure symbol; everything else goes through ctx services or host.call.',
}
/** Callable teaching traps shadowing the ambient globals the closure must not reach. */
function closureTraps(): Record<string, () => never> {
const traps: Record<string, () => never> = {}
for (const [name, redirect] of Object.entries(DYNAMIC_CLIENT_REDIRECTS)) {
traps[name] = (): never => {
throw new Error(`${name} is not available in a dynamic client half — ${redirect}`)
}
}
return traps
}
/** The `harness` seat exists only host-side; any touch teaches the split. */
function harnessTrap(): unknown {
return new Proxy({}, {
get(_target, prop) {
throw new Error(
`harness.${String(prop)} belongs to the HOST half (\`code\`): register handlers there with harness.handle(method, fn); `
+ 'the browser half calls them via host.call(method, args).',
)
},
})
}
/** Per-package style-tag bookkeeping behind the `styles.insert` symbol. */View on GitHub (pinned to b150a551b8)
When it happens
Trigger: Thrown at packages/extensions/cordis-client-runner/src/client/evaluator.ts:59 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/441affa26d06cfeb.
Report an issue: GitHub.