Repository navigation
Description
What version of the Codex App are you using?
Installed application metadata: 26.1023.51421, build 22530, bundle com.openai.codex (ChatGPT.app). Read from the installed bundle, not the About dialog.
What subscription do you have?
Not collected for this report.
What platform is your computer?
macOS 26.6.2, Apple Silicon; Darwin 25.6.0, arm64. Installed Chrome 156.0.8078.74. ChatGPT Chrome extension 1.26.1020.11845 was observed during diagnosis. Tests were conducted October 29–30, 2026.
What issue are you seeing?
In the official Chrome Browser Use backend, a one-time public CDP Emulation.setFocusEmulationEnabled({enabled:false}) restores the real background state of an owned localhost page, but normal release at turn completion followed by reacquisition in a new turn changes the same document back to visible/focused, while another user tab remains selected.
This blocks reliable background-sensitive preview validation. It may be intentional attachment behavior; the request is to clarify the contract and provide a supported, scoped native-focus policy. This report does not assume that a raw CDP command is documented to persist indefinitely.
Full CDP access and the specific localhost origin were both explicitly approved. This is not an unresolved permission prompt.
What steps can reproduce the bug?
Observed sequence, using only an owned local diagnostic page:
- Acquire the page through the official browser interface, with its advertised tab-level CDP capability. Keep a separate tab selected.
- Send the public CDP command
Emulation.setFocusEmulationEnabledwith{"enabled":false}. Record the target's document identity,document.visibilityState, anddocument.hasFocus(). The target is hidden and unfocused. - Finish the assistant turn normally, allowing normal controller release. Retain the target page. Native observation shows the other tab still selected and the debugging banner absent.
- In a fresh turn, list tabs and reacquire the same target. Do not reapply the focus command before the first observation.
- Observe the same document reporting visible/focused. The other tab remains selected; the debugging banner has returned.
- Send the public command with
enabled:falseagain. The same document immediately reports hidden/unfocused.
No page visibility APIs or heartbeats were overridden.
What is the expected behavior?
Please expose/document an opt-in, owned-target-scoped policy for native focus/visibility that is applied on initial acquisition and each supported reattachment. It should preserve debugging, Document interception, authorization and ownership checks. If native focus cannot be retained for a particular lifecycle, return an explicit unsupported state before background-sensitive work.
Additional information
A separate live-lease test passed: after disabling focus emulation and physically minimizing Chrome, the preview probe reported naturally hidden/non-rendering, and its MCP refresh rejected with PREVIEW_CLIENT_BACKGROUND before navigation. That proves the local background-entry guard works; it does not prove persistence across reacquisition.
Limits: the internal enabled:true setter was not directly captured in this run. Only normal turn release/reacquisition was tested, not every host/extension restart. The exact native sequence of backgrounding during the middle of a prepare operation remains unverified. Expired test leases were recorded as failures, not renewed or counted as passing.
A distinct idle Document-response problem is tracked in #55659. A common root cause with this focus behavior is not established. No installed controller code was changed or safeguards bypassed. Private paths, URLs containing identifiers, session/lease tokens, screenshots, full transcripts, and proprietary source are omitted.
Activity