{"record":{"id":"e4dd9aa2d440c9d2","repo":"deepseek-ai/deepseek-harness","slug":"tool-str-replace-editor-description-must-be-non-e","errorCode":null,"errorMessage":"tool-str-replace-editor: description must be non-empty","messagePattern":"tool-str-replace-editor: description must be non-empty","errorType":"validation","errorClass":"Error","httpStatus":null,"severity":"error","filePath":"packages/fs/tool-str-replace-editor/src/index.ts","lineNumber":520,"sourceCode":"}\n\n/** Runtime configuration schema for the string-replacement editor tool. */\nexport const Config: z<Config> = z.object({\n  maxOutputChars: z.number().default(16_000),\n  description: z.string().default(DEFAULT_DESCRIPTION),\n})\n\n/** Register one `str_replace_editor` tool over `ctx.fs`. */\nexport function apply(ctx: Context, config: Config): void {\n  const resolved: ResolvedConfig = {\n    maxOutputChars: config.maxOutputChars ?? 16_000,\n    description: config.description ?? DEFAULT_DESCRIPTION,\n  }\n  if (!Number.isSafeInteger(resolved.maxOutputChars) || resolved.maxOutputChars <= 0) {\n    throw new Error('tool-str-replace-editor: maxOutputChars must be a positive safe integer')\n  }\n  if (resolved.description.trim().length === 0) {\n    throw new Error('tool-str-replace-editor: description must be non-empty')\n  }\n  registerStrReplaceEditor(ctx, resolved)\n}\n","sourceCodeStart":502,"sourceCodeEnd":524,"githubUrl":"https://github.com/deepseek-ai/deepseek-harness/blob/b150a551b8d465e31e418e1b2eaf5e79bbb7d28e/packages/fs/tool-str-replace-editor/src/index.ts#L502-L524","documentation":"Error \"tool-str-replace-editor: description must be non-empty\" thrown in deepseek-ai/deepseek-harness.","triggerScenarios":"Thrown at packages/fs/tool-str-replace-editor/src/index.ts:520 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"b150a551b8d465e31e418e1b2eaf5e79bbb7d28e","analyzedAt":"2026-08-24T18:12:29.105Z","schemaVersion":2},"datasetVersion":"2026-08-24T22:17:12.610Z"}