Skip to content

github-copilot: enable xhigh for gpt-5.4 - #50168

Closed
jakepresent wants to merge 1 commit into
openclaw:mainfrom
jakepresent:enable-copilot-gpt54-xhigh
Closed

jakepresent wants to merge 1 commit into
openclaw:mainfrom
jakepresent:enable-copilot-gpt54-xhigh

Conversation

@jakepresent

Copy link
Copy Markdown
Contributor

Summary

  • enable xhigh for github-copilot/gpt-5.4
  • update thinking tests to cover the Copilot GPT-5.4 path
  • update the unsupported-model help text to include github-copilot/gpt-5.4

Why

openai/gpt-5.4 already supports xhigh, but github-copilot/gpt-5.4 was still excluded by the Copilot provider allowlist. This makes Copilot GPT-5.4 behave inconsistently with the rest of the GPT-5.4 family.

Testing

  • pnpm exec vitest run src/auto-reply/thinking.test.ts
  • node scripts/tsdown-build.mjs

@greptile-apps

greptile-apps Bot commented Mar 19, 2026 •

Copy link
Copy Markdown
Contributor

Greptile Summary

This PR enables xhigh thinking level for github-copilot/gpt-5.4 by adding it to the Copilot provider's xhigh allowlist, making it consistent with openai/gpt-5.4. The change is accompanied by updated tests and an updated error message listing supported models.

  • extensions/github-copilot/index.ts: "gpt-5.4" correctly added to COPILOT_XHIGH_MODEL_IDS, enabling xhigh via the plugin-runtime supportsXHighThinking hook.
  • src/auto-reply/thinking.shared.ts (not changed): GITHUB_COPILOT_XHIGH_MODEL_IDS at line 31 was not updated and still reads ["gpt-5.2", "gpt-5.2-codex"]. The supportsXHighThinking function in thinking.ts checks the built-in fallback (supportsBuiltInXHighThinking) before the plugin runtime hook — meaning in any context where the plugin runtime is unavailable, github-copilot/gpt-5.4 will not be recognized as supporting xhigh.
  • Test and error-message updates are correct and consistent with the intended change.

Confidence Score: 3/5

  • Safe to merge for the plugin-runtime path, but the built-in fallback in thinking.shared.ts was not updated, leaving an inconsistency that could cause github-copilot/gpt-5.4 to be incorrectly denied xhigh support in non-plugin contexts.
  • The primary plugin-runtime path is correctly updated, so the feature works in the normal runtime. However, the parallel built-in fallback constant GITHUB_COPILOT_XHIGH_MODEL_IDS in thinking.shared.ts was not updated to include "gpt-5.4", creating an incomplete implementation that could affect non-plugin code paths.
  • src/auto-reply/thinking.shared.ts — GITHUB_COPILOT_XHIGH_MODEL_IDS needs "gpt-5.4" added to match the plugin-runtime constant.

Comments Outside Diff (1)

  1. src/auto-reply/thinking.shared.ts, line 31 (link)

    P2 Built-in fallback not updated for gpt-5.4

    GITHUB_COPILOT_XHIGH_MODEL_IDS at line 31 still only lists ["gpt-5.2", "gpt-5.2-codex"]. The supportsXHighThinking function in thinking.ts first checks supportsBuiltInXHighThinking (which reads this constant) before falling back to the plugin's resolveProviderXHighThinking hook. While the plugin-runtime path was correctly updated in extensions/github-copilot/index.ts, the built-in fallback path was missed here.

    In any context where the plugin runtime is unavailable (e.g., shared/browser builds, or any code path that calls supportsBuiltInXHighThinking directly), github-copilot/gpt-5.4 will incorrectly report that it does not support xhigh.

    Prompt To Fix With AI
    This is a comment left during a code review.
    Path: src/auto-reply/thinking.shared.ts
    Line: 31
    
    Comment:
    **Built-in fallback not updated for `gpt-5.4`**
    
    `GITHUB_COPILOT_XHIGH_MODEL_IDS` at line 31 still only lists `["gpt-5.2", "gpt-5.2-codex"]`. The `supportsXHighThinking` function in `thinking.ts` first checks `supportsBuiltInXHighThinking` (which reads this constant) before falling back to the plugin's `resolveProviderXHighThinking` hook. While the plugin-runtime path was correctly updated in `extensions/github-copilot/index.ts`, the built-in fallback path was missed here.
    
    In any context where the plugin runtime is unavailable (e.g., shared/browser builds, or any code path that calls `supportsBuiltInXHighThinking` directly), `github-copilot/gpt-5.4` will incorrectly report that it does not support `xhigh`.
    
    
    
    How can I resolve this? If you propose a fix, please make it concise.
Prompt To Fix All With AI
This is a comment left during a code review.
Path: src/auto-reply/thinking.shared.ts
Line: 31

Comment:
**Built-in fallback not updated for `gpt-5.4`**

`GITHUB_COPILOT_XHIGH_MODEL_IDS` at line 31 still only lists `["gpt-5.2", "gpt-5.2-codex"]`. The `supportsXHighThinking` function in `thinking.ts` first checks `supportsBuiltInXHighThinking` (which reads this constant) before falling back to the plugin's `resolveProviderXHighThinking` hook. While the plugin-runtime path was correctly updated in `extensions/github-copilot/index.ts`, the built-in fallback path was missed here.

In any context where the plugin runtime is unavailable (e.g., shared/browser builds, or any code path that calls `supportsBuiltInXHighThinking` directly), `github-copilot/gpt-5.4` will incorrectly report that it does not support `xhigh`.

```suggestion
const GITHUB_COPILOT_XHIGH_MODEL_IDS = ["gpt-5.4", "gpt-5.2", "gpt-5.2-codex"] as const;
```

How can I resolve this? If you propose a fix, please make it concise.

Last reviewed commit: "github-copilot: enab..."

@jakepresent
jakepresent force-pushed the enable-copilot-gpt54-xhigh branch from 6062ee8 to 6aa5666 Compare March 19, 2026 03:22

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 59c11e2f77

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread extensions/github-copilot/index.ts Resolved
@jakepresent
jakepresent force-pushed the enable-copilot-gpt54-xhigh branch from e40ba93 to 00d9f4e Compare March 19, 2026 03:41

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 54d304fb56

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread extensions/github-copilot/index.ts Resolved
@jakepresent
jakepresent force-pushed the enable-copilot-gpt54-xhigh branch from 54d304f to 8bce580 Compare March 19, 2026 03:57
@vincentkoc

Copy link
Copy Markdown
Member

Closing in favor of #66437.

Current main already removed the old built-in fallback path that the original review called out, so the real remaining fix is just the narrow Copilot allowlist update on top of current main. The replacement PR carries that minimal change plus the changelog, with pnpm test:serial src/auto-reply/thinking.test.ts passing.

Thanks again for the original report and patch.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants