codex icon indicating copy to clipboard operation
codex copied to clipboard

Codex desktop browser access blocked by Work settings error

Open hengzhfeng opened this issue 4 weeks ago • 18 comments

What version of the Codex App are you using?

Windows application package OpenAI.Codex version 26.1027.3384.0 (read from the installed Windows package metadata; the About dialog version was not separately checked).

What subscription do you have?

Paid subscription; exact tier was not recorded.

What platform is your computer?

Microsoft Windows NT 10.0.26300.0 x64.

What issue are you seeing?

Browser control repeatedly failed during a Codex desktop task with this exact error:

Local browser use is disabled in Work settings

The user reported that browser access was enabled, explicitly authorized browser operation, opened the target site in Edge and Chrome, signed in, and supplied a correct tab mention. A screenshot confirmed that the intended signed-in page was open. The error nevertheless prevented the agent from even listing browser tabs. The reference to "Work settings" during a Codex task also caused considerable confusion and repeated, unhelpful requests to check already-enabled settings.

What steps can reproduce the bug?

Observed on 2026-11-03 in a Windows desktop Codex task:

  1. Open and sign into the intended website in Edge or Chrome, then authorize the task in Codex.
  2. Ask the agent to use the open browser tab; a specific user-shared tab mention was also tried.
  3. The exposed browser tools repeatedly returned the error above, including these calls:
await cua.listTabs({ browser: "edge" });
await cua.listTabs({ browser: "chrome" });
await cua.getBrowser({ id: "iab" });
await cua.getState();

For getState(), the native application inventory could see running Microsoft Edge with the correct site in its window title, while the browser inventory returned:

{
  "browsers": [],
  "errors": [
    "Browsers: Error: Local browser use is disabled in Work settings"
  ]
}

The failures recurred across turns and after resetting the browser-tool JavaScript session.

What is the expected behavior?

Browser access in Codex should use the applicable desktop/session permissions. If it is blocked, the error should accurately identify the controlling setting or connection problem, rather than leaving the user and agent to infer that the task is running in Work or that browser permission was never enabled.

Additional information

This appears intermittent or dependent on connection state. Later in the same task, a normal cua.getTab({ url: "<the already-open target URL>" }, { browser: "edge" }) call succeeded, returned the Edge extension binding and the correct page, and browser operations then worked. Earlier tab-mention access had also failed. We do not know what changed and cannot establish the root cause or a reliable recovery procedure.

The operation was eventually completed through the normal browser and connected service tools. No browser security warning or permission setting was bypassed. Please investigate the browser permission/session check and the misleading product-specific error text.

The target URL, private project identifiers, account details, screenshots containing session URLs, and credentials are intentionally omitted from this public report.

hengzhfeng avatar Nov 03 '26 15:11 hengzhfeng

Potential duplicates detected. Please review them and close your issue if it is a duplicate.

  • #58729
  • #58594
  • #58295

Powered by Codex Action

github-actions[bot] avatar Nov 03 '26 15:11 github-actions[bot]

I reproduced this on November 4, 2026, in the Codex desktop app on Windows 10 Pro 22H2 (19045.6466), with Edge 156.0.4314.58 and ChatGPT extension 1.26.1021.11019. The desktop app build was unavailable.

The same two calls produced different results in two local Codex chats, with Edge open and no Windows restart between tests.

Call Diagnostic chat Separate chat
cua.listBrowsers({emit:false}) Listed Edge as an extension provider The chat reported Local browser use is disabled in Work settings
cua.createBrowserTab('edge', 'https://example.com/', {sessionName: '🧪 Teste de título'}) Opened the Edge tab and returned Example Domain The call failed and the chat reported the same Work settings error

The thread history confirms the calls and the failed tab creation in the separate chat. Its raw tool output is unavailable, so the error text there comes from the chat's responses.

The diagnostic chat had initially returned the same Work settings error. It began working after I toggled browser access off and on in the desktop app, enabled full CDP access, and kept the Edge extension panel open. Those steps were taken together, so I could not isolate which one mattered or whether full CDP access was necessary. The separate chat still failed afterward.

I expected both local chats to discover the connected Edge extension and open the same public URL. Is there a supported diagnostic that shows which setting or session state caused the discovery call to be denied?

pantalipe avatar Nov 04 '26 21:11 pantalipe

I reproduced the recovery sequence in a fresh local Codex chat started through Remote on the same Windows PC.

