{"record":{"id":"27aa70b1abc41644","repo":"deepseek-ai/deepseek-harness","slug":"conversation-definition-context-kind-withdrew","errorCode":null,"errorMessage":"conversation Definition \"${context.kind}\" withdrew materialized target \"${target}\"; return the same key with hidden visibility instead","messagePattern":"conversation Definition \"(.+?)\" withdrew materialized target \"(.+?)\"; return the same key with hidden visibility instead","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"packages/client/runtime/src/client/sessions/conversation-assembler.ts","lineNumber":297,"sourceCode":"          timeline: this.locationIndex.snapshot(),\n        })\n      }\n      this.replacePending = false\n      this.dirty.clear()\n      this.timelineDirty = false\n      return true\n    }\n\n    const upsertsByTarget = new Map<string, ConversationViewNode[]>()\n    for (const target of this.views.keys()) upsertsByTarget.set(target, [])\n    if (this.applyDirtyLocationData()) this.timelineDirty = true\n    for (const context of this.dirty) {\n      const target = context.definition.target\n      if (target === undefined || !this.views.has(target)) continue\n      const previous = context.current.get(target) ?? null\n      const node = this.buildNode(context, target)\n      if (node === null && previous !== null) {\n        throw new Error(\n          `conversation Definition \"${context.kind}\" withdrew materialized target \"${target}\"; return the same key with hidden visibility instead`,\n        )\n      }\n      context.current.set(target, node)\n      if (node !== null) upsertsByTarget.get(target)?.push(node)\n    }\n    this.dirty.clear()\n    const timelineDirty = this.timelineDirty\n    this.timelineDirty = false\n    for (const view of this.views.values()) {\n      const upserts = upsertsByTarget.get(view.target) ?? []\n      if (upserts.length === 0 && !timelineDirty) continue\n      view.snapshot = view.builder.apply({\n        upserts,\n        timeline: this.locationIndex.snapshot(),\n      })\n    }\n    return true","sourceCodeStart":279,"sourceCodeEnd":315,"githubUrl":"https://github.com/deepseek-ai/deepseek-harness/blob/b150a551b8d465e31e418e1b2eaf5e79bbb7d28e/packages/client/runtime/src/client/sessions/conversation-assembler.ts#L279-L315","documentation":"Error \"conversation Definition \"${context.kind}\" withdrew materialized target \"${target}\"; return the same key with hidden visibility instead\" thrown in deepseek-ai/deepseek-harness.","triggerScenarios":"Thrown at packages/client/runtime/src/client/sessions/conversation-assembler.ts:297 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Return the same target key with hidden visibility instead of withdrawing a materialized target."],"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"}