You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Windows desktop pet remains click-through and cannot be repositioned #42061
What version of the Codex App are you using (From “About Codex” dialog)?
26.825.6671.0
What subscription do you have?
Unknown / not relevant to desktop overlay input handling
What platform is your computer?
Microsoft Windows NT 10.0.26200.0 x64
What issue are you seeing?
The Codex desktop pet stays always on top, but it cannot be clicked or dragged to another position. Mouse clicks pass through the pet and activate the application or window behind it. Because the overlay is always on top and cannot be repositioned, it permanently obstructs part of the screen.
What steps can reproduce the bug?
Open the Codex desktop app on Windows.
Enable/show the desktop pet.
Move the pointer over the pet.
Press and hold the left mouse button on the visible/opaque part of the pet.
Attempt to drag the pet to another screen position.
Actual result: the pet does not move, and the click is received by the window behind the overlay.
What is the expected behavior?
The pet should receive pointer input and move when dragged. It should not pass clicks through to applications behind it while the user is interacting with it.
Additional information
Restarting Codex and hiding/showing the pet do not resolve the problem. The issue makes the always-on-top pet impossible to reposition.
I can reproduce this on Windows with a custom desktop pet. Hover animation may still work, but clicks pass through to the window behind the pet and dragging becomes unavailable.
In some cases the pet works only briefly; after attempting a drag, it jumps toward the right edge, becomes smaller, and then stops receiving click/drag input. Restarting Codex/Windows and resetting the pet position did not reliably resolve it.
This appears to be an overlay input/hit-testing issue rather than a pet asset issue. Expected behavior: the visible pet should consistently receive clicks and drag input without passing them through to underlying windows.
Additional Windows diagnostics: overlay has no interactive hit region
I can reproduce this in the Microsoft Store Codex app with both the desktop pet and the live voice bubble.
Environment
Codex: 26.901.2854.0 (Microsoft Store package)
Windows 11
Single-monitor configuration at 125% display scaling
Symptoms
The pet or voice bubble remains visible above other applications.
It cannot be clicked, dragged, right-clicked, or dismissed from the overlay.
Mouse clicks pass through to the application underneath.
The issue persists after minimizing and reopening Codex.
Troubleshooting and diagnostics
Backed up the Codex global state, removed electron-avatar-overlay-bounds and electron-avatar-overlay-open, and restarted Codex.
Codex regenerated a clean position record for only the current display, but the pet remained completely click-through.
The affected top-level overlay had WS_EX_TRANSPARENT set (0x2800A8).
Sending a mouse-move message at the saved pet position did not transition the overlay into interactive mode.
Clearing WS_EX_TRANSPARENT directly was immediately reversed by Codex.
Restarting with --force-device-scale-factor=1 removed WS_EX_TRANSPARENT, but a WindowFromPoint grid scan across the entire visible overlay found zero points routed to a Codex window. This suggests the native input shape is empty or invalid, rather than only a stale saved position.
No corresponding Codex crash or application hang was found.
Result
The state reset, pointer activation, window-style reset, and scale-factor workaround did not restore hit testing. The only reliable mitigation was setting electron-avatar-overlay-open to false and restarting Codex so the stuck overlay disappeared.
This may be a Windows BrowserWindow.setInputShape / mouse-pass-through fallback issue, especially around display scaling or the minimize/restore lifecycle. Both the pet and live voice use the same avatar overlay, so the defect affects both features.
Still reproducible on 26.901.41600 (Windows Store package OpenAI.Codex_26.901.5280.0_x64), Windows 11 10.0.26200.0 x64, single monitor 3072x1920 @ 200% scaling. Two facts that may narrow the search:
GetWindowRgnBox(overlay) == NULLREGION. The overlay window (hwnd 0xd0a78, Chrome_WidgetWin_1, exstyle 0x002800a8 = WS_EX_TRANSPARENT | TOPMOST | TOOLWINDOW | LAYERED | NOREDIRECTIONBITMAP, rect 1196x1920px = 598x960 DIP) has NO input shape installed at all — so this is not an "offset region" variant, there is simply no region. A WindowFromPoint grid over the whole overlay rect (36000 samples, 8px step) resolves 0 points (0.0%) to the overlay; 72 samples on the visible mascot pixels all resolve to the window behind it.
The {forward: true} fallback is also dead. 25s of real SendInput(MOUSEEVENTF_MOVE|ABSOLUTE) motion parked on the mascot produced 0 WS_EX_TRANSPARENT transitions (1Hz sampling), no hover reaction, pet controls never appear. So applyInputShape() returns false (inputShape == null or setInputShape() rejected) AND the renderer never receives mousemove, so pointerInteractive stays false forever — a deadlock: passthrough → no mousemove → no hover → stays passthrough.
Not a hung renderer: the activity-pill text updates live and the mascot sprite state changes over minutes. Not a DPI offset: the overlay rect maps cleanly to 598x960 DIP and the mascot is well inside it. Survives a full app restart.
Correlates with a display re-enumeration: ~/.codex/.codex-global-state.json shows displayId changed (1029007254 -> 3815641688) at the same 1536x960 DIP resolution, and byDisplayId[3815641688] never gained width/height/mascot/tray, while the old displayId entry has full mascot geometry. Only overlay log line that day: info [avatar-overlay] Discarding pending pet move for display change. The avatar-overlay logger emitted zero lines in the post-restart session.
Likely fixes: (1) while mousePassthroughMode === 'forwarding', feed the renderer cursor position from the existing petControlsProximityTimer via sendCursorPointToAvatarOverlay()/sendInputEvent({type:'mouseMove'}) instead of relying on Electron forwarding; (2) cache the last setPointerRegions rects and replay them on createWindow()/display change/webContents.id change (it is currently silently dropped on id mismatch); (3) never fall back to whole-window {forward:true} when setInputShape() fails or inputShape is empty; (4) drive setIgnoreMouseEvents() off the real window exstyle, not the mousePassthroughMode string (createWindow() resets it to 'disabled' while the window is actually transparent, so the policy then never clears passthrough).
Activity
github-actions commentedon Sep 1, 2026
Potential duplicates detected. Please review them and close your issue if it is a duplicate.
Powered by Codex Action
Ang3Lnet commentedon Sep 2, 2026
this is happening to me and making using the voice mode super annoying
ntashiro716 commentedon Sep 4, 2026
I can reproduce this on Windows with a custom desktop pet. Hover animation may still work, but clicks pass through to the window behind the pet and dragging becomes unavailable.
In some cases the pet works only briefly; after attempting a drag, it jumps toward the right edge, becomes smaller, and then stops receiving click/drag input. Restarting Codex/Windows and resetting the pet position did not reliably resolve it.
This appears to be an overlay input/hit-testing issue rather than a pet asset issue. Expected behavior: the visible pet should consistently receive clicks and drag input without passing them through to underlying windows.
dawood-k commentedon Sep 4, 2026
Additional Windows diagnostics: overlay has no interactive hit region
I can reproduce this in the Microsoft Store Codex app with both the desktop pet and the live voice bubble.
Environment
Symptoms
Troubleshooting and diagnostics
electron-avatar-overlay-boundsandelectron-avatar-overlay-open, and restarted Codex.WS_EX_TRANSPARENTset (0x2800A8).WS_EX_TRANSPARENTdirectly was immediately reversed by Codex.--force-device-scale-factor=1removedWS_EX_TRANSPARENT, but aWindowFromPointgrid scan across the entire visible overlay found zero points routed to a Codex window. This suggests the native input shape is empty or invalid, rather than only a stale saved position.Result
The state reset, pointer activation, window-style reset, and scale-factor workaround did not restore hit testing. The only reliable mitigation was setting
electron-avatar-overlay-opentofalseand restarting Codex so the stuck overlay disappeared.This may be a Windows
BrowserWindow.setInputShape/ mouse-pass-through fallback issue, especially around display scaling or the minimize/restore lifecycle. Both the pet and live voice use the same avatar overlay, so the defect affects both features.jxd0503 commentedon Sep 5, 2026
Still reproducible on 26.901.41600 (Windows Store package OpenAI.Codex_26.901.5280.0_x64), Windows 11 10.0.26200.0 x64, single monitor 3072x1920 @ 200% scaling. Two facts that may narrow the search:
GetWindowRgnBox(overlay) == NULLREGION. The overlay window (hwnd 0xd0a78, Chrome_WidgetWin_1, exstyle 0x002800a8 = WS_EX_TRANSPARENT | TOPMOST | TOOLWINDOW | LAYERED | NOREDIRECTIONBITMAP, rect 1196x1920px = 598x960 DIP) has NO input shape installed at all — so this is not an "offset region" variant, there is simply no region. A WindowFromPoint grid over the whole overlay rect (36000 samples, 8px step) resolves 0 points (0.0%) to the overlay; 72 samples on the visible mascot pixels all resolve to the window behind it.
The {forward: true} fallback is also dead. 25s of real SendInput(MOUSEEVENTF_MOVE|ABSOLUTE) motion parked on the mascot produced 0 WS_EX_TRANSPARENT transitions (1Hz sampling), no hover reaction, pet controls never appear. So applyInputShape() returns false (inputShape == null or setInputShape() rejected) AND the renderer never receives mousemove, so pointerInteractive stays false forever — a deadlock: passthrough → no mousemove → no hover → stays passthrough.
Not a hung renderer: the activity-pill text updates live and the mascot sprite state changes over minutes. Not a DPI offset: the overlay rect maps cleanly to 598x960 DIP and the mascot is well inside it. Survives a full app restart.
Correlates with a display re-enumeration: ~/.codex/.codex-global-state.json shows displayId changed (1029007254 -> 3815641688) at the same 1536x960 DIP resolution, and byDisplayId[3815641688] never gained width/height/mascot/tray, while the old displayId entry has full mascot geometry. Only overlay log line that day:
info [avatar-overlay] Discarding pending pet move for display change. The avatar-overlay logger emitted zero lines in the post-restart session.Likely fixes: (1) while mousePassthroughMode === 'forwarding', feed the renderer cursor position from the existing petControlsProximityTimer via sendCursorPointToAvatarOverlay()/sendInputEvent({type:'mouseMove'}) instead of relying on Electron forwarding; (2) cache the last setPointerRegions rects and replay them on createWindow()/display change/webContents.id change (it is currently silently dropped on id mismatch); (3) never fall back to whole-window {forward:true} when setInputShape() fails or inputShape is empty; (4) drive setIgnoreMouseEvents() off the real window exstyle, not the mousePassthroughMode string (createWindow() resets it to 'disabled' while the window is actually transparent, so the policy then never clears passthrough).