Turn in the same chat Browser discovery Edge tab creation
1. Started through Remote Reported Local browser use is disabled in Work settings Reported the same error
2. Continued directly in Codex on the PC Listed Edge as an extension Opened https://example.com/ and returned Example Domain
3. Continued through Remote again Listed Edge as an extension Opened the same URL and returned Example Domain

The thread history records both calls in all three turns. The initial errors were caught by the test code and reported in the chat response. The client used for each turn was confirmed by the user. This suggests a desktop turn can restore access for a chat started through Remote. The test does not identify the underlying cause.

pantalipe avatar Nov 04 '26 22:11 pantalipe

Additional Windows reproduction observed on November 4, 2026. Reporting here because the error and intermittent recovery match this issue.

Environment

  • Windows OS version: Microsoft Windows NT 10.0.26300.0, x64.
  • Installed Windows app package: OpenAI.Codex 26.1029.7803.0 (package metadata; About dialog not inspected).
  • Separately installed CLI: codex-cli 0.166.0. This is not asserted to be the desktop-bundled engine version.
  • Local desktop task with the cua_repl browser/computer-use tools.

Direct observations

Two normal built-in browser creation attempts failed before any page opened:

await cua.createBrowserTab("iab", "<public HTTPS URL>", { visible: true });

Exact error:

Local browser use is disabled in Work settings

Two browser inventory calls also failed:

await cua.getState();

Relevant returned fields:

{
  "browsers": [],
  "errors": ["Browsers: Error: Local browser use is disabled in Work settings"]
}

Native application inventory was populated, including running Chrome and Edge. This establishes app visibility, not working native input or browser permission.

Observed UTC error times: 2026-11-04 23:42:59.581, 23:43:03.352, 23:45:48.070, and 23:53:54.995. The first and third were createBrowserTab; the second and fourth were getState.

Verified intermittent behavior

An earlier local transcript records the same createBrowserTab("iab", ...) error on November 3 at 22:26 UTC. On a later turn in that same earlier conversation, November 4 at 01:26 UTC, getState exposed a built-in browser and getTab successfully attached to its existing tab. The intended browser workflow then completed. The cause of that access change is unknown. No settings transition is inferred from the transcript.

For this current occurrence, settings were not independently inspected, changed, or bypassed. The error text alone does not establish that the user disabled browser use. No account switch, restart, new-chat recovery, or desktop-versus-Remote comparison was performed as a controlled test.

Diagnostics and impact

codex doctor --summary --ascii --no-color reported that the desktop app-server initialized, provider connectivity worked, and the separately checked background-server socket was stale or unreachable. Its final summary was 0 fail / degraded. No causal relationship between that background-server observation and browser failure is established.

This blocks a previously working authorized browser workflow before navigation and causes repeated, misleading requests to change settings. Please investigate browser authorization/session binding and provide an error that distinguishes a real disabled setting from an unavailable or unregistered originating context.

No private URLs, account identifiers, session IDs, transcripts, credentials, screenshots, or application documents are attached.

joezuchora avatar Nov 04 '26 23:11 joezuchora

Additional reproduction on Windows, observed 2026-11-05 and reproduced again on 2026-11-06.

Environment:

  • Local Codex desktop conversation (not Remote or SSH).
  • Microsoft Windows NT 10.0.26200.0.
  • Bundled computer-use/browser runtime path identifies version 26.1029.61003; the desktop About version was not available to the agent.

Observed:

  1. The user explicitly selected the bundled @Browser mention in the same local conversation.
  2. Attempting to open a normal HTTPS page in the built-in browser with cua.createBrowserTab("iab", <url>, { visible: true }) failed immediately with:
Local browser use is disabled in Work settings
  1. A fresh cua.getState() returned native applications normally, but:
{
  "browsers": [],
  "errors": ["Browsers: Error: Local browser use is disabled in Work settings"]
}

The same conversation had already hit this blocker on the previous day. Selecting @Browser again did not reinitialize browser availability. This blocked a read-only visual acceptance task even though no external Chrome profile or signed-in local tab was required; the requested surface was the built-in iab browser.

Expected: selecting the bundled @Browser should make the built-in browser available, or the error should identify the actual account/workspace/policy gate and supported recovery step. Referring only to "Work settings" is especially confusing when the user has already selected the built-in Browser.

No credentials, target URL, project files, account identifiers, or private conversation content are included.

kubazietek111220-tech avatar Nov 06 '26 10:11 kubazietek111220-tech

Clarification from the affected user: Google Chrome is affected as well, not only the built-in @Browser / iab surface.

During the same Windows reproduction, native application discovery showed Google Chrome running, while browser discovery still returned an empty browsers list together with:

Browsers: Error: Local browser use is disabled in Work settings

Therefore the practical impact is that neither the built-in Browser nor Chrome browser control is available in the affected conversation. This is a clarification to the previous sanitized reproduction; no browser contents or account data are included.

kubazietek111220-tech avatar Nov 06 '26 10:11 kubazietek111220-tech

The affected user has submitted in-app /feedback for the reproduction described above.

The private feedback/session identifier has been intentionally omitted from this public issue. OpenAI maintainers can use the private feedback channel for any associated diagnostics.

kubazietek111220-tech avatar Nov 06 '26 10:11 kubazietek111220-tech

Additional macOS observation from 7 November 2026.

Environment recorded from installed app metadata

  • ChatGPT desktop app, bundle ID com.openai.codex, version 26.1027.51404, build 23880.
  • macOS 15.3, Apple Silicon.
  • Existing Codex task with local computer access and an already signed-in Brave session.

Observed sequence

  1. A user authorized uploading a finished video to YouTube Studio as Private.
  2. await cua.getState() returned the native app inventory, but an empty browser inventory and Browsers: Error: Local browser use is disabled in Work settings.
  3. Direct cua.createBrowserTab("iab", <Studio URL>, {visible: true}) failed with the same local-browser error.
  4. The desktop app's supported browser-panel opener accepted the Studio request but returned status: queued. Subsequent browser inventory still returned the same error.
  5. Separately supported native computer use through cua.getApp("com.brave.Browser") returned usable accessibility state. The agent completed the upload using the existing Studio tab and native file chooser, then verified Private visibility, saved metadata and completed HD processing.

Impact The agent initially interpreted the browser-specific error as blocking every upload route and repeatedly asked the user to take over. The user had to insist that the agent check its available routes. The task was eventually completed without changing browser permissions. This also exposed an agent judgment problem in interpreting a partial inventory failure.

Requested improvements

  • Make the error identify the applicable product, execution context and controlling setting, with a supported recovery action where possible.
  • Make browser inventory failure explicitly distinguishable from the availability of native app computer use.
  • Improve agent recovery so it checks documented, available alternatives before handing an already-authorized task back to the user.
  • Investigate reliability of the built-in browser access path for resumed desktop and voice tasks.

Limits The effective Browser setting and denying authorization branch were not independently retrieved. This observation does not prove a permission defect, a particular cause, or a permanent recovery procedure. The user reports repeated browser trouble, while the concrete evidence above is from this task. No raw conversation, account details, private video URLs, credentials or original logs are attached.

thomascsamuel avatar Nov 07 '26 03:11 thomascsamuel

I’m seeing the same failure in the desktop app on Windows. Installed OpenAI.Codex package: 26.1027.6604.0. Windows build: 10.0.26200.0.

Chrome access used to work for me and started failing a few weeks ago. I rechecked the relevant browser and Work settings and they are enabled. In the affected chat, cua.getState() returned an empty browser list with Browsers: Error: Local browser use is disabled in Work settings, before any tab could be accessed.

Is there a supported way to diagnose what denied browser access in this chat, or to restore Chrome access without losing the existing chat? An error that identifies the effective setting or session condition would help.

joost-heijden avatar Nov 09 '26 08:11 joost-heijden

Additional reproduction on macOS with the in-app browser (IAB), observed 10 November 2026.

Environment:

  • Desktop bundle com.openai.codex, version 26.1103.60933, build 25894 (read from installed bundle metadata).
  • macOS 26.7.1, Apple silicon arm64.
  • Subscription tier not inspected.
  • Codex local desktop task; the user explicitly authorised IAB use.

Observed in the affected chat:

  1. await cua.getState() returned the native application inventory, but browsers: [] and Browsers: Error: Local browser use is disabled in Work settings.
  2. await cua.getBrowser({ id: "iab" }) returned the same disabled message.
  3. await cua.createBrowserTab("iab", "<redacted HTTPS admin URL>", { visible: true }) also returned it.
  4. Opening the browser panel through the Codex app tool returned status: "queued" without a tab binding.
  5. Resetting the CUA JavaScript runtime and trying await cua.getTab({ url: "<redacted HTTPS admin URL>" }, { browser: "iab" }) still returned the same error.

The user reports that browser operations were working concurrently in another chat on this machine and that they had already demonstrated browser access repeatedly that day. That cross-chat success is user-reported; the affected chat could not independently inspect the other browser session. These results establish the repeated error in this chat, not that the user's browser setting is actually disabled.

Impact: an explicitly authorised deployment is blocked at the browser attachment step, and the wording leads agents to repeatedly ask the user to enable an already-working capability. Please investigate per-chat/browser permission routing or stale capability state, and make the error identify the actual denying layer rather than asserting a global Work setting.

No settings, security controls, browser profiles or sessions were bypassed or modified. Private URLs, repository names, paths, account details, credentials and the full chat transcript are omitted.

wi1son avatar Nov 10 '26 10:11 wi1son

Additional Windows reproduction (November 10, 2026, KST; Windows NT build 26300).

In an existing local desktop chat, cua.listBrowsers() returns Local browser use is disabled in Work settings. cua.getState() can enumerate native apps but shows an empty browser inventory with the same error. Selecting the built-in browser with cua.getBrowser({ id: 'iab' }) still returns that error after resetting the browser tool session, before any website is opened.

On the same Windows host, a separate chat's history shows earlier successful built-in-browser use. That was a historical comparison, not a simultaneous control test. The affected chat's current desktop Browser toggle and the client used to initiate each request were not independently verified, so this does not establish the cause or rule out a permission difference.

If this behavior is intentional, please identify the controlling setting or policy in the error and indicate how to recover the affected chat without losing its history. If it is a connection or authorization-state issue, please investigate the existing-chat path. No chat transcripts, identifiers, credentials, site URLs, or business data are included.

tkdqja4521 avatar Nov 10 '26 11:11 tkdqja4521

Additional reproduction on 2026-11-13: the installed trusted Browser plugin cannot even enumerate browsers in one existing desktop chat.

Observed call:

await agent.browsers.list();

Observed result:

Local browser use is disabled in Work settings

The owner reports checking settings, confirming Browser is enabled, and that other agents/chats can operate their internal browsers concurrently. Those settings and other chats were not independently visible to the affected agent. One retry after that explicit confirmation returned the same error. No website navigation was reached.

Environment evidence: agent execution host reports Linux 7.0.0-42-generic, x86_64; locally installed CLI reports codex-cli 0.162.1 (this is NOT a verified desktop-app version). Installed Browser package version 26.1023.51421. Desktop UI build and exact origin of the effective Work permission check are unavailable to this agent. Read-only checks found no browser/computer-use feature entries in the user config, and no requirements.toml at the two standard user/system paths checked; this does not establish absence of managed or session-level policy.

Expected: either expose the allowed internal browser or name the actual controlling chat/host/policy setting and a supported refresh/reconnect action. Repeatedly telling the user to enable an already-enabled global toggle is not actionable. Please investigate per-chat stale permission/capability state and the misleading error.

No restart, permission edits, browser-policy changes, cookies, credentials, private URLs, product files or session transcripts were used/shared. App restart has not been attempted because other agents are working. This comment contains only the minimal reproduction and non-sensitive environment details.

IdeasInTheWorks avatar Nov 13 '26 17:11 IdeasInTheWorks

Windows desktop: the built-in browser tools return Local browser access is unavailable for this chat before opening or reading any webpage. The user reports that Browser is enabled; the effective setting could not be independently verified. Resetting the official CUA JavaScript session and explicitly selecting @Browser did not restore access. Is there a supported way to diagnose the controlling permission/context and reconnect the existing chat? This report intentionally contains no timestamps, identifiers, URLs, workflow details, logs, screenshots or customer data.

robotsoftkr-cyber avatar Nov 14 '26 11:11 robotsoftkr-cyber

Follow-up: IAB access recurs after a later turn on Windows

The official desktop updater reports version 26.1111.21308, build 27194, production channel, up to date. The Windows package label is 26.1111.2228.0.

Official IAB access worked in the same existing local Codex chat after a full app relaunch. In a later turn, the earlier JavaScript handles were unavailable. Attempting to bind the existing tab through the official cua.getTab interface immediately returned:

Local browser access is unavailable for this chat

This occurred before page inspection. The owner reports Browser is enabled, and website sign-in did not restore browser-tool access.

The underlying cause remains unconfirmed. Please identify the effective browser-access denial reason across turns, a supported recovery procedure that preserves the existing chat and normal permission checks, or a fixed desktop build.

rbcpa6 avatar Nov 15 '26 03:11 rbcpa6

Title: Chrome browser access unavailable across chats on macOS

Desktop: ChatGPT/Codex 26.1111.21308, build 27194 Bundled CLI: 0.169.0-alpha.11.1 OS: macOS 27.0.1, Apple Silicon

Reproduced in the existing local desktop chat:

  • Official cua.getState() discovers native apps but returns browsers: [].
  • Error: "Local browser access is unavailable for this chat".
  • User reports that other chats are affected too; that comparison was not independently tested from this chat.

