Repository navigation
Description
Summary
The Codex desktop pet renders correctly, but its interactive area can become detached from its visible position after the pet is dragged or resized.
Mouse input may pass through the pet and activate the window underneath. This affects not only the pet itself, but also controls displayed around it, such as chat, voice, and close buttons.
A related issue occurs when the Codex main window is positioned underneath the pet: clicking may continue to work, but dragging stops working.
Environment
- Codex desktop app version:
26.831.1445.0 - Platform: Windows
- Display configuration: Multi-monitor setup, 2560×1440 displays at 100% scaling
- Affected pets: Reproduced with both built-in and custom pets
No account identifiers, local paths, window handles, process IDs, or display IDs are included in this report.
Steps to reproduce
Case 1: Interaction breaks after dragging or resizing
- Enable the desktop pet.
- Use the pet reset option.
- Confirm that the pet is initially clickable and draggable.
- Drag the pet to another position.
- Try hovering over or clicking the pet again.
- Resize the pet and test its interactive area again.
Case 2: Dragging fails over the Codex main window
- Position the Codex main window underneath the desktop pet.
- Click the pet and confirm that clicking may still work.
- Attempt to drag the pet.
- Observe that dragging does not start or stops immediately.
- Move the Codex main window away from underneath the pet and try again.
Actual behavior
- The pet model and visual animations continue to render normally.
- Mouse events can pass through the pet to the content underneath.
- In some states, only a small portion near the top-left of the pet remains interactive.
- Controls such as chat, voice, and close buttons may also become non-interactive.
- Hover and click animations may stop receiving pointer events.
- Resetting the pet temporarily restores interaction, but the pet may jump to another position.
- Dragging the pet again can cause the problem to return.
- Resizing the pet can unexpectedly change its position.
- When the Codex main window is underneath the pet, clicking may work while dragging does not.
- Restarting the app or switching to another pet does not reliably resolve the issue.
Expected behavior
- The visible pet bounds and interactive bounds should always remain aligned.
- Hover, click, controls, and dragging should work across the entire visible pet.
- Dragging should work regardless of which application window is underneath the pet.
- Resizing should preserve the pet’s anchor position unless repositioning is explicitly required.
- Moving or resizing the pet should immediately recalculate its hit-test region.
- Behavior should remain correct across multiple monitors and display scaling configurations.
Frequency
The issue was consistently reproducible after moving or resizing the pet.
It also reappeared after a Codex desktop app update recreated the pet overlay window.
Troubleshooting already attempted
- Restarted the Codex desktop app
- Restarted Windows
- Switched between multiple pets
- Reset the pet
- Reset the stored pet state
- Repositioned and resized the pet
These actions either had no effect or only fixed the issue temporarily.
Diagnostic observations
The problem appears to be related to the transparent, always-on-top pet overlay rather than the pet asset itself.
The overlay continues rendering correctly while pointer routing fails. A diagnostic workaround that handled window movement natively and separately forwarded hover/click events restored the expected behavior. This suggests that the failure may involve overlay hit-testing, pointer capture, or coordinate synchronization.
Possible areas to investigate:
- Interaction between Electron
setIgnoreMouseEventsand pointer capture on Windows WS_EX_TRANSPARENTor equivalent transparent-window hit-testing- Loss of pointer-move events when another Codex window is underneath the overlay
- Stale hit-test bounds after moving or resizing the pet
- Mixing display-independent coordinates with physical screen pixels
- Per-monitor DPI conversion and display-bound recalculation
- Overlay window recreation after an application update
These are diagnostic inferences rather than confirmed implementation details.
Suggested direction
A native hit-test approach may be more reliable:
- Return an interactive hit-test result for the pet and its controls
- Return a transparent hit-test result only for empty overlay areas
- Use native pointer capture or native window dragging for the pet body
- Keep animation events separate from the authoritative window movement
- Recalculate bounds after drag, resize, DPI, display, or overlay-window changes
Activity
github-actions commentedon Sep 2, 2026
Potential duplicates detected. Please review them and close your issue if it is a duplicate.
Powered by Codex Action
pcbcos commentedon Sep 2, 2026
I can reproduce this issue on a newer Windows build as well.
Version:
26.831.21537Behavior:
So this bug is still present in
26.831.21537, which is newer than the26.831.1445.0build reported above.This looks consistent with a hit-testing / input-region issue in the transparent pet overlay rather than an animation/rendering problem.
Yokoo3431 commentedon Sep 2, 2026
Confirmed on Codex Desktop 26.831.2377.0 on Windows with two monitors.
Pet: fireball
Reproduction:
The issue appears to be in the Windows avatarOverlay hit-testing path. After the cross-monitor move, the DOM hit-region, native inputShape, and Electron mouse-passthrough state may become out of sync.
This is reproducible on the newer 26.831.2377.0 build as well. Please investigate it as a Windows Desktop regression involving multi-monitor/DPI coordinate handling and stale transparent/input regions.
lbnsmbu commentedon Sep 2, 2026
Codex desktop app version: 26.901.20858
I can reproduce this issue on the current Windows Codex/ChatGPT desktop app.
After switching to either a built-in pet or a custom pet, the pet is initially draggable. The first drag correctly moves the visible pet to its new position. However, immediately after releasing the mouse button, the pet can no longer be dragged again.
The visible sprite remains at the new position, but subsequent mouse input appears to pass through the pet overlay. This affects both built-in and custom pets, so it does not appear to be caused by the custom sprite asset.
I have already tried:
The issue still reproduces after all of the above.
The pet’s new position after the first drag; after releasing the mouse here, it is no longer draggable
This looks consistent with the hit region or pointer-interactivity state not being updated correctly after the overlay position changes.
This has a significant impact on my daily experience. Once the pet is accidentally moved to a distracting or inconvenient position, I lose the ability to reposition it and have to switch pets or restart the app as a workaround. It makes the desktop-pet feature difficult to use reliably.
Ruben-RG commentedon Sep 3, 2026
I can reproduce the same hit-testing failure on a single-monitor Windows setup, so the issue does not appear to require multiple displays. I am aware that this particular report makes no mention of a dual monitor setup, but many of the other reports i read on the issue mentioned a dual-monitor setup.
The pet has been non-interactive since September 1. Its visual behavior still works correctly: it reacts on hover and continues showing the appropriate animation/status while Codex is thinking, invoking a process, or producing a final response.
However:
The problem reproduced on package
26.831.2377.0and still reproduces after updating to26.901.1978.0.Troubleshooting already attempted:
None restored click or drag interaction. The continued rendering, status animations, and hover response—combined with mouse clicks passing through—seem consistent with the visible pet and its native interactive/input region becoming out of sync.
marry1988213-commits commentedon Sep 4, 2026
Additional reproduction and hit-test measurements on Windows, still occurring with MSIX build
26.901.2854.0.Environment
OpenAI.Codex_26.901.2854.0_x64__2p2nqsd0c76g00.151.0nativeSymptoms and troubleshooting
The pet renders and animates normally, and hovering still changes its animation / reveals controls. However, dragging the pet body fails, and clicking it does not open the associated conversation. Right-clicking the pet also fails; input can reach the underlying application. The activity close (X) control can still work, so this is not a complete loss of all overlay interaction.
Multiple pets reproduce the problem. Hiding/showing the pet, fully restarting the app, and clearing only the persisted
electron-avatar-overlay-boundsstate while the app was closed did not provide a lasting fix.Reproduction observed during diagnosis: place the pet near the top of the display, drag it toward the bottom, release, then attempt another drag. The visible pet can become ungrabbable while hover animations continue working. Expected: the interactive region should follow the visible pet and remain draggable at any supported screen position.
Hit-test measurements
The local diagnostic report scanned
WindowFromPointand resolved child windows withGetAncestor(GA_ROOT)(hits can returnChrome_RenderWidgetHostHWND, not the top-level overlay HWND). Coordinates below are logical / DPI-unaware coordinates, not physical pixels.With the pet displayed near the bottom-right:
The interactive area appeared to remain near the top of the much taller drawing window, away from the visible pet. Its approximate size matched a previously recorded 356×320 content box.
WS_EX_TRANSPARENTwas not set;GetWindowRgn/GetWindowRgnBoxreturnedERROR. These observations alone do not establish the exact native implementation or rule out every DPI-related issue.Suspected implementation area (not a confirmed root cause)
Local inspection found the
setPointerRegions→setInputShapepath and an early return fromapplyPointerInteractivityPolicywhen applying the input shape succeeds. Hover proximity tracking also has a separate cursor-polling path, which could explain why hover works while actual clicks miss.Please investigate coordinate-space alignment / stale input-shape bounds between the pet content and the full-display-height native draw window, including updates after drag, repositioning, and resizing. A missing content offset is one hypothesis, but has not been confirmed with runtime tracing;
getBoundingClientRect()is normally viewport-relative, so the precise source of any mismatch still needs verification.No chat transcripts, configuration files, personal paths, account identifiers, or raw logs are included in this comment.
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).
Xarth-Mai commentedon Sep 5, 2026
same.
Kernel: Linux 7.2.2-1-cachyos
Window Manager: niri 26.04 (Wayland)
ChatGPT 26.901.41600
codex-cli 0.153.4
MaxPower33-cmd commentedon Sep 6, 2026
ChatGPT for Windows, Powered by Codex & OWL 26.901.51231, released 5 Sept 2026. One display, 2560×1600. The issue reproduces with both the built-in Codex pet and a valid custom v2 pet. After reset, the pet is draggable only near the upper-left area. Moving it lower detaches the visible pet from its hit region; the pet stops responding and may block clicks with a large transparent overlay. Restarting and resetting electron-avatar-overlay-bounds do not fix it. Persisting the pet at top-start restores interaction.
chemzi commentedon Sep 7, 2026
I reproduced this on a newer Windows build and found a reliable non-destructive runtime workaround.
Environment
OpenAI.Codex_26.901.6511.0_x64__2p2nqsd0c76g0[email protected]Observations
The pet overlay remained visible, enabled, and not DWM-cloaked, but clicks went to the underlying Explorer window. Fully restarting all ChatGPT processes, switching pets, changing pet size, using Windows Repair, and removing the persisted
electron-avatar-overlay-boundsstate from both the main state file and its backup did not restore interaction.Inspection of the shipped app shows the renderer-to-main path
setPointerRegions(...)->BrowserWindow.setInputShape(...), withsetIgnoreMouseEvents(...)as a fallback. This is consistent with the rendered pet and native input shape becoming stale or out of sync. I do not think the pet asset is involved.Verified workaround
Forcing one real resize event on the existing overlay causes its input shape to be rebuilt:
ChatGPTtop-level window owned byChatGPT.exe.SetWindowPoswith the same position andwidth + 1,height + 1.After this 1-pixel resize/restore, clicking and dragging immediately worked again. As an independent success check, the persisted pet anchor changed from
(1571,815)to(1498,449)after dragging. The final window position and size were unchanged by the workaround, and no Codex restart was needed.Reusable PowerShell helper: https://gist.github.com/chemzi/5357491c557ee6cc099b3328978870c5
A durable fix may be to invalidate and resend the native input shape after overlay show/wake, restored bounds, display/DPI changes, and window moves/resizes. It may also help to add a regression test that verifies the interactive region follows the visible mascot after these transitions.
jxd0503 commentedon Sep 7, 2026
Thanks for the detailed write-up and the script — this is a clever approach.
I tried the PowerShell helper on my system but unfortunately it did not resolve the issue here. Some notes that may help narrow down why it works in your environment but not mine:
Environment differences I can spot:
Your package: 26.901.6511.0 | Mine: 26.901.41600
Your display: 1 external, 150% DPI | Mine: 1 display, 200% DPI
Your trigger: ? | Mine: confirmed display re-enumeration (displayId changed)
What I observed when re-testing after the script:
WS_EX_TRANSPARENT remained 1 on the overlay hwnd after the +1/+1 resize/restore cycle
GetWindowRgnBox() still returned NULLREGION (0) — so the native input shape was not rebuilt
WindowFromPoint grid over the mascot area: still 0/72 samples resolved to the overlay
SetWindowPos did succeed (returned TRUE), so the window did receive the resize and restore — but apparently that was not enough to trigger setInputShape() re-application in this build / DPI config
My working theory for why it differs:
In my case the root cause is not just that the input shape is stale — it is that inputShape is null on the JS side (never re-published after the display re-enumeration invalidated the byDisplayId entry). So even if the resize does trigger Chromium's internal path, there is no region data for applyInputShape() -> win.setInputShape() to consume, and it falls through to the same setIgnoreMouseEvents(true, { forward: true }) dead end.
In your environment, the inputShape array may still be valid in memory (just not applied to the native window), so the resize forces a re-apply and fixes it. In mine, the data itself is gone — the renderer never sent it, and the main process silently dropped what little it had.
Questions that might help:
Did your environment also experience a display re-enumeration, or did the pet just stop responding during a normal session?
Could you share what GetWindowRgnBox() returns on your overlay hwnd before running the script?
Does the script still work if you first trigger a display re-enumeration (sleep/wake, plug/unplug monitor) and then run it?
Happy to provide more Win32 probe output if it helps narrow this down further.
DocumentMasters commentedon Sep 7, 2026
Additional reproduction on newer build 26.905.11957
Windows 11 Pro 25H2, OS Build 26200.9168.
Five-monitor configuration. Displays 1 & 2 are mirrored. Displays 1/2 and 5 use 100% scaling; displays 3 and 4 use 125%.
This began immediately after the recent app update.
Built-in pets: Tested several. They appear but are generally noninteractive — cannot drag and do not respond normally to hover.
Custom pet: Different and very reproducible behavior:
Before the update, the pet was draggable, reacted to hover normally, and could be positioned on the monitor where ChatGPT was being used.
One additional observation: after moving the custom pet to another monitor/location, switching to built-in pets retains that location, suggesting pet position is being persisted even though pointer interaction subsequently fails.
chemzi commentedon Sep 7, 2026
@jxd0503 Thanks — your measurements exposed two important gaps in the helper I originally posted.
First, the exact successful sequence on my machine included clearing
WS_EX_TRANSPARENTbefore forcing the resize. I had tested that step separately and accidentally omitted it from the published helper. Second, at 200% scaling a+1physical-pixel resize is only 0.5 DIP, so Electron may round the reported viewport size back to the same value and never fire a meaningful ResizeObserver update.I updated the Gist to:
WS_EX_TRANSPARENTbefore the refresh;GetDpiForWindow(four DIPs; 8 physical px at 200% and 6 px at 150%);Updated helper: https://gist.github.com/chemzi/5357491c557ee6cc099b3328978870c5
Could you retry with the updated version? It is specifically intended to test the
inputShape == null/ 200% DPI case you described by briefly allowing native input before forcing a renderer-sized layout change.Answers to your questions:
GetWindowRgnBox()still returnedNULLREGION,WS_EX_TRANSPARENTwas set again, and even aWindowFromPointscan resolvingGA_ROOTfound no overlay points. The user could nevertheless click and drag, and the persisted anchor changed. On this Owl build those Win32 observations do not distinguish working from broken state, so I would not treatNULLREGIONalone as proof that the Owl input shape is absent.If the revised helper still fails, that would support your hypothesis that the renderer never republishes regions after the display-ID transition and that a main-process replay/recovery path is required rather than a bounds refresh alone.
DocumentMasters commentedon Sep 7, 2026
Additional information.
After a full Windows reboot, the custom pet restored to its previously saved position correctly. It briefly animated/reacted after startup, then became noninteractive again. This confirms persistence works, while the interaction failure reoccurs during the new session.
GUZHUYAXIAN commentedon Sep 8, 2026
I can reproduce a closely related failure on another Windows build.
Environment
26.901.6511.026200.91683440 × 1440display at100%scalingObserved behavior
The pet initially appears near the upper part of the Codex window and responds to hover.
On the first small horizontal drag movement, the visible pet jumps almost directly to the bottom of the screen while the pointer remains near its original upper position.
After the jump, hover interaction at the pet's new visible position still works, but the pet can no longer be dragged normally.
The failure is deterministic and was captured in two recordings.
Persisted overlay positions
After two independent reproductions:
x=3064, y=1149x=2958, y=1151The nearly identical final Y coordinates suggest that the incorrect drag result is being clamped and persisted rather than caused by the pet asset or theme.
Feedback ID:
01a07bf3-f517-7282-bef9-dc555e60d32fI can provide sanitized reproduction videos and the corresponding
electron-avatar-overlay-boundsoutputs if needed.chrix98 commentedon Oct 22, 2026
Also reproducable under
[Linux/KDE Wayland] ChatGPT Mini Pet overlay intercepts mouse clicks outside visible boundaries
Environment
Description
When the ChatGPT Mini Pet is displayed in the bottom-left corner of the desktop, an apparently invisible region above the pet intercepts mouse clicks intended for other applications.
This causes seemingly unrelated applications to become partially unresponsive to mouse input.
Steps to reproduce
Actual behavior
Expected behavior
The pet overlay should only receive mouse input within its visible interactive boundaries. Transparent areas should allow mouse events to reach underlying application windows.
Suspected cause
The floating Mini Pet overlay may have an incorrectly sized or positioned input region under KDE Wayland, resulting in transparent parts of the overlay intercepting pointer events.
This is a hypothesis based on the observed behavior, not a confirmed root cause.
Workaround
Hide the ChatGPT Mini Pet.
Related issue
#42190