codex - 💡(How to fix) Fix VS Code: model picker popover in Codex chat is clipped/hidden when chat view is in sidebar (overflow/z-index) [1 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
openai/codex#20801Fetched 2026-05-03 04:45:15
View on GitHub
Comments
0
Participants
1
Timeline
3
Reactions
0
Participants
Timeline (top)
labeled ×2cross-referenced ×1

In VS Code stable, the model selection popover/menu in the Codex chat view gets clipped/hidden behind other UI when the chat is hosted in the sidebar. If I move the chat view into the Panel (terminal area), the menu renders correctly.

This appears to be a stacking context / overflow clipping issue (popover not promoted to a top-level overlay layer).

Root Cause

In VS Code stable, the model selection popover/menu in the Codex chat view gets clipped/hidden behind other UI when the chat is hosted in the sidebar. If I move the chat view into the Panel (terminal area), the menu renders correctly.

This appears to be a stacking context / overflow clipping issue (popover not promoted to a top-level overlay layer).

Fix Action

Workaround

Move the Codex chat view into the Panel (same area as the terminal). Then the menu is fully visible.

RAW_BUFFERClick to expand / collapse

Summary

In VS Code stable, the model selection popover/menu in the Codex chat view gets clipped/hidden behind other UI when the chat is hosted in the sidebar. If I move the chat view into the Panel (terminal area), the menu renders correctly.

This appears to be a stacking context / overflow clipping issue (popover not promoted to a top-level overlay layer).

Environment

  • VS Code: 1.118.1 (user setup)
    • Commit: 034f571df509819cc10b0c8129f66ef77a542f0e
    • Electron: 39.8.8
    • Chromium: 142.0.7444.265
  • OS: Windows 11 (Windows_NT x64 10.0.26200)
  • Display scaling: 100%

Repro Steps

  1. Open VS Code.
  2. Open the Codex chat view in the sidebar.
  3. Open the model selector dropdown in the Codex chat UI.

Actual

The model picker menu is partially/fully hidden or clipped by other VS Code UI elements (terminal/panel or other views). Closing the terminal doesn’t fix it; it still gets covered/clipped by other elements.

Expected

The dropdown menu should appear above surrounding UI (or flip/relayout) so it is fully visible.

Workaround

Move the Codex chat view into the Panel (same area as the terminal). Then the menu is fully visible.

Notes

Happy to attach a screenshot if you want; it looks like a classic z-index/overflow clipping bug.

If this is ultimately a VS Code overlay/webview issue, please let me know the best upstream repo to file it against.

extent analysis

TL;DR

The issue can be temporarily worked around by moving the Codex chat view into the Panel area, suggesting a stacking context or overflow clipping issue.

Guidance

  • Verify that the issue persists when the chat view is in the sidebar and the terminal or other views are closed to isolate the clipping cause.
  • Check if adjusting the z-index or overflow properties of the popover or surrounding elements could resolve the clipping issue.
  • Consider filing an issue against the VS Code repository or the relevant upstream repo if the problem is confirmed to be related to overlay or webview handling.
  • Test the behavior in different VS Code layouts and themes to see if the issue is specific to certain configurations.

Example

No specific code example is provided due to the lack of direct code reference in the issue, but adjusting CSS properties like z-index or overflow might be relevant.

Notes

The exact solution may depend on the internal implementation of VS Code's overlay or webview components, and further investigation into the VS Code codebase or documentation may be necessary.

Recommendation

Apply the workaround by moving the Codex chat view into the Panel area until a more permanent fix can be implemented, as it is a simple and effective way to avoid the clipping issue.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

codex - 💡(How to fix) Fix VS Code: model picker popover in Codex chat is clipped/hidden when chat view is in sidebar (overflow/z-index) [1 participants]