Checks completed:

  • Chrome and desktop app running.
  • Chrome native messaging manifest points to an existing executable, and the native host process is running.
  • Browser, Chrome, and unified computer-use plugins enabled in local configuration.
  • Desktop logs initially showed EPERM while checking Chrome extension state. With user confirmation, enabled only ChatGPT > Google Chrome in macOS Files & Folders and verified it ON. Browser access still fails.
  • User reinstalled the Chrome extension.
  • Reset the supported computer-use JavaScript session and initialized it afresh; same failure.
  • codex doctor --json found no failing checks; its only warning concerned non-interactive terminal formatting. It does not validate the active chat browser-access grant.

Expected: Restore browser access in existing chats, preserving history, browser sessions, and normal security checks. Expose the specific access-denial reason and provide a supported reconnect procedure or identify a fixed build.

Related reports: https://github.com/openai/codex/issues/59181 https://github.com/openai/codex/issues/56645 https://github.com/openai/codex/issues/60426

These reports have similar symptoms; a common root cause has not been established. This report intentionally excludes business data, account identifiers, private URLs, raw logs, and session transcripts.

CLGAdmin avatar Nov 17 '26 14:11 CLGAdmin

Cross-reference for the macOS reports in this thread ("Local browser access is unavailable for this chat", getState → browsers: []): on ChatGPT/Codex desktop 26.1117–26.1120 with a BYOK/Bedrock provider and no ChatGPT sign-in, the gate is conversationDetailMode = "STEPS_PROSE" (the app treats that display setting as the "Work" surface and denies the API-key executor local browser access). Verified fix: set it to STEPS_COMMANDS in ~/.codex/config.toml and restart the app (the file edit alone is ignored while running). Full details and the exact predicate in #54841.

luismccoy avatar Nov 25 '26 03:11 luismccoy

macOS desktop 26.1120.50957 · existing local chats lose built-in browser access

Two previously working local Codex chats on the same Mac returned Local browser access is unavailable for this chat with cua.getState() or cua.getTab(). Browser inventory was empty and cua.createBrowserTab('iab', …) failed before navigation. One affected chat retained the same model across the working and failing turns. In that chat, the desktop sidebar could attach a browser tab while the agent still received the same error after a supported browser-tool reset.

An independent read-only control on the same installation used a new local test chat. Its initial browser inventory was empty and tab creation returned Browser is not available: iab. Opening that same test chat once through the official desktop navigation registered its browser route. A subsequent turn opened and read a public test page, and another turn succeeded after the desktop navigated away. This control reproduced the missing initialization case on a new chat. Recovery of the previously working chats remains unverified.

The same established chat had an earlier failure on 26.1111.71704, worked again on 26.1117.41037, and later failed on 26.1120.50957. The sequence establishes recurrence across builds.

Could the desktop runtime report the effective access-denial reason and re-establish the authorized browser connection for an existing chat on resume? A regression test should verify that the same chat can discover and open its browser across subsequent turns after reopening or switching windows.

yantian9515-a11y avatar Nov 26 '26 15:11 yantian9515-a11y

November 28 follow-up on macOS

Codex desktop 26.1120.50957 (build 30866), macOS 26.4.1 on Apple silicon.

  • In an existing local Codex chat, both the in-app browser and the Chrome tab-level route still return Local browser access is unavailable for this chat before a page can be read. The desktop browser pane loaded the page in the same chat. A separate local diagnostic chat independently returned the same error for cua.listTabs({ browser: 'iab', emit: false }).
  • The native Chrome window was readable earlier, then cua.getApp() started returning cgWindowNotFound. Native app discovery continued to report Chrome as running. Rebinding the app and resetting the CUA JavaScript session did not recover the window.
  • The running Chrome helpers were on 155.0.8059.80 while the installed bundle reported 158.0.8127.37. We left the running work undisturbed, so this version difference is an observation rather than a confirmed cause. The native window error and tab-level denial have not been shown to share a cause.
  • Native app selection by bundle ID is also ambiguous on this Mac. Two installed application bundles declare com.google.Chrome. Choosing the standalone Chrome by its exact path (/Applications/Google Chrome.app) removes that ambiguity and still returns cgWindowNotFound. The second Chrome bundle was left untouched.

Is there a supported way to re-establish the existing chat's browser connection or obtain the effective denial reason without relaunching the desktop app? Please also clarify whether cgWindowNotFound warrants a separate native Computer Use issue.

hpuxyh avatar Nov 28 '26 06:11 hpuxyh