{"record":{"id":"c1e796e7ced9bfb6","repo":"cline/cline","slug":"connector-cli-launch-information-is-unavailable","errorCode":null,"errorMessage":"connector CLI launch information is unavailable","messagePattern":"connector CLI launch information is unavailable","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"sdk/packages/core/src/services/connectors/connector-cleanup.ts","lineNumber":36,"sourceCode":" *\n * What has to be cleaned up — the process state file, thread→session bindings,\n * and the hub sessions the connector owned — is all connector-specific knowledge\n * that lives in the CLI's adapters. Rather than duplicate those conventions in\n * the hub, the supervisor shells back into the CLI's own stop path, which\n * already does exactly this for a process that is no longer running.\n *\n * `--cleanup-instance` deliberately preserves the autostart record: the instance\n * died, it was not retired, so the supervisor still intends to restart it.\n */\nexport async function cleanupConnectorInstanceViaCli(\n\tchannel: string,\n\tinstanceId: string,\n\toptions: CleanupConnectorInstanceOptions = {},\n): Promise<void> {\n\tconst spec =\n\t\t\"launchSpec\" in options ? options.launchSpec : readConnectorCliLaunchSpec();\n\tif (!spec) {\n\t\tthrow new Error(\"connector CLI launch information is unavailable\");\n\t}\n\tconst spawnProcess = options.spawnProcess ?? spawn;\n\tconst timeoutMs = options.timeoutMs ?? CLEANUP_TIMEOUT_MS;\n\n\tawait new Promise<void>((resolve, reject) => {\n\t\tlet settled = false;\n\t\tlet timer: ReturnType<typeof setTimeout> | undefined;\n\t\tconst finish = (error?: Error) => {\n\t\t\tif (settled) {\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tsettled = true;\n\t\t\tif (timer) {\n\t\t\t\tclearTimeout(timer);\n\t\t\t}\n\t\t\tif (error) {\n\t\t\t\treject(error);\n\t\t\t} else {","sourceCodeStart":18,"sourceCodeEnd":54,"githubUrl":"https://github.com/cline/cline/blob/491b30b806fdb8c93513f821f2b87d63a61542f5/sdk/packages/core/src/services/connectors/connector-cleanup.ts#L18-L54","documentation":"Error \"connector CLI launch information is unavailable\" thrown in cline/cline.","triggerScenarios":"Thrown at sdk/packages/core/src/services/connectors/connector-cleanup.ts:36 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"}