Skip to content

agentHost: hide picker-disabled Codex models - #333756

Merged
Giuseppe Cianci (Giuspepe) merged 3 commits into
mainfrom
agents/debug-fix-issue-331355-vscode
Sep 1, 2026
Merged

agentHost: hide picker-disabled Codex models#333756
Giuseppe Cianci (Giuspepe) merged 3 commits into
mainfrom
agents/debug-fix-issue-331355-vscode

Conversation

@Giuspepe

@Giuspepe Giuseppe Cianci (Giuspepe) commented Sep 1, 2026

Copy link
Copy Markdown
Contributor

Fixes #331355

The Copilot model catalog can include models that support the Responses endpoint but are disabled for model pickers. Codex was publishing all Responses-compatible entries, which exposed those models in the Codex picker.

This change requires Copilot models to be both picker-enabled and Responses-compatible before publishing them through Codex. It also adds regression coverage for excluding picker-disabled models and keeps shared Codex test models explicitly picker-enabled.

Validation:

  • ./scripts/test.sh --grep 'CodexAgent' (168 passing)
  • ESLint on the four touched TypeScript files
  • git diff --check
  • Launched Code OSS with an isolated profile and confirmed picker-disabled models are absent from the Codex picker.

Require Copilot models to be both picker-enabled and compatible with the Responses endpoint before advertising them through the Codex harness.\n\nFixes #331355
Copilot AI balanced review requested due to automatic review settings September 1, 2026 11:59

Copilot AI 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.

Copilot review overview

Review tier: Balanced
Findings: None

What changed in this PR

Filters Codex’s Copilot model catalog so only picker-enabled, Responses-compatible models are published.

Changes:

  • Require model_picker_enabled during Codex model filtering.
  • Add regression coverage and update model fixtures.
File Description
src/​vs/​platform/​agentHost/​node/​codex/​codexAgent.ts Filters picker-disabled models.
src/​vs/​platform/​agentHost/​test/​node/​codex/​codexModelRefresh.test.ts Adds regression coverage and updates fixtures.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Keep the shared create-chat and prewarm fixtures eligible under the production model filter.
@Giuspepe
Giuseppe Cianci (Giuspepe) merged commit 22f76d2 into main Sep 1, 2026
40 checks passed
@Giuspepe
Giuseppe Cianci (Giuspepe) deleted the agents/debug-fix-issue-331355-vscode branch September 1, 2026 13:43
@vs-code-engineering vs-code-engineering Bot added this to the 1.137.0 milestone Sep 1, 2026
Bhavya U (bhavyaus) pushed a commit that referenced this pull request Sep 1, 2026
* agentHost: hide picker-disabled Codex models

Require Copilot models to be both picker-enabled and compatible with the Responses endpoint before advertising them through the Codex harness.\n\nFixes #331355

* agentHost: mark Codex test models picker-enabled

Keep the shared create-chat and prewarm fixtures eligible under the production model filter.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Codex harness shows gpt-5.4-nano but doesn't work with it

4 participants