Skip to content

Conversation

@roblourens
Copy link
Member

No description provided.

Copilot AI review requested due to automatic review settings October 24, 2025 22:04
@roblourens roblourens enabled auto-merge October 24, 2025 22:04
@roblourens roblourens self-assigned this Oct 24, 2025
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR updates the logic controlling when the Codex placeholder view is shown in the chat panel. The key change is adding a check for whether the user has Codex agent access before displaying the placeholder view.

Key Changes:

  • Added authentication and configuration service dependencies to check user's Codex agent access
  • Renamed context key from codex.notInstalled to codex.showPlaceholder to better reflect its purpose
  • Introduced conditional logic that only shows the placeholder when both the user has access AND the extension is not installed

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
src/extension/contextKeys/vscode-node/placeholderView.contribution.ts Added authentication/configuration checks and renamed context key to control placeholder visibility based on user access
package.json Updated context key reference in view contribution to match renamed key

"id": "codex-placeholder",
"name": "OpenAI Codex Agent",
"when": "github.copilot.chat.codex.notInstalled && config.chat.experimental.codex.enabled",
"when": "github.copilot.chat.codex.showPlaceholder && config.chat.experimental.codex.enabled",
Copy link

Copilot AI Oct 24, 2025

Choose a reason for hiding this comment

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

The config.chat.experimental.codex.enabled check is now redundant since it's already evaluated in the TypeScript code when setting enabledForUser. Consider removing it from the when clause to avoid duplicate logic.

Suggested change
"when": "github.copilot.chat.codex.showPlaceholder && config.chat.experimental.codex.enabled",
"when": "github.copilot.chat.codex.showPlaceholder",

Copilot uses AI. Check for mistakes.
@vs-code-engineering vs-code-engineering bot added this to the October 2025 milestone Oct 24, 2025
@roblourens roblourens added this pull request to the merge queue Oct 24, 2025
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to no response for status checks Oct 24, 2025
@roblourens roblourens added this pull request to the merge queue Oct 25, 2025
Merged via the queue into main with commit bd73188 Oct 25, 2025
16 checks passed
@roblourens roblourens deleted the roblou/uniform-hookworm branch October 25, 2025 16:12
roblourens added a commit that referenced this pull request Oct 25, 2025
* Limit placeholder view visibility

* Efficiency
roblourens added a commit that referenced this pull request Oct 25, 2025
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.

3 participants