Skip to content

probe treats Codex avatar-overlay CDP target as a full app window #5

Description

@fu1104759681-lang

Summary

@codedrobe/core@0.6.1 treats Codex Desktop's hidden avatar-overlay CDP page as a complete Codex application window. The main window passes all adapter and theme-required selector checks with zero warnings, but the overlay lacks the main root/sidebar/composer nodes, so the overall probe exits with failure and blocks apply/verify.

Environment

  • Windows
  • Codex Desktop: 26.715.4045.0
  • CodeDrobe Core: @codedrobe/core@0.6.1 (temporary execution, not globally installed)
  • Local DevTools endpoint: http://127.0.0.1:9345
  • Theme id/version: vr-business-future@2.0.0

CDP targets

The DevTools endpoint exposes two page targets:

  1. Main window: app://-/index.html
  2. Hidden overlay: app://-/index.html?initialRoute=%2Favatar-overlay

Only one normal Codex window is visible in the Windows UI; the second target is an internal hidden overlay.

Steps to reproduce

  1. Start Codex Desktop with remote debugging enabled on a loopback port.
  2. Confirm /json/list exposes both the main app://-/index.html target and the initialRoute=/avatar-overlay target.
  3. Run theme inspect for a valid Codex theme.
  4. Run theme probe against the DevTools endpoint.

Actual behavior

  • The main window is fully compatible.
  • Root, sidebar, main, composer, and all theme-required selectors match on the main window.
  • The main-window result has zero warnings.
  • Core also performs full-window required-node checks against the avatar-overlay target.
  • The overlay is missing main-window-only nodes, causing the aggregate probe result to fail.
  • probe does not expose a target URL or target id filter, so there is no supported way to restrict the operation to the main window.

Expected behavior

Internal non-main-window targets such as initialRoute=/avatar-overlay should not cause the complete Codex application compatibility check to fail.

Suggested fixes

Any of the following would unblock the safe workflow:

  • Ignore page targets whose URL contains initialRoute=/avatar-overlay by default.
  • Select only the canonical main app://-/index.html target for full-window adapter/theme checks.
  • Detect overlays as a separate target type and run only checks applicable to that surface.
  • Add a target URL/target id include-or-exclude option consistently to probe, apply, and verify.

Safety impact

The documented safe workflow requires a successful inspect -> probe -> apply -> verify sequence. Because the aggregate probe fails, applying the otherwise compatible theme would require bypassing the compatibility guardrail. No forced apply was attempted.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingquestionFurther information is requested

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions