openai / openai/codex

[Windows] System tray icon does not rescale after switching to a monitor with different DPI scaling

Open
#44,844 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

app bug windows-os
Dominant language
Rust
Stars
125k
Forks
19.4k
PR merge metrics
PR metrics pending

Description

What issue are you seeing?

On Windows with multiple monitors using different display scaling / DPI settings, the Codex/ChatGPT system tray icon does not update its size after the effective DPI changes.

For example, after switching from a display using one scaling factor to another display using a different scaling factor, the tray icon keeps the size appropriate for the previous DPI. Other Windows UI elements adjust to the new scaling, but the Codex/ChatGPT tray icon remains at the old size.

Image

The important observation is that fully exiting and restarting Codex/ChatGPT immediately makes the tray icon render at the correct size for the current DPI. This suggests that the correct icon size is selected at startup, but the tray icon is not refreshed when the monitor/DPI environment changes at runtime.

Steps to reproduce
  1. Use Windows 11 with two displays configured with different scaling factors / DPI settings (for example, 100% on one display and 150% or 200% on the other).
  2. Start Codex/ChatGPT while the system tray is associated with one DPI/scaling environment.
  3. Switch the primary display / taskbar to the other display, or otherwise change the effective DPI environment of the taskbar/system tray.
  4. Observe the Codex/ChatGPT tray icon.
Actual behavior

The tray icon keeps its previous pixel size and does not rescale to match the new DPI. It therefore appears noticeably too small or too large relative to the other tray icons.

Expected behavior

The Codex/ChatGPT tray icon should be refreshed and rendered at the correct size whenever the relevant monitor/taskbar DPI changes.

Workaround / diagnostic observation

Fully exiting and restarting Codex/ChatGPT immediately fixes the tray icon size for the current display scaling.

This makes the problem look like a runtime DPI-change / tray-icon refresh issue rather than a permanently incorrect icon asset.

Additional information

Potentially related issues:

  • #29236 — tray icon rendering/quality issue on Windows
  • #34023 — multi-monitor / high-DPI behavior on Windows

It may be worth checking whether the notification-area icon is recreated or re-submitted to the Windows shell after a per-monitor DPI / display configuration change.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by locating the Windows notification-area/system-tray icon handling and the entry point for per-monitor DPI or display-configuration changes. Reproduce the issue with two displays using different scaling factors, then verify that the tray icon is refreshed and rendered at the new DPI without restarting Codex/ChatGPT.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
desktop, operating-systems
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Active
Clarity
Mostly clear
Newbie friendliness
55/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.