The Codex Host Adapter is an unsupported local CDP/DOM integration. It is not an official Codex extension interface. The standalone Host Adapter remains the supported fallback whenever discovery, compatibility, attachment, or remounting cannot be proven safe.
The production integration launches a dedicated profile, binds its loopback CDP endpoint and target, and connects only the tested public DOM anchors. It preserves the launcher-owned project path across renderer generations, reference-counts CSP bypass, and reports typed standalone transitions when safe attachment is lost.
Codex Git attaches only to a renderer selected through a loopback CDP endpoint
owned by a dedicated Codex Git profile or instance. A renderer name, window
title, route, or DOM resemblance is never ownership evidence. The renderer
source must provide a non-empty stable target ID and the exact
codex-git-dedicated ownership proof before the compatibility probe can mutate
the document.
Codex Desktop's Content Security Policy does not allow the loopback Git Surface
as a frame. The dedicated renderer therefore grants a generation-scoped
Page.setBypassCSP lease before mounting. The lease is released after any
replacement, failed attachment, or connection close. Never grant this lease to
a normal user-owned Codex window: bypassing CSP expands the effect of any script
already executing in that renderer.
CDP has no application-level authentication in this design. Treat access to the dedicated loopback debugging endpoint as trusted local-process authority. Do not bind it to a non-loopback interface, reuse a normal Codex profile, publish the endpoint, or record it in ordinary logs.
| Codex Desktop | Chromium framework | Required anchors | Evidence |
|---|---|---|---|
26.820.60940 (build 7119) |
151.0.7922.170 |
#app-shell-sidebar; [data-app-shell-main-surface="default"] |
Installed renderer bundle inspection plus automated DOM fixture coverage |
The automated fixture covers read-only probing, fail-closed fallback, transactional attachment, one-entry mounting, native navigation, repeat attachment, context updates, opaque iframe sandboxing, generation/capability/challenge rejection, CSP lease restoration, and complete teardown.
Any Codex version or DOM shape not listed here fails closed before mutation. A new version requires a new explicit profile and the same fixture and manual smoke matrix; do not widen selectors to make an unknown build appear compatible.
This matrix passed on 2026-08-29 against a disposable dedicated profile using
Codex Desktop 26.820.60940 (build 7119) and Chromium 151.0.7922.170.
- Open
Gitand confirm exactly one entry and one full-page frame. - Select a native destination and confirm native content is restored with no hidden overlay.
- Open
Gitagain after a renderer reload and confirm one new frame generation. - Change theme/task and confirm typed context updates; change Current Project and confirm a typed standalone-required transition.
- Send missing, altered, replayed, and stale capability/challenge messages and confirm they cause no action.
- Close the connection and confirm all nodes, listeners, CDP sessions, and the CSP bypass lease are gone.
- Break either required selector and confirm the native UI remains byte-for-byte unchanged while the standalone fallback is reported.