deepseek-ai/deepseek-harness · error · Error
ToolResultPruneConfig: ${name} (${value}) must be a positive
Error message
ToolResultPruneConfig: ${name} (${value}) must be a positive integer What it means
Error "ToolResultPruneConfig: ${name} (${value}) must be a positive integer" thrown in deepseek-ai/deepseek-harness.
Source
Thrown at packages/compaction/compaction-tool-result-pruner/src/config.ts:69
assertPositiveInteger('thresholdChars', resolved.thresholdChars)
assertNonNegativeInteger('headChars', resolved.headChars)
assertNonNegativeInteger('tailChars', resolved.tailChars)
const emittedChars = resolved.headChars
+ codePointLength(PRUNE_MARKER)
+ resolved.tailChars
if (emittedChars > resolved.thresholdChars) {
throw new Error(
`ToolResultPruneConfig: headChars + marker + tailChars (${emittedChars}) `
+ `must be at most thresholdChars (${resolved.thresholdChars})`,
)
}
return deepFreeze(structuredClone(resolved))
}
function assertPositiveInteger(name: string, value: number): void {
if (!Number.isInteger(value) || value <= 0) {
throw new Error(`ToolResultPruneConfig: ${name} (${value}) must be a positive integer`)
}
}
function assertNonNegativeInteger(name: string, value: number): void {
if (!Number.isInteger(value) || value < 0) {
throw new Error(`ToolResultPruneConfig: ${name} (${value}) must be a non-negative integer`)
}
}
View on GitHub (pinned to b150a551b8)
Solutions
- Set the config value to a positive integer.
When it happens
Trigger: Thrown at packages/compaction/compaction-tool-result-pruner/src/config.ts:69 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/91a4f74a7151bfcd.
Report an issue: GitHub.