deepseek-ai/deepseek-harness · error · Error
terminal-bash: ${name} must be a positive safe integer
Error message
terminal-bash: ${name} must be a positive safe integer What it means
Error "terminal-bash: ${name} must be a positive safe integer" thrown in deepseek-ai/deepseek-harness.
Source
Thrown at packages/terminal/terminal-bash/src/config.ts:113
exactProbeAfterMs: z.number().default(150),
idleSilenceMs: z.number().default(3_000),
handoffGraceMs: z.number().default(500),
timeoutMs: z.number().default(30_000),
disposeGraceMs: z.number().default(3_000),
})
/**
* Assert every effective numeric config field is a positive safe integer and bounds compose.
* @param config - Schemastery-resolved plugin configuration.
* @returns Narrows the input to the fully resolved configuration.
*/
export function validateConfig(config: Config): asserts config is ResolvedConfig {
const resolved = config as ResolvedConfig
if (resolved.backendType.length === 0) throw new Error('terminal-bash: backendType must be non-empty')
if (resolved.shellPath.length === 0) throw new Error('terminal-bash: shellPath must be non-empty')
for (const [name, value] of Object.entries(resolved)) {
if (typeof value === 'number' && (!Number.isSafeInteger(value) || value <= 0)) {
throw new Error(`terminal-bash: ${name} must be a positive safe integer`)
}
}
if (resolved.maxReadBytes > resolved.scrollbackMaxBytes) {
throw new Error('terminal-bash: maxReadBytes must not exceed scrollbackMaxBytes')
}
if (resolved.handoffGraceMs < resolved.pollIntervalMs) {
throw new Error('terminal-bash: handoffGraceMs must be at least pollIntervalMs so one readiness poll runs inside the grace window')
}
}
View on GitHub (pinned to b150a551b8)
Solutions
- Set the named option to a positive safe integer.
When it happens
Trigger: Thrown at packages/terminal/terminal-bash/src/config.ts:113 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/17cc9dddea5363ff.
Report an issue: GitHub.