openclaw/openclaw · error · Error

[copilot-attempt] gitHubToken auth requires profileId+profil

Error message

[copilot-attempt] gitHubToken auth requires profileId+profileVersion (pool keying safety; per Q5/Q1 decisions)

What it means

Error "[copilot-attempt] gitHubToken auth requires profileId+profileVersion (pool keying safety; per Q5/Q1 decisions)" thrown in openclaw/openclaw.

Source

Thrown at extensions/copilot/src/auth-bridge.ts:177

  });

  const explicitToken = readNonEmptyString(input.auth?.gitHubToken);
  const explicitProfileId =
    readNonEmptyString(input.auth?.profileId) ?? readNonEmptyString(input.authProfileId);
  const explicitProfileVersion =
    readNonEmptyString(input.auth?.profileVersion) ?? readNonEmptyString(input.profileVersion);

  if (input.auth?.useLoggedInUser === true) {
    return {
      authMode: "useLoggedInUser",
      copilotHome,
      agentId,
    };
  }

  if (explicitToken) {
    if (!explicitProfileId || !explicitProfileVersion) {
      throw new Error(COPILOT_TOKEN_PROFILE_ERROR);
    }
    return {
      authMode: "gitHubToken",
      gitHubToken: explicitToken,
      authProfileId: explicitProfileId,
      authProfileVersion: explicitProfileVersion,
      copilotHome,
      agentId,
    };
  }

  // Contract-resolved token from core's AuthProfileStore lookup. This
  // is the production main path: a configured `github-copilot` auth
  // profile flows into `EmbeddedRunAttemptParams.resolvedApiKey` and
  // `authProfileId` upstream of the harness, and we consume both here
  // so headless / cron / multi-profile runs work without env vars.
  // We synthesise the pool-key version from the token fingerprint so
  // rotation busts the cache cleanly (matching the env-fallback

View on GitHub (pinned to 01804a7531)

When it happens

Trigger: Thrown at extensions/copilot/src/auth-bridge.ts:177 when the library encounters an invalid state.

Common situations: See trigger scenarios.


AI-assisted analysis of openclaw/openclaw@01804a7531 (2026-08-12). Data as JSON: /api/errors/93b6677a4a16e057. Report an issue: GitHub.