Skip to content

[Windows][Pets] Built-in and custom floating pets become click-through and cannot be dragged #41513

Closed

Description

@Lucency09

Environment

  • ChatGPT/Codex desktop app: 26.825.5331.0 x64
  • Also reproduced on: 26.825.4187.0
  • Platform: Windows x64
  • Pets tested:
    • Official built-in pet: Codey
    • Custom pet: Remiel (configured width: 224 px)

Description

The floating pet becomes click-through and cannot be clicked or dragged. Pointer input is delivered to the desktop or application underneath the pet.

The issue affects both the official built-in Codey pet and the custom Remiel pet. Switching pets does not resolve it, so it does not appear to be caused by custom pet artwork or packaging.

The overlay can also display layout artifacts. In the attached screenshots, the controls are clipped and a visible purple rectangular boundary appears beside/below the built-in pet.

Steps to reproduce

  1. Wake the floating pet.
  2. Select the official built-in Codey pet.
  3. Move the pointer over the mascot and press-drag.
  4. Observe that the click is handled by the desktop or application underneath instead of starting a drag.
  5. Switch to the custom Remiel pet and repeat.
  6. Observe the same click-through behavior.

Expected behavior

The mascot hit region should receive pointer input, and both built-in and custom pets should remain draggable.

Actual behavior

Pointer input passes through the pet overlay to the underlying desktop or application. The pet cannot be dragged.

Diagnostics

The pet overlay retained the Windows WS_EX_TRANSPARENT extended style:

  • Broken state: ExStyle 0x2800A8
  • Temporarily working state: ExStyle 0x280088
  • In a 15-second diagnostic run, 150/150 samples remained transparent while the cursor was inside the overlay.

Clearing only WS_EX_TRANSPARENT temporarily restored dragging. The application later enabled the flag again, and dragging stopped again.

Suspected cause

This appears to be a mismatch between the avatar overlay's internal pointer-interactivity state and the actual Windows extended window style.

The input-shape path appears to mark mousePassthroughMode as disabled after setInputShape() succeeds. If WS_EX_TRANSPARENT remains enabled at the Windows level, later calls can skip setIgnoreMouseEvents(false) because the internal state already says mouse passthrough is disabled.

It may be necessary for applyInputShape() to call setIgnoreMouseEvents(false) unconditionally before applying the input shape, or to verify the actual Windows style before returning.

Troubleshooting already attempted

  • Fully restarted the desktop app.
  • Reproduced across app versions 26.825.4187.0 and 26.825.5331.0.
  • Switched between the official built-in Codey pet and the custom Remiel pet.
  • Verified that clearing only WS_EX_TRANSPARENT temporarily restores dragging.

Attachments

  1. CodexPetBug_01_Custom_Remiel_ClickThrough.png
Image
  1. CodexPetBug_02_BuiltIn_Codey_ClickThrough.png
Image

