-
Couldn't load subscription status.
- Fork 1.3k
Limit placeholder view visibility #1598
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
There was a problem hiding this 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.notInstalledtocodex.showPlaceholderto 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", |
Copilot
AI
Oct 24, 2025
There was a problem hiding this comment.
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.
| "when": "github.copilot.chat.codex.showPlaceholder && config.chat.experimental.codex.enabled", | |
| "when": "github.copilot.chat.codex.showPlaceholder", |
* Limit placeholder view visibility * Efficiency
Limit placeholder view visibility (#1598)
No description provided.