Skip to content

GitHub Copilot provider: add gpt-5.5 and claude-opus-4.7-1m-internal to default model list #72805

@wyhgoodjob

Description

@wyhgoodjob

Problem

The GitHub Copilot provider's DEFAULT_MODEL_IDS in extensions/github-copilot/models-defaults.ts is missing two models that are currently advertised by the Copilot backend (https://api.githubcopilot.com/models):

  • gpt-5.5 — generally available to Copilot users
  • claude-opus-4.7-1m-internal — 1M-context Opus 4.7, available to Pro+ subscribers

Current hardcoded list:

const DEFAULT_MODEL_IDS = [
  "claude-opus-4.7",
  "claude-sonnet-4.6",
  "claude-sonnet-4.5",
  "gpt-4o",
  "gpt-4.1",
  "gpt-4.1-mini",
  "gpt-4.1-nano",
  "o1",
  "o1-mini",
  "o3-mini",
] as const;

Evidence

Querying the Copilot models endpoint with a valid token returns (excerpt):

claude-opus-4.7-1m-internal   Claude Opus 4.7 (1M context)(Internal only)
claude-opus-4.7               Claude Opus 4.7
gpt-5.5                       GPT-5.5
gpt-5.4                       GPT-5.4
gpt-5.4-mini                  GPT-5.4 mini
gpt-5.3-codex                 GPT-5.3-Codex
gpt-5.2-codex                 GPT-5.2-Codex
gpt-5.2                       GPT-5.2
...

So users today have to manually add these IDs to agents.defaults.models in ~/.openclaw/openclaw.json to use them, even though Copilot exposes them.

Suggested change

Add (at minimum) gpt-5.5 and claude-opus-4.7-1m-internal to the default list. While in there, the broader GPT-5.x family (gpt-5.4, gpt-5.4-mini, gpt-5.3-codex, gpt-5.2-codex) is also worth considering.

For the 1M-context entry, it may also be worth surfacing a more accurate contextWindow than the current default (128_000) when the model id ends with -1m / -1m-internal.

Workaround for users

Manually patch config:

"agents": {
  "defaults": {
    "models": {
      "github-copilot/gpt-5.5": {},
      "github-copilot/claude-opus-4.7-1m-internal": { "params": { "thinking": "medium" } }
    }
  }
}

After openclaw config validate they appear in openclaw models list --provider github-copilot.

Environment

  • OpenClaw 2026.4.25-beta.11
  • Copilot provider via OAuth (Copilot-Integration-Id: vscode-chat)

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2Normal backlog priority with limited blast radius.clawsweeper:linked-pr-openClawSweeper found an open linked pull request for this issue.clawsweeper:needs-product-decisionClawSweeper marked this issue as needing a product or behavior decision.clawsweeper:no-new-fix-prClawSweeper does not recommend queueing a new automated fix PR for this issue.clawsweeper:source-reproClawSweeper found a high-confidence source-level issue reproduction.impact:auth-providerAuth, provider routing, model choice, or SecretRef resolution may break.impact:session-stateSession, memory, transcript, context, or agent state can drift or corrupt.issue-rating: 🦞 diamond lobsterVery strong issue quality with high-confidence source-level or clear reproduction.

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions