Skip to content

[Windows] In-app Browser steals foreground focus when agent opens a new browser window #33662

Closed

Description

@mdwilkins

What version of the Codex App are you using (From “About Codex” dialog)?

26.707.9981.0

What subscription do you have?

ChatGPT account; exact plan not relevant to the behavior.

What platform is your computer?

Microsoft Windows 11 Pro, version 10.0.26200, 64-bit.

What issue are you seeing?

When an agent invokes Codex's own in-app Browser and creates a new browser window, pane, or tab, the Codex desktop app forces itself into the foreground and steals OS focus from whichever application the user is actively using.

A common example is working interactively in Chrome while a Codex task continues in the background. As soon as that task initiates the in-app Browser, the Codex window pops in front of Chrome and interrupts the user's active work.

This report is specifically about Codex's built-in/in-app Browser. It is not about the Chrome extension, and it is not about Windows Computer Use taking over the pointer or keyboard.

The behavior has been observed repeatedly when a new in-app browser surface is initiated.

What steps can reproduce the bug?

  1. Start a task in Codex Desktop on Windows that will use the built-in Browser.
  2. Switch to Chrome or another application and continue working there while the Codex task runs.
  3. Let the Codex agent invoke the in-app Browser and create/open its browser surface.
  4. Observe that Codex brings its main window to the foreground, taking focus away from the active application.

What is the expected behavior?

Agent-initiated in-app Browser creation should happen without activating or foregrounding the Codex desktop window.

Codex should preserve the user's currently focused application. It should bring itself to the foreground only when the user explicitly initiates that action, such as manually opening Codex or manually opening the browser view.

Additional information

This makes background Codex tasks disruptive because the focus change can interrupt typing, clicking, and other work in the active application.

A user-facing workaround should not be required. The browser window/view should be created or shown without activating the Codex top-level window, preserving the current Windows foreground window unless the user initiated the navigation.

Activity

  1. added
    bug
    app
    windows-os
    on Jul 16, 2026
  2. wbdb commented on Jul 21, 2026

    @wbdb

    Same for image generation: #34546

  3. yugao-tum commented on Sep 10, 2026

    @yugao-tum

    Additional report on Windows with Codex installed package version 26.903.8094.0.

    The disruption also occurs while working in another conversation inside the same Codex desktop app, not only when switching to an external application.

    Observed scenario

    1. Task A continues using the built-in browser to interact with webpage text fields.
    2. Meanwhile, I type a message in conversation B in the Codex app.
    3. My typing is repeatedly interrupted. Text intended for B appears to end up in the browser-controlled input as well, requiring correction.

    This prevents normal interactive use of another conversation while a browser task runs and raises a concern about text entering an unintended field.

    Additional diagnostic observation
    The task's execution trace includes browser creation with visible: false and repeated webpage fill/press operations. Hidden tab creation alone therefore should not be assumed to guarantee input isolation. I have not isolated which operation triggers the interference.

    Expected behavior
    Background browser actions should preserve the user's active conversation and text input focus, including any ongoing input-method composition.

    I cannot yet distinguish rapid focus switching from duplicated input delivery, or confirm that this has the same root cause as the original report. Please advise whether this cross-conversation input interference belongs here or should be tracked separately.

    No private conversation content, task identifiers, local paths, logs, or screenshots are attached.

  4. Kaddtechnologies commented on Sep 30, 2026

    @Kaddtechnologies

    what is the update with this? This is still happening in Sept 2026

  5. wbdb commented on Sep 30, 2026

    @wbdb

    I've started using Vercel's Agent Browser because it's also capable of handling Basic Auth and so on.
    https://github.com/vercel-labs/agent-browser

  6. Linze0709 commented on Oct 15, 2026

    @Linze0709

    Additional Windows report: Chinese and English typing enters the agent-controlled webpage, disrupting both workflows

    While one Codex chat is entering text in the built-in browser, I type in another Codex chat. My keyboard input can end up in the webpage that the agent is operating. I observe this with both Chinese and English input. This interrupts my own typing and changes the text in the agent's working field, interfering with Codex's task as well.

    This is not limited to Chinese IME composition or the app briefly coming to the foreground. It prevents normal concurrent use of two chats. The September 10 report above describes a closely matching scenario.

    Existing test results

    I have already participated in controlled checks using a disposable local static page while I physically typed in the Codex chat composer:

    Browser/actions Result
    Visible built-in browser: six rounds of field fill, key/text input, and click My typing was interrupted.
    Same built-in browser hidden: six rounds of the same actions My typing was still interrupted.
    Hidden built-in browser: five rounds using only locator fill/click, without simulated key commands My typing was still interrupted.
    Chrome extension, initial comparison Inconclusive: I could not judge the effect on my typing.
    Chrome extension, repeat comparison: four rounds with key/text input and clicks I confirmed my typing remained normal during this run.

    Typing also recovered after the original built-in-browser task stopped. The test table establishes the observed typing interference; the Chinese/English text entering the webpage is my report from actual use, not a separately instrumented per-language test. We have not established whether the exact mechanism is focus switching or duplicate input delivery.

    Environment checked during this investigation:

    • Windows Codex desktop app.
    • App-reported version: 26.1007.71326, build 20398, production channel.
    • Microsoft Store package version: 26.1007.9446.0 (a separate version identifier).
    • The configured app updater reported up_to_date at the time of the check.

    Required outcome and requested progress

    I want to keep the right-side built-in browser with normal clicking, typing, keyboard, paste, and editor capability. Codex must be able to work there while I type elsewhere without either input stream entering the other's target. Switching to Chrome is a last-resort workaround; the successful comparison above does not fix the built-in browser or meet this requirement.

    Please provide a concrete engineering response:

    1. Has the team acknowledged and reproduced this cross-chat input interference, including English as well as Chinese input?
    2. Which team owns it, what is the current investigation/fix stage, and is there a tracking reference that can be shared?
    3. Is there a supported fix or workaround that preserves the built-in browser's normal functionality? If a fixed build exists, please identify it.
    4. If there is no confirmed fix date, please state that clearly and give a date for the next substantive progress update.

    I have already spent time on multiple reproduction rounds. Please use this existing evidence and reproduce the scenario internally. I do not want further speculative troubleshooting, repeated typing trials, profile resets, reinstalls, or experimental client patches on my machine. A generic request to repeat these tests is not an adequate response to the evidence already supplied.

    This report was prepared with Codex assistance from the existing results and my observations, and I explicitly authorized posting it. No private drafts, webpage contents, credentials, screenshots, raw logs, task identifiers, or local paths are included.

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

    appbrowserbugwindows-os

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions