Skip to content

Windows pet overlay hit region desynchronizes from the visible mascot over time #34227

Open

Description

@dnlvskey

What version of the Codex App are you using?

Codex Desktop Windows package OpenAI.Codex_26.715.4045.0_x64__2p2nqsd0c76g0.

What subscription do you have?

Not relevant to the reproduction.

What platform is your computer?

Windows NT 10.0.22631.6199, x64.

What issue are you seeing?

The draggable/clickable hit region of the desktop pet can desynchronize from the visible mascot after Codex has been running for some time.

Immediately after a Windows restart, the pet normally responds across its full visible rectangular area. Later, only the upper part of the visible mascot may accept the mouse; the center/lower part passes clicks through, so the pet cannot be dragged from most of its body.

This affects both:

  • bundled/default pets;
  • a valid custom v2 pet (Burny).

Switching pet assets does not fix it. Restarting Windows temporarily restores the correct hit region, but the problem eventually returns. This makes the symptom look asset-specific at first, but it is shared by all pets.

Pet width is set to the supported minimum of 80 px through avatar-overlay-mascot-width-px.

Steps to reproduce

The transition is not fully deterministic yet:

  1. Start Windows and launch Codex Desktop.
  2. Wake/show a desktop pet.
  3. Confirm that the pet can initially be dragged from its full visible body.
  4. Leave Codex running and use it normally, including pet activity/notification transitions.
  5. Later, try to begin a drag from the center or lower half of the mascot.

Expected behavior

The full visible mascot area remains clickable and draggable for the lifetime of the overlay, for both bundled and custom pets.

Actual behavior

Only part of the visible mascot remains interactive while the rest of the transparent overlay passes the pointer through. A Windows restart temporarily resets the behavior.

Local technical observations

These observations come from inspecting the packaged desktop app, because the public repository does not appear to contain the desktop avatar renderer source.

Both native and non-native overlay renderers use the shared hit-region selectors:

[data-avatar-overlay-hit-region]
[data-avatar-mascot='true']

The floating-window pointer-interactivity code measures those DOM regions and dispatches avatar-overlay-pointer-interaction-changed. The Electron main process then toggles the transparent overlay window with setIgnoreMouseEvents(...).

Because this mechanism is shared by every pet, and because the visual mascot remains correct while only pointer interaction changes, this looks like a stale pointer-passthrough/native-composition state rather than sprite geometry.

The packaged app also contains an internal persisted flag named avatar-overlay-force-non-native-rendering. That suggests forcing the Chromium rendering path could be useful as a diagnostic fallback, but I have not treated that internal flag as a supported fix.

The installed custom atlas still matches its validated source hash and passes the v2 8x11 atlas validation, so no pet asset change correlates with the failure.

Possible fix direction

  • Recompute and resend the interactive region after native-composition, layout, notification, display, DPI, sleep/wake, and overlay-bounds transitions.
  • Ensure the native visual surface and Chromium getBoundingClientRect() values stay in the same coordinate space.
  • Reapply the correct setIgnoreMouseEvents state when the overlay is re-hosted or its native surface changes.
  • Add a Windows regression test covering bundled and custom pets, pet size 80, notification transitions, and long-lived overlay state.
  • Consider automatically falling back to non-native rendering if native hit testing becomes inconsistent.

Related issues

Activity

  1. added
    bug
    app
    windows-os
    on Jul 19, 2026
  2. github-actions commented on Jul 19, 2026

    @github-actions
    Contributor

    Potential duplicates detected. Please review them and close your issue if it is a duplicate.

    Powered by Codex Action

  3. caiyongcheng commented on Jul 20, 2026

    @caiyongcheng

    Additional Windows data point on the current Microsoft Store package OpenAI.Codex_26.715.4045.0_x64__2p2nqsd0c76g0.

    Environment:

    • Windows Enterprise, x64, build 26200
    • Valid custom v1 pet atlas (1536x1872, 8x9) selected; asset validation passes.

    Observed behavior:

    • The pet remains visible and its normal animation still plays.
    • Hover still triggers the pet's hover animation.
    • However, mouse down/click and drag do not register on the visible mascot at all: it cannot be moved, and clicking it no longer brings the Codex desktop app to the foreground.
    • Resetting only the persisted avatar-overlay bounds/open state and relaunching Codex recreated fresh default bounds, but did not restore click or drag handling.

    This further points away from the custom asset or saved coordinates and toward the transparent overlay hit-testing / mouse-passthrough path. In this instance the failure appears to cover the full visible mascot, rather than only its lower portion.

  4. khoopl commented on Jul 20, 2026

    @khoopl

    I can reproduce the complete/full-overlay form of this issue.

    • Codex Windows version: 26.715.4045
    • Previous working version: 26.715.2305
    • Display setup: one 1920×1080 display; no secondary monitor
    • Affects the bundled/default pet and every custom pet
    • Resetting bounds, changing pets, restarting Codex, and forcing
      non-native rendering do not restore dragging

    Live inspection shows the overlay remains click-through
    (WS_EX_TRANSPARENT). The pet overlay starts non-interactive and does not
    transition out of mouse passthrough, preventing pointer-down and drag-start
    events from reaching the renderer.

    The Electron executable is identical between the working and failing
    packages, so the regression most likely resides in the packaged Codex
    JavaScript/resources or rollout state.

  5. gaolengnanshen6 commented on Jul 22, 2026

    @gaolengnanshen6

    Definitive root-cause update (Windows, 2026-07-21)

    The complete/full-overlay failure still reproduces after the Microsoft Store update to OpenAI.Codex_26.715.8383.0_x64.

    The earlier “hit-region desynchronization” theory does not explain this full failure. Live native-window testing isolates the broken segment to Electron's Windows mouse-forwarding path used while the transparent overlay is click-through.

    Reproduction and isolation

    • Dual-monitor Windows setup with mixed scale factors (100% and 125%).
    • All bundled pets and multiple separately validated custom v2 pets behave identically.
    • The pet remains visible and animated, but hover/press/drag never activates.
    • During a 15-second physical hover over the visible mascot, the overlay remained WS_EX_TRANSPARENT for 478/478 samples; it became interactive 0 times.
    • Posting the same WM_MOUSEMOVE that Electron's forwarder is intended to deliver directly to the overlay's Chrome_RenderWidgetHostHWND at a coordinate inside the visible mascot immediately changed the top-level overlay from passthrough to interactive:
      • before: 0x800A8 (WS_EX_TRANSPARENT set)
      • after: 0x80088 (WS_EX_TRANSPARENT cleared)
    • Posting a move at a blank overlay coordinate restored 0x800A8.

    That experiment bypasses only the native forwarding stage. It demonstrates that the following downstream stages are functioning:

    1. Chromium renderer pointer processing
    2. DOM hit testing of the mascot
    3. the renderer-to-main pointer-interactivity IPC
    4. the existing setIgnoreMouseEvents(false) transition

    The failing stage is therefore before the renderer: physical WM_MOUSEMOVE events are not being forwarded into the ignored Electron window.

    Packaged app behavior

    The current packaged desktop code still has this state model:

    • when the desired state first becomes passthrough, call setIgnoreMouseEvents(true, { forward: true });
    • cache that desired state in a boolean;
    • skip later calls while the boolean remains true.

    The resume path restores layout/display/bounds but does not explicitly re-arm the mouse forwarder. Consequently, lifecycle callbacks can run without invoking Electron again because the cached desired passthrough state has not changed.

    Electron's Windows implementation of forward: true uses a global WH_MOUSE_LL hook and also caches whether forwarding is enabled. Windows documents that a low-level hook can be silently removed after its timeout; the application cannot determine that the hook was removed. See:

    The remaining low-level ambiguity is only whether this instance failed during hook installation or the hook was later silently removed. Windows exposes no reliable signal for that distinction. Both cases have the same application-level defect: the desired-state booleans remain “forwarding enabled,” so Codex never retries or uses a fallback.

    This also explains the intermittent history: recreating the overlay/window can make dragging work temporarily, then the hook/forwarder stops and the stale state prevents recovery.

    Suggested robust fix

    Do not make pet hit testing depend exclusively on the WH_MOUSE_LL forwarding hook.

    1. While the overlay is visible and in passthrough mode, sample screen.getCursorScreenPoint() at about 30–60 Hz (or use a raw-input equivalent).
    2. When the cursor is within the overlay bounds, feed the point through the existing cursor-to-overlay path / webContents.sendInputEvent({ type: "mouseMove", ... }).
    3. Re-arm pointer forwarding on ready-to-show, show, resume/screens-wake, and display add/remove/metrics changes without allowing the desired-state cache to suppress the re-arm.
    4. Track “desired passthrough state” separately from “forwarder health/installation state,” and log installation/re-arm failures.
    5. Stop sampling when the overlay is hidden or destroyed.

    Regression/acceptance matrix

    • 10 cold launches
    • 20 sleep/resume cycles
    • 20 cross-monitor drags in each direction between 100% and 125% displays
    • bundled pets and valid custom v2 pets
    • overlay hide/show and monitor reconnect
    • blank transparent regions remain click-through
    • no global mouse freeze or external helper/hook required

    This is no longer an asset, atlas, saved-bounds, DPI-coordinate, or drag-algorithm hypothesis: direct message injection verifies the renderer-side interaction chain end to end.

  6. hestiaprophecy-dev commented on Jul 22, 2026

    @hestiaprophecy-dev

    Definitive root-cause update (Windows, 2026-07-21)

    The complete/full-overlay failure still reproduces after the Microsoft Store update to OpenAI.Codex_26.715.8383.0_x64.

    The earlier “hit-region desynchronization” theory does not explain this full failure. Live native-window testing isolates the broken segment to Electron's Windows mouse-forwarding path used while the transparent overlay is click-through.

    Reproduction and isolation

    • Dual-monitor Windows setup with mixed scale factors (100% and 125%).
    • All bundled pets and multiple separately validated custom v2 pets behave identically.
    • The pet remains visible and animated, but hover/press/drag never activates.
    • During a 15-second physical hover over the visible mascot, the overlay remained WS_EX_TRANSPARENT for 478/478 samples; it became interactive 0 times.
    • Posting the same WM_MOUSEMOVE that Electron's forwarder is intended to deliver directly to the overlay's Chrome_RenderWidgetHostHWND at a coordinate inside the visible mascot immediately changed the top-level overlay from passthrough to interactive:
      • before: 0x800A8 (WS_EX_TRANSPARENT set)
      • after: 0x80088 (WS_EX_TRANSPARENT cleared)
    • Posting a move at a blank overlay coordinate restored 0x800A8.

    That experiment bypasses only the native forwarding stage. It demonstrates that the following downstream stages are functioning:

    • Chromium renderer pointer processing
    • DOM hit testing of the mascot
    • the renderer-to-main pointer-interactivity IPC
    • the existing setIgnoreMouseEvents(false) transition

    The failing stage is therefore before the renderer: physical WM_MOUSEMOVE events are not being forwarded into the ignored Electron window.

    Packaged app behavior

    The current packaged desktop code still has this state model:

    • when the desired state first becomes passthrough, call setIgnoreMouseEvents(true, { forward: true });
    • cache that desired state in a boolean;
    • skip later calls while the boolean remains true.

    The resume path restores layout/display/bounds but does not explicitly re-arm the mouse forwarder. Consequently, lifecycle callbacks can run without invoking Electron again because the cached desired passthrough state has not changed.

    Electron's Windows implementation of forward: true uses a global WH_MOUSE_LL hook and also caches whether forwarding is enabled. Windows documents that a low-level hook can be silently removed after its timeout; the application cannot determine that the hook was removed. See:

    The remaining low-level ambiguity is only whether this instance failed during hook installation or the hook was later silently removed. Windows exposes no reliable signal for that distinction. Both cases have the same application-level defect: the desired-state booleans remain “forwarding enabled,” so Codex never retries or uses a fallback.

    This also explains the intermittent history: recreating the overlay/window can make dragging work temporarily, then the hook/forwarder stops and the stale state prevents recovery.

    Suggested robust fix

    • Do not make pet hit testing depend exclusively on the WH_MOUSE_LL forwarding hook.
    • While the overlay is visible and in passthrough mode, sample screen.getCursorScreenPoint() at about 30–60 Hz (or use a raw-input equivalent).
    • When the cursor is within the overlay bounds, feed the point through the existing cursor-to-overlay path / webContents.sendInputEvent({ type: "mouseMove", ... }).
    • Re-arm pointer forwarding on ready-to-show, show, resume/screens-wake, and display add/remove/metrics changes without allowing the desired-state cache to suppress the re-arm.
    • Track “desired passthrough state” separately from “forwarder health/installation state,” and log installation/re-arm failures.
    • Stop sampling when the overlay is hidden or destroyed.

    Regression/acceptance matrix

    • 10 cold launches
    • 20 sleep/resume cycles
    • 20 cross-monitor drags in each direction between 100% and 125% displays
    • bundled pets and valid custom v2 pets
    • overlay hide/show and monitor reconnect
    • blank transparent regions remain click-through
    • no global mouse freeze or external helper/hook required

    This is no longer an asset, atlas, saved-bounds, DPI-coordinate, or drag-algorithm hypothesis: direct message injection verifies the renderer-side interaction chain end to end.

  7. hestiaprophecy-dev commented on Jul 22, 2026

    @hestiaprophecy-dev

    Follow-up: physical click-target capture

    I captured physical left-button transitions while reproducing the complete drag failure on Codex Windows 26.715.8383.0.

    A read-only probe sampled the pet overlay's extended style and used WindowFromPoint at each physical button-down. Multiple attempted drags began on the visible mascot and were confirmed to start inside the overlay bounds.

    Sanitized result:

    BUTTON_DOWN insideOverlay=True overlayTransparent=True target=UNDERLYING_WINDOW
    BUTTON_UP   overlayTransparent=True overlayBoundsUnchanged
    

    For every captured in-overlay press:

    • the top-level pet overlay still had WS_EX_TRANSPARENT set (0x2800A8);
    • Windows resolved the physical click to the window underneath, not the pet overlay;
    • the pointer moved while held, but the overlay bounds did not change.

    This is physical-input confirmation that click-through persists through button-down, so the renderer never receives the pointerdown needed to begin the existing drag path. Combined with the earlier direct WM_MOUSEMOVE injection result, this further isolates the failure to the pre-renderer Windows mouse-forwarding/interactivity handoff.

    I also tested continuously clearing WS_EX_TRANSPARENT externally. That did not reliably restore dragging, indicating that changing the native style bit alone is not equivalent to re-arming Electron's internal ignore/forwarding state.

    The raw diagnostic log is intentionally not attached because it contains unrelated window titles, process IDs, native handles, timestamps, and screen coordinates.

  8. Plop90 commented on Jul 22, 2026

    @Plop90

    Conclusion: The pet assets and drag code are functioning. On Windows, physical mouse movement is not reaching the ignored Electron overlay, so it remains click-through and sends clicks to the window underneath. Only whether the forwarding hook failed initially or was later removed remains unresolved.
    So this requires a Codex/Electron Windows fix; changing pet assets or saved positions cannot solve it.

  9. godadom commented on Jul 23, 2026

    @godadom

    Additional reproduction: remote-desktop display transitions are a reliable trigger.

    Environment

    • Codex Desktop Microsoft Store package: OpenAI.Codex_26.715.10079.0_x64
    • Windows x64
    • One local display at 2560x1440
    • UU remote desktop session temporarily changes the controlled machine to 1024x768, then restores the local layout when the session ends
    • Reproduces with a custom v2 pet; this looks independent of pet art

    Steps to reproduce

    1. Wake the desktop pet and confirm it can be clicked and dragged locally.
    2. Start a UU remote-desktop session that changes the controlled machine's display resolution.
    3. End the session and let the local display return to its original resolution.
    4. Try to click or drag the visible pet locally.

    Actual behavior

    After the display transition back to the local layout, the pet remains visible but no longer accepts click or drag input. The symptom recurs on subsequent UU sessions that change the resolution.

    The persisted overlay state contained a per-resolution entry for 1024x768 with stale-looking bounds. Removing only electron-avatar-overlay-bounds from Codex's persisted global state and relaunching the app made Codex regenerate bounds for both 2560x1440 and 1024x768, and restored interaction for this instance.

    Expected behavior

    On every display-metrics/resolution transition, the pet overlay should re-evaluate its saved bounds and re-arm its Windows pointer-forwarding / interactivity state. A remote-desktop resolution round trip should not leave a visible pet click-through or non-draggable.

    This is a narrow remote-desktop trigger that may help exercise the same display-change lifecycle described in this issue.

  10. 17jiangyiqi-hash commented on Jul 23, 2026

    @17jiangyiqi-hash

    Additional confirmation on a newer Windows package: OpenAI.Codex 26.715.10079.0.

    • Both bundled/default pets and a validated custom v2 pet are affected.
    • Fully restarting Codex and restarting Windows do not restore dragging.
    • Hover interaction still reaches the mascot and triggers its jump animation, but holding the primary button and moving never starts a drag.
    • This worked before the update; the previously installed package was 26.715.7063.0.

    That hover-vs-drag distinction suggests the visible mascot hit region is still receiving pointer interaction, while the drag-start/native window-drag transition fails. Inspection of the packaged Windows renderer shows it calls compositionHost.performWindowDrag() and skips renderer-side fallback movement when the native call reports success, so native drag handling or success reporting may be involved.

    Full reproduction details were also recorded in the now-consolidated duplicate: #34309 (comment)

  11. JjasonYin commented on Jul 24, 2026

    @JjasonYin

    Additional Windows reproduction and workaround evidence from Codex Desktop package 26.715.10079.0:

    • The failure reproduced with a validated custom v2 pet (Teddy) while hover interaction and the pet's animation still worked; holding the primary button and moving did not start a drag.
    • The same behavior was observed with the bundled/default pet, so this is not sprite or pet-manifest specific.
    • Clearing the persisted electron-avatar-overlay-bounds and restarting Codex/Windows did not restore dragging.
    • Clearing the native WS_EX_TRANSPARENT style bit by itself also did not reliably restore Codex's internal drag chain.
    • A minimal external compatibility overlay did restore the complete behavior: it captures only the mascot hit area so the underlying window does not receive the drag, moves the Codex pet window with SetWindowPos, and forwards WM_LBUTTONDOWN/WM_MOUSEMOVE/WM_LBUTTONUP to the pet's Chrome_RenderWidgetHostHWND. This restored movement, the running animation during drag, and normal interaction.
    • This suggests the broken segment is the Windows transparent-overlay/native input-forwarding or native window-drag bridge, rather than the pet asset, saved bounds, or animation data.

    The workaround is intentionally external and reversible; no signed WindowsApps files were modified.

  12. Eniggman commented on Jul 26, 2026

    @Eniggman

    Additional Windows reproduction from a custom v2 pet:

    • Codex Desktop Windows package: 26.715.3651.0
    • Custom pet: Little Knight, using a v2 manifest with spriteVersionNumber: 2 and spritesheet.webp
    • Before switching to/upgrading to this v2 pet, the mascot could be dragged from any visible part of the pet.
    • After selecting the v2 pet, only a small specific point/region accepts pointer-down and starts a drag; clicks on most of the visible body do nothing.
    • The pet renders correctly and the asset loads; there is no hitbox or interaction setting in pet.json.

    This initially looked like a mistake in the v2 custom pet, but the symptom matches the overlay hit-region/pointer-passthrough regression described here. Expected behavior is for the full visible pet area, including transparent padding around the sprite, to remain clickable and draggable.

  13. 3 remaining items

  14. yousizaitianqiong commented on Aug 24, 2026

    @yousizaitianqiong

    补充验证(2026-08-24,Windows):

    • 我在本机当前安装的 OpenAI.Codex 26.818.5229.0 上使用最新 Codex 项目,至今未能复现本 Issue 描述的命中区域错位、鼠标穿透或拖拽失效。
    • 我检查了本地的 Codex-Dream-Skin 与 Zeyin-Melody-Skin-for-Codex 项目。它们只通过 loopback CDP 注入主界面 CSS/DOM;项目 QA 还明确验证宠物辅助窗口保持透明,因此没有修改 avatar-overlay、setIgnoreMouseEvents 或宠物原生拖拽逻辑。
    • 对当前 app.asar 的只读检查显示,当前包已经包含针对性机制:通过 ResizeObserver/MutationObserver 重新测量 [data-avatar-overlay-hit-region],过滤 pointer-events:none 的区域,并通过 setInputShape 同步输入形状;主进程同时分离 inputShape、pointerInteractive 与 mousePassthroughMode,并在窗口显示、显示器变化、恢复等生命周期重新应用交互策略,还能刷新当前鼠标位置。
    • 这与旧版报告中的缓存 passthrough/forwarder 状态路径不同,也可能解释了为什么在当前版本不再复现。
    • 本次没有修改官方安装包,也没有提交上游代码修复;Issue 先保持 open。若仍有特定旧版或当前版本能够复现,欢迎提供版本号、显示器/DPI、宠物尺寸和触发步骤,以便继续定位。
  15. FlerePersonal commented on Aug 24, 2026

    @FlerePersonal

    Current-version mixed-DPI correlation and recovery (Windows, 2026-08-24)

    I can reproduce the non-interactive pet state on Codex Desktop 26.818.5229.0 with mixed display scaling.

    Environment

    • Windows x64
    • 3840×2160 display at 150% scaling (DPI 144)
    • 3072×1920 display at 200% scaling (DPI 192)
    • Observed with a custom v2 pet; bundled pets have not yet been tested in this setup

    Observed behavior / recovery

    1. While the pet was on the 200%-scaled display, it remained visible but could not be dragged. Single-clicking it also no longer opened or focused Codex.
    2. Restarting Codex did not restore interaction while the pet remained on that display.
    3. Moving the overlay back to the 150%-scaled display using native window positioning restored normal manual dragging and clicking.
    4. Changing the Windows display scaling also restored interaction immediately.

    The exact transition that initially breaks interaction has not yet been isolated, but the recovery is strongly correlated with the per-monitor scale/DPI change.

    Local native-window observations

    • On the 200% display: overlay physical bounds were 816×800 and the window DPI was 192.
    • On the 150% display: overlay physical bounds were 613×600 and the window DPI was 144.
    • Codex renderer processes were launched with --device-scale-factor=1.5, matching the 150% display rather than the 200% display.

    This suggests a mixed-DPI coordinate conversion or stale input-shape/hit-test region when the overlay is hosted on a differently scaled monitor. It may be worth recomputing and reapplying the input shape and pointer-interactivity state on WM_DPICHANGED, monitor moves, and display-scale changes.

    Current workarounds

    • Keep the pet on the 150%-scaled display.
    • Change the Windows display scaling to force an interaction-region refresh.
  16. yousizaitianqiong commented on Aug 25, 2026

    @yousizaitianqiong

    Minimal size-matrix follow-up with a custom v2 pet (Windows, 2026-08-25)

    I ran the size leg locally on Codex Desktop 26.818.5229.0 with the custom yukie-head / “Yukie Head” pet (spriteVersionNumber: 2). The installed spritesheet matches the workspace source (SHA-256: 1C92859C0CB66480F00EB44F29F6E3614D598A68B4EEC700C6ED04160E1F8C8C) and passes the v2 atlas validation.

    The renderer is launched with --device-scale-factor=1.5. This machine currently exposes only one monitor (DISPLAY1, 2560×1600 physical) at 150% scaling / DPI 144, so I could not execute the 200% or cross-monitor legs. I am marking those legs as blocked rather than treating them as passes.

    Leg Result
    150%, minimum → maximum → minimum Executed: slider read back 80.0 → 224.0 → 80.0. The pet remained visually rendered at all three stages; the UIA image boxes were 120×131, 336×365, and 120×131.
    200%, minimum → maximum → minimum Blocked: no DPI-192 monitor is available on this machine.
    150% → 200% → 150% move Blocked: no second monitor is available.

    For each 150% stage I sampled native WindowFromPoint at the top, middle, and bottom of the visible Yukie image. All 9/9 samples resolved to the main ChatGPT window, not the pet overlay; an additional spot check of the overlay controls also resolved to the main window. The pet stayed visible in the screenshots, so this run reproduced a complete mouse-passthrough state rather than a size-dependent recovery.

    In the clean rerun, the 80 px image box was at the same horizontal position (X=2225) before and after the round trip, so I did not get a repeatable size/layout drift from resizing alone.

    This local run does not isolate the transition that first enters the non-interactive state, and it does not establish the 200% mixed-DPI behavior because the required hardware is unavailable. It does show that the current version can still reach a visible-but-fully-passthrough state at 150% with a valid custom v2 pet after a minimum → maximum → minimum size sequence.

  17. Evgeniy-Chapurin commented on Aug 28, 2026

    @Evgeniy-Chapurin

    Confirmed on newer Windows package 26.825.3734.0 (single display, 100% scale)

    This still reproduces on the current Microsoft Store package:

    • Package: OpenAI.Codex_26.825.3734.0_x64__2p2nqsd0c76g0
    • Package status: Ok, Store-signed
    • Display: one 1920×1080 display
    • Windows scaling: 100% (DPI 96)
    • Pet: validated custom v2 atlas, 1536×2288, 8×11, RGBA lossless WebP
    • Atlas validation: 0 errors, 0 warnings; installed SHA-256 matches the validated source

    Observed behavior

    • The pet remains visible and animated.
    • The pet cannot be clicked or dragged.
    • Activity/notification messages appear, but clicking them does nothing.
    • Restarting the pet, restarting the desktop app, and restarting Windows do not restore interaction.
    • The failure reproduces at both the supported minimum size (80 px) and maximum size (224 px).

    Native-window evidence

    The visible avatar overlay is present as a layered, topmost tool window. I sampled the complete overlay with Win32 WindowFromPoint on an 8-pixel grid:

    • overlay bounds sampled: 772×1080
    • interactive samples resolving to the avatar overlay: 0
    • a point inside the expected visible mascot rectangle resolves to the underlying main ChatGPT window instead
    • after the supported 80 → 224 px size change, the overlay remained non-interactive and WS_EX_TRANSPARENT was present

    The current packaged code measures [data-avatar-overlay-hit-region], sends regions through setPointerRegions, and applies them through BrowserWindow.setInputShape(...), with setIgnoreMouseEvents(true, { forward: true }) as the fallback. In this reproduction the effective native input region is empty, and the fallback never transitions the overlay out of mouse passthrough.

    This is a full-overlay failure on a single 100%-scaled display, so it is not limited to mixed-DPI or multi-monitor setups. No personal logs, chat text, or pet artwork are attached.

  18. qq1103288214-debug commented on Aug 28, 2026

    @qq1103288214-debug

    Still reproducible on Windows package 26.825.4187.0

    I can reproduce the fully non-interactive pet overlay on a newer Microsoft Store build.

    Environment

    • Codex Desktop: OpenAI.Codex 26.825.4187.0 (package status Ok)
    • Windows 11 x64, build 26200
    • Observed: 2026-08-29

    Observed behavior

    • The pet/avatar overlay is present, but the visible pet cannot be clicked or dragged and its activity surface is unusable.
    • Restarting the Codex app, terminating all associated app-server processes, recreating the overlay, and restarting Windows do not restore interaction.
    • Resetting/recreating the persisted overlay open/bounds state also does not restore interaction.
    • Desktop logs show the avatarOverlay BrowserWindow is created and reaches ready-to-show, while the renderer-side overlay visibility/interaction state does not recover.

    This is therefore still present after the previously reported 26.825.3734.0 build. In this reproduction the failure also coincides with a Realtime Voice provisional-thread failure; I added the session evidence to #40990. No raw local paths, account data, transcript content, or full thread IDs are included.

  19. Gravifer commented on Aug 29, 2026

    @Gravifer

    Adding a current-build reproduction that appears to belong to this issue family.

    • Codex Desktop: 26.825.4187.0
    • Windows build: 26200.9168, x64
    • Single laptop built-in display only
    • Display scaling: 150%
    • Reproduces with both bundled/default and custom Pets

    The interactive hit region is initially limited to a very small portion of the visible Pet. After one successful interaction or drag, the Pet can become completely non-interactive while remaining visually rendered correctly.

    The built-in-Pet-first workaround from #35868 did not help.

    Full reproduction details were posted in #34309 (comment)

  20. Evgeniy-Chapurin commented on Aug 29, 2026

    @Evgeniy-Chapurin

    Same-machine upgrade to 26.825.4187.0 did not restore interaction

    Follow-up to my earlier reproduction in #34227 (comment).

    Today this same machine received the Microsoft Store update from 26.825.3734.0 to 26.825.4187.0.

    Verified after the update and restart

    • Package: OpenAI.Codex 26.825.4187.0
    • Package status: Ok
    • Display: single 1920×1080 display at 100% scaling (DPI 96)
    • Same validated custom v2 pet, 1536×2288 / 8×11
    • The pet remains visible and animated, but cannot be clicked or dragged
    • Activity/notification surfaces appear but remain non-interactive

    Fresh native-window check

    • Complete overlay sampled with WindowFromPoint on an 8-pixel grid
    • Samples resolving to the avatar overlay: 0
    • A mascot point still resolves to the underlying main ChatGPT window
    • Top-level overlay extended style: 0x2800A8 (WS_EX_TRANSPARENT present)
    • Native window region: empty (GetWindowRgn type 0, box 0×0)

    This is a direct same-machine upgrade test, so the newer package did not clear the persisted failure or repair the mouse-forwarding/input-region state. Restarting after the update also did not help.

    Please let me know if a specific diagnostic logging category, supported debug flag, or instrumented build would help isolate this further. No personal logs, raw local paths, account data, chat content, or pet artwork are included.

  21. Cataphract450 commented on Aug 29, 2026

    @Cataphract450

    Current-build confirmation with synchronized native input evidence

    I can reproduce the complete click-through form of this issue on a current Windows package.

    Environment

    • Codex Windows package: OpenAI.Codex 26.825.5331.0 (x64)
    • Internal desktop release: 26.825.41651
    • Windows 11 25H2, build 26200.9168, x64
    • Pet: bundled Dewey
    • Reproduced: 2026-08-29
    • Frequency after the failure begins: 100%

    Observed behavior

    • Pointer hover still makes Dewey react/animate.
    • LMB press and movement over the center of the visible pet never starts a drag.
    • The primary Codex window underneath receives the button input.
    • Restarting Codex and fully rebooting Windows did not restore interaction.

    Synchronized diagnostic result

    • The visible avatar-overlay window retained extended style 0x2800A8, including WS_EX_TRANSPARENT.
    • During a physical LMB hold and movement, both WindowFromPoint and pointer capture resolved to the primary Codex window underneath, not the overlay.
    • A 4-pixel grid scan over the complete overlay found 0 hit-testable points belonging to the overlay, including the visible Dewey region.
    • The overlay bounds remained unchanged throughout the physical drag attempt.
    • As a control, externally moving the same overlay window with SetWindowPos moved Dewey immediately and Codex persisted the updated coordinates. The exact original position was restored after the test.

    This confirms that the renderer, bundled asset, animation, window positioning, and position persistence are functional. The broken boundary is the Windows overlay input-shape / pointer-interactivity handoff: mouse movement is forwarded well enough for hover, while button input still passes through.

    Please inspect whether the current input-shape path can leave the overlay with an empty effective hit region or with setIgnoreMouseEvents(true, { forward: true }) / WS_EX_TRANSPARENT still active after the visible pet region is ready. Re-arming and logging this state on show/wake/resume would help.

    A separate private report has also been submitted through OpenAI Support. No raw logs, personal data, local paths, customer documents, or repository contents are attached here.

  22. jayc1723-pixel commented on Aug 29, 2026

    @jayc1723-pixel

    I can reproduce this on Codex for Windows 26.825.4187.0 with AMD Radeon graphics.

    Both built-in and custom pets display while idle, but freeze when their animation starts or when they move. Dark Magician sometimes remains draggable slightly longer; however, when I drag it, the pet jumps downward while the cursor stays at the original grab point near the top.

    This happens on both my laptop display at 100% scaling and my Roku display at 300% scaling, so it is not limited to one display’s scaling. It appears to be a Windows pet-overlay input/position desynchronization rather than a pet asset problem.

  23. 0xsysone commented on Aug 30, 2026

    @0xsysone

    I can confirm the same issue on Windows 11 25H2 with Codex desktop core 0.151.0-alpha.7.2. The pet remains visible and responds to hover, but it cannot be dragged: input goes to the Codex window underneath. Restarting both Codex and Windows did not resolve it.

  24. HaoYue1027 commented on Aug 30, 2026

    @HaoYue1027

    | Additional reproduction + packaged-code evidence | Windows 11 25H2 (build 26200) + Codex desktop App 26.825.51511 / MSIX 26.825.6671.0 / bundled kernel 0.151.0-alpha.7, 2026-08-30 |

    This adds one more affected build pair and one new data point: a v1 custom pet
    (no spriteVersionNumber) reproduces the same complete click-through, so the
    failure is independent of pet asset version, consistent with the analysis here.

    Environment

    • OS: Windows 11 25H2, build 26200.9168 (x64), single display
    • Codex desktop Electron App version: 26.825.51511 (read from packaged app.asar package.json)
    • MSIX package: OpenAI.Codex_26.825.6671.0_x64__2p2nqsd0c76g0
    • Bundled kernel / app-server: 0.151.0-alpha.7 (string found in app\resources\codex.exe)
    • Pet under test: custom pet deepseek at ~/.codex/pets/deepseek/ with pet.json + spritesheet.webp

    Reproduces (stable)

    1. Launch Codex desktop, wake the pet overlay with the custom v1 pet selected.
    2. Hover near the pet: proximity animation reacts normally.
    3. Hold LMB over the visible pet and move the pointer.
    4. Expected: renderer receives pointerdown/pointermove/pointerup; the pet follows.
    5. Actual: the pet never moves. No drag/grab cursor. The underlying windows receive the input.

    The same issue reproduces with the built-in pets (verified in the community thread
    for builds 26.825.3734.0 and 26.825.5331.0, same OS build family), so this is not
    asset-specific.

    Packaged-code observation (new, complements the runtime evidence already posted)

    Inspecting the packaged Electron app for 26.825.51511:

    • The "native window drag" bridge helpers (setWindowDragTarget, performWindowDrag,
      isWindowDragActive, finishWindowDrag) all short-circuit with if (platform !== 'darwin') return false.
      On Windows the overlay therefore relies entirely on the JavaScript drag path:
      renderer pointer events (avatar-overlay-drag-start/move/end) → main-process window
      movement, plus the pointer-interactivity policy that toggles the overlay window
      between setIgnoreMouseEvents(..., {forward: true/false}) / setInputShape states.
    • applyPointerInteractivityPolicy() is the only place that decides "interactive vs
      passthrough" for the raw native window. When the persisted passthrough state goes
      stale (as reported for the long-lived overlay), the overlay keeps WS_EX_TRANSPARENT,
      and because Windows has no native drag fallback, there is no code path left that can
      recover pointer input except a fresh overlay/native-surface state.
    • The community thread already measured WS_EX_TRANSPARENT permanently retained,
      0 hit-testable points inside the overlay, and zero trusted pointer/mouse events in
      the renderer, while an external SetWindowPos still moves the pet correctly.

    Causal isolation (from the same evidence)

    • Not assets: built-in and custom (v1 and v2) pets all fail; the atlas validates and
      the renderer-only CDP drag still works.
    • Not saved position / renderer: externally moving the overlay window persists and
      renders correctly.
    • Not GPU: --disable-gpu --disable-gpu-compositing does not help.
    • The failure is specifically the Windows overlay pointer-interactivity /
      input-shape handoff (hover is forwarded via setIgnoreMouseEvents({forward:true})
      while button press remains click-through).

    Suggested fix direction + regression invariant

    • Re-measure the mascot hit shape after the selected pet finishes loading and after
      every layout/notification/display/DPI/sleep-wake/overlay-bounds transition; recompute
      and reapply setInputShape/setIgnoreMouseEvents from those fresh measurements.
    • Add an explicit recovery invariant on Windows: after applying pointer interactivity,
      verify that WindowFromPoint over the visible mascot region returns the overlay
      hwnd; otherwise force setIgnoreMouseEvents(false) and fall back to non-native
      rendering rather than leaving the window pass-through.
    • Regression test: wake overlay with a custom pet first, run a long-lived session with
      notification/activity transitions, then assert a physical drag from the middle of
      the mascot moves the window (both built-in and custom-v2 pets, plus a v1 pet).

    Boundaries

    • I verified the packaged-code paths on 26.825.51511 and confirmed the symptom on this
      machine with a v1 custom pet; I did not re-run the window-enumeration/hit-map
      instrumentation locally (the same measurement already exists in this thread for
      builds 26.825.3734.0 / 26.825.5331.0 and matches my observation exactly).
    • No logs, decrypted data, local paths beyond ~/.codex/pets/deepseek, or credentials
      are included.

    Expected: the overlay toggles out of mouse-passthrough when the mascot is visible and
    draggable from its full visible area on Windows.
    Actual: the overlay stays click-through once the hit region desynchronizes, leaving
    zero recoverable input path until the app is fully restarted (which in my case did
    not recover it either).

    Please reopen/prioritize this as the tracking issue; it is the same root cause family
    as #34309 and #35868.

  25. kenrolzjc commented on Aug 31, 2026

    @kenrolzjc

    Additional sanitized reproduction data from another affected Windows system:

    Environment

    • Codex Desktop: 26.825.6671.0
    • Windows 11 25H2, build 26200.9168, x64
    • Primary display: 2560×1440, 100% scaling
    • Secondary display: 1920×1080, 125% scaling, positioned to the left
    • Windows animation effects enabled

    Clean-restart measurements

    These measurements were captured immediately after a clean Codex restart, before any further display-topology changes:

    • avatarOverlay rect: x=1325, y=0, width=761, height=1440
    • Visible mascot rect: x=1577, y=581, width=224, height=243
    • A 20-pixel WindowFromPoint grid across the overlay produced 288/2736 hits
    • Every interactive sample was confined to x=1335..1675, y=10..310
    • Probes inside the visible mascot at (1589,593), (1689,702), and (1689,812) all passed through to the underlying application

    The rendered mascot and native input region are therefore in different coordinate spaces. A clean restart does not realign them.

    A primary-display-only test at 2560×1440 / 100% also failed to restore click or drag interaction. After changing display topology, the overlay bounds became stale and remained misaligned after returning to extended mode.

    This reproduces with a validated custom v2 pet, but the evidence points to the shared Windows avatarOverlay input-region calculation rather than sprite geometry.

  26. a01047234701-oss commented on Sep 6, 2026

    @a01047234701-oss

    Additional reproduction from another affected Windows user (reported September 6, 2026):

    • Windows 11
    • Codex Desktop package: OpenAI.Codex 26.901.2854.0
    • Two 1920×1080 monitors arranged side by side
    • Both displays are at 100% scaling (96 DPI)
    • Reproduces with a built-in pet as well as a validated custom v2 pet
    • The older ChatGPT Classic desktop app was fully closed; the problem persisted

    More specific interaction sequence:

    1. Wake/show the pet. It initially appears near the top of the screen.
    2. On the first interaction, the pet can be grabbed and moved once. A click can also cause it to jump/drop toward the bottom.
    3. Release the pet.
    4. Try to grab or drag it a second time.
    5. The pet no longer responds to the pointer and cannot be moved again.

    This differs slightly from reports where the pet is permanently click-through from startup: here, the first drag can work, but the interactive region appears to become stale or detached immediately after the first move/drop. Restarting or closing the separately installed Classic app did not resolve it.

    Expected: the visible pet should remain clickable and draggable after every move, and its hit region should follow its rendered position.

    No conversation transcript, local paths, credentials, or private logs are included. This comment was prepared with AI assistance and posted at the affected user's request.

  27. zhuoruriyue commented on Sep 7, 2026

    @zhuoruriyue

    Adding another Windows reproduction and a locally tested experimental workaround.

    Environment: Codex Windows 26.901.6511.0, 200% display scaling, default pet size (112 px). Both the bundled pet and a custom v2 pet were affected.

    Symptoms: Animations continued, but physical mouse interaction and dragging stopped working. Refreshing Pets in Settings briefly restored dragging. Removing the custom pet files and restarting the client did not resolve it. Stopping the active wallpaper applications/services did not resolve it either.

    Local observations: A DPI-aware native probe measured the overlay at 1126 × 1800 physical pixels. A coarse WindowFromPoint scan, mapping returned child windows to their root with GetAncestor, found the overlay's receptive area concentrated near the upper-left corner (sampled x=10–690, y=10–610). The saved pet position was approximately x=212, y=1474 physical pixels, outside that area. The sampled receptive area was consistent with the app's initial 356 × 320 DIP window size, suggesting stale input geometry after the window expanded. This is a hypothesis, not a confirmed source-level root cause.

    Experimental workaround: A local helper clears and restores WS_EX_LAYERED to reset the problematic input state, then toggles WS_EX_TRANSPARENT according to whether the cursor is near the pet. It keeps input enabled while dragging. Native checks confirmed that the pet location received input when enabled and passed input to the background when disabled. I then confirmed that hover response and repeated physical dragging worked again. No official application files were modified.

    Limitations: This has only been tested on one machine. Switching pets once caused a temporary failure that later recovered; the recovery trigger is unclear. Mixed-DPI/multiple monitors, notification cards and voice controls have not been fully tested. This should be treated as diagnostic evidence and an experimental workaround, not a universal fix or a recommendation to disable transparency across the whole overlay.

    Could the maintainers investigate whether the native input region is rebuilt correctly after overlay size/layout changes and pet switches, and stays aligned with the visible mascot?

  28. kenrolzjc commented on Sep 9, 2026

    @kenrolzjc

    Resolution update from my affected Windows system (sanitized):

    • Previously affected build: Codex Desktop 26.825.6671.0
    • Current working build: Codex Desktop 26.903.8094.0
    • Windows 11 25H2, build 26200.9168, x64
    • The installed custom v2 pet files were unchanged

    After the update, I manually confirmed the full interaction path:

    • Moving the physical mouse over the visible pet triggers the expected hover reaction.
    • Clicking the visible pet works.
    • Dragging, releasing, and dragging it again works repeatedly.
    • The pet follows the cursor and remains interactive at its new position.
    • No local workaround, Windows setting change, pet reinstall, or app-file modification was required.

    The original click-through / displaced-hit-region problem is resolved on this machine in 26.903.8094.0. This is a single-system confirmation and not a claim that every Windows configuration or older build has been fixed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    appbugpetswindows-os

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions