{"record":{"id":"9f0391eba9a467aa","repo":"cline/cline","slug":"teammate-agentid-was-not-found","errorCode":null,"errorMessage":"Teammate \"${agentId}\" was not found","messagePattern":"Teammate \"(.+?)\" was not found","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"sdk/packages/core/src/extensions/tools/team/multi-agent.ts","lineNumber":910,"sourceCode":"\t\t\t\tmodelId: config.modelId,\n\t\t\t\tmaxIterations: config.maxIterations,\n\t\t\t\truntimeAgentId: agent.getAgentId(),\n\t\t\t\tconversationId: agent.getConversationId(),\n\t\t\t\tparentAgentId: null,\n\t\t\t},\n\t\t});\n\t\treturn {\n\t\t\tagentId: teammate.agentId,\n\t\t\trole: teammate.role,\n\t\t\tdescription: teammate.description,\n\t\t\tstatus: teammate.status,\n\t\t};\n\t}\n\n\tshutdownTeammate(agentId: string, reason?: string): void {\n\t\tconst member = this.members.get(agentId);\n\t\tif (!member || member.role !== \"teammate\") {\n\t\t\tthrow new Error(`Teammate \"${agentId}\" was not found`);\n\t\t}\n\t\ttry {\n\t\t\tmember.agent?.abort();\n\t\t} catch (error) {\n\t\t\tif (!isAbortLikeError(error)) {\n\t\t\t\tthrow error;\n\t\t\t}\n\t\t}\n\t\tmember.status = \"stopped\";\n\t\tthis.emitEvent({ type: TeamMessageType.TeammateShutdown, agentId, reason });\n\t}\n\n\tupdateTeammateConnections(\n\t\toverrides: Partial<Pick<AgentConfig, \"apiKey\" | \"baseUrl\" | \"headers\">>,\n\t): void {\n\t\tfor (const member of this.members.values()) {\n\t\t\tif (member.role !== \"teammate\" || !member.agent) {\n\t\t\t\tcontinue;","sourceCodeStart":892,"sourceCodeEnd":928,"githubUrl":"https://github.com/cline/cline/blob/491b30b806fdb8c93513f821f2b87d63a61542f5/sdk/packages/core/src/extensions/tools/team/multi-agent.ts#L892-L928","documentation":"Error \"Teammate \"${agentId}\" was not found\" thrown in cline/cline.","triggerScenarios":"Thrown at sdk/packages/core/src/extensions/tools/team/multi-agent.ts:910 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"}