{"record":{"id":"e8149feaad3576a1","repo":"cline/cline","slug":"outcome-input-outcomeid-was-not-found","errorCode":null,"errorMessage":"Outcome \"${input.outcomeId}\" was not found","messagePattern":"Outcome \"(.+?)\" was not found","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"sdk/packages/core/src/extensions/tools/team/multi-agent.ts","lineNumber":1525,"sourceCode":"\t\tthis.emitEvent({\n\t\t\ttype: TeamMessageType.OutcomeCreated,\n\t\t\toutcome: { ...outcome },\n\t\t});\n\t\treturn { ...outcome };\n\t}\n\n\tlistOutcomes(): TeamOutcome[] {\n\t\treturn Array.from(this.outcomes.values()).map((outcome) => ({\n\t\t\t...outcome,\n\t\t}));\n\t}\n\n\tattachOutcomeFragment(\n\t\tinput: AttachTeamOutcomeFragmentInput,\n\t): TeamOutcomeFragment {\n\t\tconst outcome = this.outcomes.get(input.outcomeId);\n\t\tif (!outcome) {\n\t\t\tthrow new Error(`Outcome \"${input.outcomeId}\" was not found`);\n\t\t}\n\t\tif (!outcome.requiredSections.includes(input.section)) {\n\t\t\tthrow new Error(\n\t\t\t\t`Section \"${input.section}\" is not part of outcome \"${input.outcomeId}\"`,\n\t\t\t);\n\t\t}\n\t\tconst fragment: TeamOutcomeFragment = {\n\t\t\tid: `frag_${String(++this.outcomeFragmentCounter).padStart(5, \"0\")}`,\n\t\t\tteamId: this.teamId,\n\t\t\toutcomeId: input.outcomeId,\n\t\t\tsection: input.section,\n\t\t\tsourceAgentId: input.sourceAgentId,\n\t\t\tsourceRunId: input.sourceRunId,\n\t\t\tcontent: input.content,\n\t\t\tstatus: \"draft\",\n\t\t\tcreatedAt: new Date(),\n\t\t};\n\t\tthis.outcomeFragments.set(fragment.id, fragment);","sourceCodeStart":1507,"sourceCodeEnd":1543,"githubUrl":"https://github.com/cline/cline/blob/491b30b806fdb8c93513f821f2b87d63a61542f5/sdk/packages/core/src/extensions/tools/team/multi-agent.ts#L1507-L1543","documentation":"Error \"Outcome \"${input.outcomeId}\" was not found\" thrown in cline/cline.","triggerScenarios":"Thrown at sdk/packages/core/src/extensions/tools/team/multi-agent.ts:1525 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":"491b30b806fdb8c93513f821f2b87d63a61542f5","analyzedAt":"2026-08-25T13:45:22.367Z","schemaVersion":2},"datasetVersion":"2026-08-25T21:54:21.419Z"}