{"record":{"id":"c91911d9068a8646","repo":"google-gemini/gemini-cli","slug":"warning-third-party-assets-not-found-at-srcthirdparty","errorCode":null,"errorMessage":"Warning: third_party assets not found at ${srcThirdParty}","messagePattern":"Warning: third_party assets not found at (.+?)","errorType":"console","errorClass":null,"httpStatus":null,"severity":"error","filePath":"packages/core/scripts/bundle-browser-mcp.mjs","lineNumber":96,"sourceCode":"    );\n\n    if (fs.existsSync(srcThirdParty)) {\n      if (fs.existsSync(destThirdParty)) {\n        fs.rmSync(destThirdParty, { recursive: true, force: true });\n      }\n      fs.cpSync(srcThirdParty, destThirdParty, {\n        recursive: true,\n        filter: (src) => {\n          // Skip large/unnecessary bundles that are either explicitly excluded\n          // or not required for the browser agent functionality.\n          return (\n            !src.includes('lighthouse-devtools-mcp-bundle.js') &&\n            !src.includes('devtools-formatter-worker.js')\n          );\n        },\n      });\n    } else {\n      console.warn(`Warning: third_party assets not found at ${srcThirdParty}`);\n    }\n\n    // Sanitize any hardcoded sensitive API keys in the bundled and copied output files.\n    // Replace the plaintext Google CrUX API key with dynamic process.env lookup at runtime.\n    const bundleMcpFile = path.resolve(\n      __dirname,\n      '../dist/bundled/chrome-devtools-mcp.mjs',\n    );\n    const destThirdPartyIndex = path.resolve(\n      __dirname,\n      '../dist/bundled/third_party/index.js',\n    );\n\n    const sanitizeFile = (filePath) => {\n      if (fs.existsSync(filePath)) {\n        const content = fs.readFileSync(filePath, 'utf8');\n        const keyPattern = /AIzaSy[A-Za-z0-9_-]{30,40}/;\n        if (keyPattern.test(content)) {","sourceCodeStart":78,"sourceCodeEnd":114,"githubUrl":"https://github.com/google-gemini/gemini-cli/blob/6a466a7e2fe2b1255752c1e74f69b31f0216084d/packages/core/scripts/bundle-browser-mcp.mjs#L78-L114","documentation":"The browser-MCP bundling script found no third_party source directory at the expected path, so it skipped copying bundled third-party assets. This is a build-time warning (printed to stdout) rather than a failure; the bundle is produced without those assets.","triggerScenarios":"Thrown at packages/core/scripts/bundle-browser-mcp.mjs:96 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Run the prerequisite build steps that populate the third_party directory","Verify the expected source path matches the repository layout","Ignore if the browser assets are intentionally excluded from this build"],"exampleFix":null,"handlingStrategy":"fallback","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"6a466a7e2fe2b1255752c1e74f69b31f0216084d","analyzedAt":"2026-09-16T18:14:43.978Z","contentChangedAt":"2026-09-16T18:14:43.978Z","schemaVersion":2},"datasetVersion":"2026-09-23T08:17:48.524Z"}