{"record":{"id":"0470a0f630d68a54","repo":"deepseek-ai/deepseek-harness","slug":"subagent-not-found","errorCode":"subagent-not-found","errorMessage":"session \"${childSessionId}\" is not a ${mode} direct child of \"${parentSessionId}\"","messagePattern":"session \"(.+?)\" is not a (.+?) direct child of \"(.+?)\"","errorType":"error_code","errorClass":null,"httpStatus":null,"severity":"error","filePath":"packages/host/apiproxy/src/api-proxy.ts","lineNumber":2575,"sourceCode":"          if (error instanceof SubagentError && error.code === 'SUBAGENT_CONTROL_PROJECTIONS_UNAVAILABLE') {\n            return err(request, projectionsUnavailableError())\n          }\n          return err(request, {\n            code: 'internal',\n            message: 'subagent catalog read failed',\n            details: {},\n          })\n        }\n      },\n\n      async history(request, signal) {\n        const {\n          parentSessionId, childSessionId, mode, beforeSeq, maxMessages,\n        } = request.payload\n        const verified = await catalogChild(ctx, {\n          parentSessionId, childSessionId, mode,\n        }, signal)\n        if (verified.error !== undefined) return err(request, verified.error)\n        // The generic-history data plane: an attached child serves its\n        // in-memory snapshot and the registry's live watermark projections; a\n        // cold child is one persistence inspection plus a detached fold.\n        let header: SessionHeader\n        let events: SessionEvent[]\n        let projections: SessionProjectionsBlock | undefined\n        const attached = ctx.sessions.get(childSessionId)\n        if (attached !== undefined) {\n          header = attached.header\n          events = [...attached.events]\n          projections = beforeSeq === undefined\n            ? subagentHistoryProjections(ctx, childSessionId, () => projectionsFor(ctx, attached))\n            : undefined\n        } else {\n          try {\n            const inspected = await inspectServable(childSessionId)\n            header = inspected.meta\n            events = inspected.events","sourceCodeStart":2557,"sourceCodeEnd":2593,"githubUrl":"https://github.com/deepseek-ai/deepseek-harness/blob/b150a551b8d465e31e418e1b2eaf5e79bbb7d28e/packages/host/apiproxy/src/api-proxy.ts#L2557-L2593","documentation":"Error \"session \"${childSessionId}\" is not a ${mode} direct child of \"${parentSessionId}\"\" thrown in deepseek-ai/deepseek-harness.","triggerScenarios":"Thrown at packages/host/apiproxy/src/api-proxy.ts:2575 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Use the correct parent and child session ids; the child must be a direct child of the parent in the given mode."],"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"}