{"record":{"id":"93b6677a4a16e057","repo":"openclaw/openclaw","slug":"copilot-attempt-githubtoken-auth-requires-profil","errorCode":null,"errorMessage":"[copilot-attempt] gitHubToken auth requires profileId+profileVersion (pool keying safety; per Q5/Q1 decisions)","messagePattern":"\\[copilot-attempt\\] gitHubToken auth requires profileId\\+profileVersion \\(pool keying safety; per Q5/Q1 decisions\\)","errorType":"exception","errorClass":"Error","httpStatus":null,"severity":"error","filePath":"extensions/copilot/src/auth-bridge.ts","lineNumber":177,"sourceCode":"  });\n\n  const explicitToken = readNonEmptyString(input.auth?.gitHubToken);\n  const explicitProfileId =\n    readNonEmptyString(input.auth?.profileId) ?? readNonEmptyString(input.authProfileId);\n  const explicitProfileVersion =\n    readNonEmptyString(input.auth?.profileVersion) ?? readNonEmptyString(input.profileVersion);\n\n  if (input.auth?.useLoggedInUser === true) {\n    return {\n      authMode: \"useLoggedInUser\",\n      copilotHome,\n      agentId,\n    };\n  }\n\n  if (explicitToken) {\n    if (!explicitProfileId || !explicitProfileVersion) {\n      throw new Error(COPILOT_TOKEN_PROFILE_ERROR);\n    }\n    return {\n      authMode: \"gitHubToken\",\n      gitHubToken: explicitToken,\n      authProfileId: explicitProfileId,\n      authProfileVersion: explicitProfileVersion,\n      copilotHome,\n      agentId,\n    };\n  }\n\n  // Contract-resolved token from core's AuthProfileStore lookup. This\n  // is the production main path: a configured `github-copilot` auth\n  // profile flows into `EmbeddedRunAttemptParams.resolvedApiKey` and\n  // `authProfileId` upstream of the harness, and we consume both here\n  // so headless / cron / multi-profile runs work without env vars.\n  // We synthesise the pool-key version from the token fingerprint so\n  // rotation busts the cache cleanly (matching the env-fallback","sourceCodeStart":159,"sourceCodeEnd":195,"githubUrl":"https://github.com/openclaw/openclaw/blob/01804a75319da4b69c9ab98ceaa30477e22b8c0b/extensions/copilot/src/auth-bridge.ts#L159-L195","documentation":"Error \"[copilot-attempt] gitHubToken auth requires profileId+profileVersion (pool keying safety; per Q5/Q1 decisions)\" thrown in openclaw/openclaw.","triggerScenarios":"Thrown at extensions/copilot/src/auth-bridge.ts:177 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":"01804a75319da4b69c9ab98ceaa30477e22b8c0b","analyzedAt":"2026-08-12T04:37:58.197Z","schemaVersion":2},"datasetVersion":"2026-08-12T12:31:55.035Z"}