Activity

  1. added
    bug
    app
    windows-os
    on Aug 29, 2026
  2. liangzhe2026 commented on Aug 29, 2026

    @liangzhe2026

    Additional independent reproduction on Windows:

    • Codex Desktop: 26.825.5331.0 x64 (the app updated from 26.825.4187.0 during investigation)
    • Display: 1920×1080
    • The built-in Codey mascot remains visible, but clicks and drag attempts are delivered to the desktop underneath.

    OS-level observations from the broken state:

    • WindowFromPoint at several coordinates inside the visibly rendered mascot returned Explorer's desktop SysListView32 / FolderView, not the avatar-overlay window.
    • Sending WM_NCHITTEST directly to the overlay for the same points returned HTCLIENT.
    • In this reproduction, the overlay extended style was 0x80088; WS_EX_TRANSPARENT was not set.

    This may indicate a second failure mode in the native setInputShape() path: the visible mascot can be excluded from the actual Windows input shape even when the ordinary WS_EX_TRANSPARENT flag is clear. It would be useful for the fix/regression test to verify both the extended style and the effective native input shape after pointer regions are recomputed.

  3. HB-JAZZ commented on Aug 29, 2026

    @HB-JAZZ

    Additional reproduction on Windows:

    • ChatGPT/Codex desktop app version: 26.825.41651
    • Release date shown in About: 2026-08-29

    Observed behavior:

    1. The floating pet is visible but normally cannot be clicked or dragged; pointer input passes through to the window/desktop underneath.
    2. Refreshing/reloading the app temporarily restores pet dragging.
    3. Immediately after a refresh, the pet can be dragged once.
    4. After that first successful drag, the pet becomes click-through again and cannot be dragged.
    5. Refreshing again restores exactly one successful drag, so the behavior is repeatable.

    This suggests the overlay starts in a correct pointer-interactive state after refresh, then switches back into an incorrect mouse-passthrough state after the first drag/interactivity transition.

    Current workaround is to refresh and use the single drag opportunity to move the pet out of the way, or disable the pet.

  4. qcy007 commented on Aug 29, 2026

    @qcy007

    Additional independent reproduction on Windows:

    • OS: Windows 11 Pro, version 10.0.26200 (build 26200)
    • Codex Desktop package: 26.825.5331.0 x64
    • Package version was verified locally with Get-AppxPackage OpenAI.Codex
    • The problem began immediately after updating on 2026-08-30

    Observed behavior:

    • The floating pet remains visible, but clicking it has no effect.
    • Pressing and dragging does not start a drag, so the pet cannot be repositioned.
    • This matches the non-interactive/click-through behavior described in this issue.

    No local patch or modification has been applied to the Codex package.

  5. zj411017-rgb commented on Aug 30, 2026

    @zj411017-rgb

    I can reproduce a closely related Windows issue with a custom v2 pet. The pet stays visible, but clicks and drag gestures pass to the window underneath; hide → show reproduces it immediately.

    In a native trace, clicks made on the visible pet did not intersect the overlay window’s physical bounds. Hide/show destroyed and recreated the overlay/render host, after which the input path diverged again. Clearing WS_EX_TRANSPARENT or resetting region/bounds was not a reliable fix.

    This appears to be a host-side synchronization issue between the displayed pet surface, display placement, and the Chromium/Owl input region, especially after hide/show on a multi-display Windows setup.

  6. panchinpeng commented on Aug 30, 2026

    @panchinpeng

    Still reproducible in a newer version.

    Environment:

    • ChatGPT/Codex desktop app: 26.825.6671.0 x64
    • Platform: Windows x64
    • Pet tested: built-in pet

    Behavior:
    The floating pet is visible and animated, but it cannot be clicked or dragged. Mouse input appears to pass through the pet overlay to the window or desktop underneath.

    This matches the WS_EX_TRANSPARENT / pointer-interactivity symptoms described in this issue. The problem is therefore still present in 26.825.6671.0, which is newer than the previously reported 26.825.5331.0 build.

    Please let me know if additional diagnostics or logs from this version would be helpful.

  7. asdesign2026 commented on Aug 30, 2026

    @asdesign2026

    Confirmed independently, including with a working external proof-of-concept.

    Environment

    • Codex Microsoft Store package: 26.825.6671.0
    • Architecture: ARM64
    • Windows build: 26200.9168
    • Display DPI: 192 / 200% scaling
    • Pet overlay class: Chrome_WidgetWin_1
    • Observed overlay bounds: 1928,0 952×1800
    • Affects both mouse and touchscreen input
    • Rendering and hover behaviour continue normally

    Controlled test results

    1. The pet was visible, but pointer-down and drag events passed through it.

    2. The overlay had WS_EX_TRANSPARENT.

    3. Clearing WS_EX_TRANSPARENT alone did not restore interaction in this state.

    4. A small helper-owned input surface placed over the visible pet, combined with:

      • clearing WS_EX_TRANSPARENT immediately before input, and
      • forwarding WM_LBUTTONDOWN, WM_MOUSEMOVE, and WM_LBUTTONUP to the pet overlay

      reliably restored clicking and dragging.

    5. The helper’s input surface could follow the pet after the drag completed.

    6. No pet asset, Codex package, app data, or renderer files were modified.

    This demonstrates that the pet renderer and drag behaviour are still functional. The failure is in the Windows native pointer-routing/input-region state, not the pet asset or mouse hardware.

    It also suggests that clearing WS_EX_TRANSPARENT is not, by itself, a complete official fix. The opposite state has also been reported in #41596, where the whole transparent overlay captures input.

    Suggested official fix

    Conceptually, when a non-empty pet hit region is applied:

    1. Call setIgnoreMouseEvents(false) unconditionally, or verify the actual native state instead of trusting a cached mousePassthroughMode.
    2. Apply the pet’s native input shape using a consistent physical/logical coordinate conversion.
    3. Recalculate and reapply it after:
      • Wake Pet
      • switching pets
      • display/DPI changes
      • moving between monitors
      • every completed drag
    4. When no interactive region exists, use setIgnoreMouseEvents(true, { forward: true }).
    5. Ensure the defined hit region accepts mouse, touch and pointer input while the rest of the transparent overlay remains pass-through.

    Regression coverage should include ARM64, 200% scaling, secondary displays, touch input, and repeated drags.

    Related reports: #41465, #41501, #41506, #41535, #41596, #34227.

  8. Tantallium commented on Aug 31, 2026

    @Tantallium

    Title

    [Windows][Pets] Floating pets are visible but click-through and cannot be dragged; dragging selects chat text

    Codex version

    Microsoft Store package OpenAI.Codex 26.825.6671.0 x64.

    Platform

    Windows x64. The issue was reproduced with a virtual/remote display and again after reconnecting the physical display. The active display was observed as 2560x1440 at 96 DPI.

    Pets tested

    • Built-in default pet
    • Custom v2 pet Doro

    Steps to reproduce

    1. Launch Codex Desktop on Windows.
    2. Show or wake the floating pet.
    3. Test both the built-in pet and the custom pet.
    4. Click the visible pet, then press and drag from its body.
    5. Move the pointer away and observe the voice-chat tooltip.

    Expected behavior

    The visible pet and its activity controls should receive pointer input. The pet should be clickable and draggable, while transparent overlay areas should pass through to the window behind them.

    Actual behavior

    The pet remains visible and animated, but clicking and dragging do nothing. Dragging selects text in the Codex chat underneath, indicating that pointer input is passing through the pet overlay. The "Start a new voice chat" tooltip can remain stuck at the original interaction position. The same behavior occurs with the built-in pet, so this does not appear to be caused by custom artwork or packaging.

    Troubleshooting already attempted

    • Fully restarted Codex.
    • Reset/reopened the pet state.
    • Switched between the built-in pet and Doro.
    • Reconnected the physical display; the issue persisted.
    • Validated the custom v2 sprite atlas successfully.

    Suspected area

    Windows avatar overlay native hit testing / input shape / mouse-passthrough state synchronization. The renderer contains the drag handlers, but the visible pet region does not receive the pointer event.

    Please investigate this as a Windows host-layer regression in the 26.825.6671.0 Store package. It appears related to the existing Windows pet click-through reports.

  9. alex1977net commented on Aug 31, 2026

    @alex1977net

    Additional Windows diagnostics: overlay is 901x1235, style resets, and a forced native frame still cannot be dragged

    I reproduced this on Windows 11 with the Microsoft Store package OpenAI.Codex 26.825.6671.0 x64 in a multi-monitor setup. The behavior is identical with a built-in pet and a custom v2 pet.

    Native window observations

    • The pet is rendered inside a top-level Chrome_WidgetWin_1 overlay.
    • During the test, its native rectangle was x=1295, y=0, width=901, height=1235. The visible pet occupies only a small area inside this much larger transparent window.
    • The normal window style was 0x14000000.
    • The extended style changed between 0x280088 and 0x2800A8; the latter includes WS_EX_TRANSPARENT (0x20). Codex re-enabled this flag after it had been cleared externally.
    • WindowFromPoint over the visible pet returned the application behind the overlay, while points in another part of the overlay returned ChatGPT. This is consistent with an incorrect native input shape / hit-test region.

    Workarounds tested

    1. Clearing WS_EX_TRANSPARENT and forcing SWP_FRAMECHANGED did not restore click or drag.
    2. Calling native SetWindowPos moved the overlay successfully. Codex detected the move and persisted the resulting pet coordinates across reopening the app. This suggests rendering and position persistence are working.
    3. I added WS_CAPTION, WS_THICKFRAME, and WS_SYSMENU, while repeatedly clearing WS_EX_TRANSPARENT every 150 ms for 30 seconds. This exposed the full overlay as a large dark panel docked over the right side of the ChatGPT window. The native frame still could not be dragged.
    4. After a one-time style change, Codex quickly restored the frameless style automatically.

    Conclusion

    This does not appear to be caused by custom pet artwork, saved position, DPI scaling alone, or mouse hardware. The failure is in the Windows host overlay hit-testing / input-shape synchronization. External movement works and persists, but neither the visible pet nor a forced native frame receives usable drag input.

    I also captured a privacy-cropped screenshot showing the full 901x1235 overlay exposed as a dark panel, with the pet occupying only a small central area. I can provide it if useful.

  10. 2liuhou commented on Aug 31, 2026

    @2liuhou

    Additional reproduction and diagnostics on a newer build:

    • Codex Desktop for Windows: 26.825.6671.0
    • Codex CLI: 0.150.1
    • Reproduced on 2026-08-31 (Asia/Shanghai)
    • Both built-in and valid custom v2 pets were visible/animated but did not respond to clicks or dragging.
    • /pet, Ctrl+0, switching pets, and a full app restart did not resolve the issue.

    More precise coordinate evidence from the broken state:

    • Overlay viewport: about 771 × 864 at DPR 1.25
    • Visible pet DOM rectangle: about x=327, y=624, w=85, h=93
    • Windows hit-testing showed the active input region near overlay-relative x=4..348, y=4..316, in the top-left rather than over the rendered pet.

    This indicates a second/related failure mode beyond a globally retained WS_EX_TRANSPARENT: the input-shape rectangles appear to be normalized to the overlay origin while their DOM left/top offsets are lost.

    A verified current-process workaround was to force the legacy compact overlay layout (about 358 × 322), clear the faulty input shape with avatarOverlay.setPointerRegions(null, []), and keep pointer interaction enabled. Win32 hit-testing then targeted the pet overlay at the visible mascot, and dragging worked again. The workaround is memory-only and may be lost after restart.

    Please include Windows input-shape coordinate/offset handling in the investigation and regression coverage.

  11. Gravifer commented on Aug 31, 2026

    @Gravifer

    Read-only packaged-code analysis for 26.825.6671.0: native input-shape and post-drag synchronization paths

    I can reproduce the same Windows pet-overlay failure described here, including the one-interaction variant in #41501.

    Reproduction summary

    • Microsoft Store package: OpenAI.Codex 26.825.6671.0 x64
    • Internal desktop bundle: 26.825.51511, build 7377
    • Electron: 42.3.0
    • Windows 11 x64, build 26200.9168
    • One laptop built-in display only; no external or secondary monitor
    • Display scaling: 150%
    • Reproduces with both a bundled/default pet and a valid custom pet

    Only a very small, displaced portion of the visible pet initially accepts a drag. After one successful interaction, the pet may become completely non-interactive while remaining visible and animated. The built-in-first workaround from #35868 does not help.

    The findings below come from a strictly read-only inspection of the installed package. I did not launch code from the archive, patch the package, inject into the app, alter app state, or inspect user content. The ASAR index and relevant byte ranges were read directly in memory.

    Main finding

    The current build has two pointer-interactivity paths:

    1. a native input-shape path using BrowserWindow.isInputShapeSupported() and BrowserWindow.setInputShape();
    2. a fallback path using setIgnoreMouseEvents(..., { forward: true }) plus renderer hover detection.

    When setInputShape() succeeds, the native shape becomes authoritative and the normal pointerInteractive fallback is bypassed. This makes stale, scaled, clipped, or incorrectly offset input rectangles sufficient to produce the observed click-through behavior even while rendering and hover animation remain correct.

    Packaged-code locations and event flow

    All paths below are internal paths inside resources/app.asar; hashed filenames will change between builds.

    Renderer:

    • webview/assets/avatar-overlay-native-page-n6yBMSpN.js
      • main overlay component;
      • measures hit regions;
      • publishes element sizes and pointer regions;
      • implements the pointer drag lifecycle.
    • webview/assets/use-floating-window-pointer-interactivity-CTdnT6Vz.js
      • tracks mousemove, mouseleave, resize, scroll, DOM mutations, and hover state;
      • uses getBoundingClientRect() and document.elementsFromPoint();
      • dispatches avatar-overlay-pointer-interaction-changed.
    • webview/assets/avatar-mascot-button-KdPcmLql.js
      • renders the visible mascot and badge surfaces.
    • webview/assets/avatar-overlay-quick-chat-bar-D0-sUVnr.js
      • adds Quick Chat and control hit regions.
    • webview/assets/custom-avatars-query-DUL-o_jx.js
      • contains the asynchronous custom-avatar loading branch.

    Main process:

    • .vite/build/main-BP8-d4nf.js
      • receives the overlay IPC messages;
      • stores pointerInteractive, inputShape, and drag state;
      • applies native input shapes and mouse-passthrough policy;
      • moves the window during Windows drag operations.
    • .vite/build/window-all-closed-DCMYPAWO.js
      • stores electron-avatar-overlay-bounds and display/resolution mappings.
    • .vite/build/preload.js
      • provides the generic renderer-to-main-process message bridge.

    The intended mascot target is explicitly rendered as:

    data-avatar-overlay-hit-region="mascot"
    

    It covers the full mascot wrapper, not only opaque sprite pixels. The default measured mascot is approximately 112 x 121 CSS pixels. A tiny active area is therefore not expected alpha-based hit testing.

    The renderer collects all [data-avatar-overlay-hit-region] elements. For each region it:

    • calls getBoundingClientRect();
    • clips the rectangle to the viewport and ancestors with overflow: auto|scroll|hidden|clip;
    • accounts for DOM transforms using bounding-rect/offset-size ratios;
    • rejects hidden, inert, zero-sized, or pointer-events: none elements;
    • rounds the result to integer { left, top, width, height } values.

    It then calls approximately:

    avatarOverlay.setPointerRegions(regions, proximityRegions)
    

    The main process stores those values as inputShape and passes them to Electron without an explicit devicePixelRatio or display scaleFactor conversion:

    { left, top, width, height }
        -> { x: left, y: top, width, height }
        -> BrowserWindow.setInputShape(...)
    

    That may be correct if the complete API boundary consistently uses DIPs, but it is an important boundary to verify because a CSS/DIP/physical-pixel disagreement would produce an undersized or displaced native hit region.

    Main-process policy and post-drag race window

    The relevant policy is equivalent to:

    applyPointerInteractivityPolicy():
        applied = applyInputShape(window)
    
        if window is hidden:
            setIgnoreMouseEvents(true, forward=false)
            return
    
        if applied:
            return
    
        if pointerInteractive:
            setIgnoreMouseEvents(false)
        else:
            setIgnoreMouseEvents(true, forward=true)
    

    applyInputShape() only calls setIgnoreMouseEvents(false) when its cached mousePassthroughMode is not already disabled. It then calls setInputShape() and records the mode as disabled if the call succeeds.

    This creates two plausible stale-state cases:

    1. The internal mode says passthrough is disabled while the actual Windows window or descendant input surface remains transparent/non-interactive. The cached state can suppress the call that would reconcile it.
    2. setInputShape() succeeds with a stale or incorrectly positioned rectangle. The policy returns early, so renderer pointerInteractive changes cannot compensate for the bad native shape.

    The renderer recalculates regions through ResizeObserver, MutationObserver, layout effects, scroll/focus/pointer events, and requestAnimationFrame(). During transforms or overlay transitions, a temporarily clipped rectangle can therefore be published. The main process replaces the existing shape without validating that the mascot region is still close to the expected mascot dimensions.

    After a window move, the main process also uses a movedWindowPersistTimer of approximately 100 ms. While this timer is active:

    • layout application can be deferred;
    • setPointerInteraction() stores the new value but defers applying the policy;
    • bounds, display selection, and pointer policy are reconciled later.

    That sequence is a credible race window for the repeatable pattern:

    first drag succeeds
        -> pointer-up / window-move finalization
        -> delayed layout and pointer-policy reconciliation
        -> stale native input shape or passthrough state
        -> next pointer-down never reaches the renderer
    

    On Windows, the drag controller uses screen.getCursorScreenPoint() and manually updates the overlay bounds. The packaged performWindowDrag helper is macOS-only, so it is not the Windows failure point.

    Custom-pet loading is not sufficient to explain this reproduction

    The custom-avatar path can temporarily resolve the selected avatar as null while fetching and publish a non-interactive state. That supports the custom-first-wake behavior in #35868.

    However, the same failure reproduces with the bundled/default pet, including after deliberately waking a built-in pet first. The custom loading gap may be an additional trigger, but it is not the common root cause.

    Most likely failure areas

    In order of likelihood:

    1. native input-shape coordinates or offsets are interpreted in a different coordinate space from the rendered DOM rectangles;
    2. a transient or stale hit rectangle is installed during/after the first drag and not replaced with the final stable rectangle;
    3. the internal mousePassthroughMode cache diverges from the real Windows/Chromium input state;
    4. on systems where input shape is unsupported or fails, the { forward: true } fallback stops delivering the movement needed to restore interaction.

    The current evidence in this issue that the active native region can remain near the overlay's top-left while the pet is rendered much lower is particularly consistent with cases 1 and 2.

    Suggested instrumentation and acceptance test

    For each renderer setPointerRegions() publication, log:

    devicePixelRatio
    visualViewport scale/offset
    window inner size
    mascot getBoundingClientRect()
    mascot offsetWidth/offsetHeight
    calculated clipped region
    update trigger and drag/animation state
    

    For each main-process policy application, log:

    isInputShapeSupported()
    setInputShape() return value and rectangles
    BrowserWindow content/outer bounds
    display bounds/workArea/scaleFactor
    cursor screen and window-relative coordinates
    pointerInteractive
    mousePassthroughMode
    dragState and movedWindowPersistTimer state
    

    The highest-value A/B test is to temporarily disable the native input-shape branch in an internal build and force the existing forwarded-mouse fallback. If repeated dragging becomes reliable, the fault is isolated to the input-shape path.

    Regression coverage should include:

    • repeated drags without recreating the overlay;
    • bundled and custom pets;
    • 100%, 125%, 150%, 175%, and 200% Windows scaling;
    • single- and multi-display arrangements;
    • hide/show, notification/control animations, sleep/resume, and display-metrics changes;
    • validation that the full expected mascot rectangle remains interactive after every drag;
    • validation that transparent overlay areas remain click-through.

    Related reports

    No user profile paths, account data, conversation contents, custom pet identifiers, or raw logs are included in this analysis.


    Also submitted through the Codex desktop app’s built-in Send Feedback channel, with diagnostic logs enabled. Internal feedback ID: 01a05683-362f-7901-b097-0eb34f5f167a

  12. 13 remaining items

  13. Abstrath commented on Sep 5, 2026

    @Abstrath

    video recompressed to be uploadable

    G-pet-hit-region-bug-26.901.5003.0.mp4
  14. jxd0503 commented on Sep 5, 2026

    @jxd0503

    环境

    • ChatGPT/Codex 桌面应用:26.825.5331.0 x64
    • 亦可转载于:26.825.4187.0
    • 平台:Windows x64
    • 测试宠物:
      • 官方内置宠物:Codey
      • 自定义宠物:Remiel(配置宽度:224像素)

    描述

    漂浮的宠物变成点击通道,无法点击或拖拽。指针输入会传递到宠物下方的桌面或应用程序。

    这个问题影响了官方内置的Codey宠物和自定义的Remiel宠物。更换宠物并不能解决问题,所以看起来不是由定制宠物艺术或包装引起的。

    叠加层还可以显示布局伪影。附图中,控制键被裁剪,内置宠物旁边/下方出现了一个可见的紫色矩形边界。

    繁殖步骤

    1. 叫醒漂浮的宠物。
    2. 选择官方内置的Codey宠物。
    3. 将指针移到吉祥物上方,然后按下拖拽键。
    4. 注意点击是由桌面或下面的应用程序操作,而不是开始拖动。
    5. 切换到自定义的雷米尔宠物,重复这个过程。
    6. 观察到相同的点击行为。

    预期行为

    吉祥物的攻击区域应获得指针输入,内置和自定义宠物都应保持可拖拽状态。

    实际行为

    指针输入通过PET覆盖层传递到底层桌面或应用程序。宠物不能被拖拽。

    诊断

    宠物覆盖层保留了Windows扩展风格:WS_EX_TRANSPARENT

    • 破碎状态:ExStyle 0x2800A8
    • 临时工作状态:ExStyle 0x280088
    • 在15秒的诊断运行中,150/150样本在光标处于覆盖层内时保持透明。

    清理只能暂时恢复拖拽。应用程序后来又启用了该标志,拖拽也停止了。WS_EX_TRANSPARENT

    疑似死因

    这似乎是 avatar 覆盖层内部指针交互状态与 Windows 扩展窗口样式之间的不匹配。

    输入形状路径似乎标记为 之后成功。如果Windows层面仍启用,后续通话可能会跳过,因为内部状态已经显示鼠标直通已禁用。mousePassthroughMode``disabled``setInputShape()``WS_EX_TRANSPARENT``setIgnoreMouseEvents(false)

    可能需要在应用输入图形前无条件调用,或者在返回前验证实际的 Windows 样式。applyInputShape()``setIgnoreMouseEvents(false)

    排查已经尝试过了

    • 完全重启了桌面应用。
    • 在应用版本26.825.4187.0和26.825.5331.0中重现。
    • 在官方内置的Codey宠物和定制的Remiel宠物之间切换。
    • 确认清除只会暂时恢复拖拽。WS_EX_TRANSPARENT

    附属品

    1. CodexPetBug_01_Custom_Remiel_ClickThrough.png

    Image
    2. CodexPetBug_02_BuiltIn_Codey_ClickThrough.png

    Image

    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:

    1. 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.

    2. 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).

  15. Inqjq commented on Sep 6, 2026

    @Inqjq

    Additional reproduction on a newer Windows x64 build:

    • Codex Desktop: 26.901.6511.0
    • Symptom: the floating pet becomes click-through and cannot be dragged; pointer input goes to the desktop/window underneath.
    • Restarting Codex recreates the broken overlay.

    A small helper can temporarily restore dragging by resetting the overlay window state, but the symptom returns when Codex creates the overlay again. This suggests the issue remains in the app-side Windows overlay input-state / hit-region synchronization rather than in the pet asset itself.

  16. tryraisins commented on Sep 7, 2026

    @tryraisins

    Adding another reproduction from the current Windows build, with a slightly different mix of working and broken controls.

    • Codex Desktop: 26.901.6511.0 x64
    • Display: 2048 × 1280
    • Pet: custom pet
    • The pet remains visible, and Voice Search can still be clicked.
    • The pet itself cannot be dragged, and the Active Chats controls do not respond.

    I checked the live native window state. The avatar overlay was 467 × 1280, spanning the full right side of the display from x=1581 to 2048, even though the saved mascot geometry was only about 103 × 112.

    The overlay's extended style was 0x80088 (WS_EX_LAYERED | WS_EX_TOOLWINDOW | WS_EX_TOPMOST, without WS_EX_TRANSPARENT). GetWindowRgnBox returned NULLREGION, so there was no restricted native region corresponding to the visible pet and its controls.

    The persisted overlay bounds also contained many old display IDs. Only one older display entry had complete window, mascot and tray geometry; the current display entry only had position and placement data.

    As a local diagnostic, clearing only WS_EX_LAYERED and forcing SWP_FRAMECHANGED changed the style from 0x80088 to 0x88, and that state remained applied when checked again two seconds later. I have not treated that as a permanent fix because the app can recreate the overlay and the full rectangular bounds may then capture too much input.

    This looks consistent with the overlay window and its pet/tray hit regions getting out of sync after display-state changes. The fact that Voice Search still works while the pet and Active Chats do not may help narrow down which regions are being republished correctly. No pet files or app package files were modified.

  17. knotandplot commented on Sep 8, 2026

    @knotandplot

    Additional affected Windows installation, reported on September 8, 2026.

    Environment

    • Codex desktop Windows package: 26.901.6511.0 (x64).
    • Windows OS version: 10.0.26200.0.
    • Affected pets: both a built-in pet and a custom v2 cartoon pelican pet.

    Observed behavior
    The floating pet does not respond to any mouse interaction, not just dragging. The initial symptom was inability to drag the pet; the affected user subsequently clarified that all mouse interaction with the pet is unusable.

    Checks already performed

    1. Tried dragging the custom floating pet.
    2. Switched to a built-in pet and confirmed dragging also fails.
    3. Restarted the desktop app; the problem persisted.
    4. Confirmed the scope is all mouse interaction with the floating pet.

    Expected: the floating pet responds to mouse input and can be repositioned by dragging.
    Actual: mouse interaction remains unavailable after restart, and switching to a built-in pet does not resolve the issue.

    The interaction observations above are user-reported; app package and OS versions were checked locally. We have not verified window styles or whether events reach underlying windows on this installation, so this report does not independently confirm the proposed root cause.

  18. barajasedgar537-sys commented on Sep 8, 2026

    @barajasedgar537-sys

    Additional reproduction and recurrence after the layered-window reset workaround, reported on September 8, 2026.

    Environment

    • Codex desktop Windows package: 26.901.6511.0, x64.
    • Windows 11 Home, build 26200; overlay DPI 120 (125%).
    • Both built-in and custom pets were affected during earlier testing.

    User-observed behavior

    The pet stays visible but cannot be dragged. Hover can change the expression, which can remain stuck after the pointer leaves. App restarts, bringing the main window to the foreground, switching to ENG input, and a built-in-pet test in an isolated temporary profile did not resolve the earlier failure.

    On September 7, a narrowly scoped adaptation of FoegiUpdate/ChatGPT-Overlay-Fix v3.1.0 was applied to the pet window only: save ExStyle, clear only WS_EX_LAYERED, refresh the frame, wait 3 seconds, then restore the exact original style and refresh again. The user confirmed that dragging worked afterward, though it was somewhat laggy.

    On September 8, the user reported that dragging had stopped working again. A new app process had started after the successful September 7 test. The exact recurrence time and trigger were not captured, so this is not a controlled proof that restart alone causes the failure.

    Locally verified window-state evidence

    • September 7 broken-state ExStyle: 0x00280088, without WS_EX_TRANSPARENT. Reset sequence: 0x00280088 -> 0x00200088 -> 0x00280088; user subsequently confirmed drag recovery.
    • September 8 pre-reset snapshot: 0x002800A8, including WS_EX_TRANSPARENT. Reapplied the same layered-state reset: 0x002800A8 -> 0x002000A8 -> 0x002800A8.
    • The second reset and exact original-style restoration completed without reported Win32 errors. The user has now confirmed physical dragging works again after this second reset, but noticeable lag/stuttering remains. Both reset attempts restored dragging, neither produced a fully smooth result, and the first recovery was followed by recurrence. This is a partial, temporary recovery, not a complete fix.
    • The app archive hash is unchanged across both tests. No app package edits, pet asset changes, watcher, or startup installation were used for these tests.

    This supports the workaround being temporary on this installation, but does not establish the root cause. Please investigate both (1) reliable restoration of the pet's native input/hit-region state when the overlay is created or recreated, and (2) the remaining drag lag/stuttering after the workaround, so users do not need repeated runtime resets.

  19. Gravifer commented on Sep 8, 2026

    @Gravifer

    @FoegiUpdate why not also make it a skill? Codex agents will be able to find and suggest it then; and people land on this page almost only with codex anyways

    If the devs find a suspicious surge of people installing a skill, and only to find out it's not malicious after all, well all the more irony to them :D

    Also, here's a vibe coded site tracking the whole situation https://bikeshed-critic.github.io/days-since-codex-pet-broken/

  20. FoegiUpdate commented on Sep 8, 2026

    @FoegiUpdate

    @FoegiUpdate why not also make it a skill? Codex agents will be able to find and suggest it then; and people land on this page almost only with codex anyways

    The tracking site is really cool — and at the same time kind of scary that OpenAI still hasn't properly addressed this issue.

    I might think about making it a skill at some point. The fix was mainly something I made for myself, and if other people can benefit from it too, that's a nice bonus.
    It's MIT licensed anyway, so anyone should feel free to use it as a basis for a public skill.

    Maybe that really is what it takes to finally get the devs' attention. :D

  21. DavidLafond commented on Sep 8, 2026

    @DavidLafond

    Additional reproduction on Codex Windows 26.901.6511.0 (x64).

    Both built-in pets and a custom v2 pet become non-interactive: mouse clicks pass through to the application underneath, and the pets cannot be dragged. The user also reports the same inability to move the advanced voice floating sphere when Codex is not focused. Whether focusing Codex restores interaction has not yet been confirmed.

    Steps observed:

    1. Show a pet using the button in the Codex interface.
    2. Try to click or drag the pet; pointer input passes through it.
    3. Switch between built-in and custom pets; the problem persists.
    4. Fully quit and restart Codex; the problem persists.
    5. During advanced voice, the floating sphere also cannot be repositioned when Codex is not focused.

    Additional observations:

    • Showing the pet via the interface works, but Win+Alt+P does nothing on this installation.
    • A read-only Win32 inspection while the pet was visible found its extended window style was 0x00280088, without WS_EX_TRANSPARENT at that sampled moment. Therefore this reproduction does not establish that a stuck WS_EX_TRANSPARENT flag is the cause; input-region or focus handling may also be involved.
    • The custom pet has a validated v2 spritesheet, but built-in pets fail as well.
    • No third-party recovery tool was installed, and no window-style workaround or app binary modification was applied.
  22. panchinpeng commented on Sep 9, 2026

    @panchinpeng

    I tested again on Codex desktop app 26.903.8094.0 (Windows x64), and I can now drag the pet around normally. The issue appears to be resolved on my end. Thanks for the fix!

  23. FoegiUpdate commented on Sep 9, 2026

    @FoegiUpdate

    Version 26.903.61454
    Release Date: 09.09.2026

    I can confirm that, with the latest update, the Pet Widget is working perfectly again on my two affected devices. My temporary solution is no longer needed. 😊

  24. Lucency09 commented on Sep 9, 2026

    @Lucency09
    Author

    Update from the original reporter: after updating to the current desktop release, the pet dragging issue appears to be resolved on my machine. Thanks for the update!

    Current environment (verified locally):

    • Codex desktop MSIX package: 26.903.8094.0, x64 (verified against the running app's package manifest).
    • Windows Pro, version 25H2, OS build 26200.9168, 64-bit.
    • Dual-monitor setup.

    This is an initial observation after updating, not yet a full regression test across both pets, repeated drags, and app restarts. I am leaving the issue open for now and will report back if the problem recurs.

  25. Gravifer commented on Sep 9, 2026

    @Gravifer

    Maybe that really is what it takes to finally get the devs' attention. :D

    @FoegiUpdate yeah, that may actually have been what worked!

  26. DavidLafond commented on Sep 9, 2026

    @DavidLafond

    Confirmation that it's fixed yes.
    Thanks guys.

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