Skip to content
Source
Sign inSign up
pingdotgg/t3code

[Bug]: Environment browser stops at OpenAI Cloudflare verification while Edge works on the same Mac #16596

ClosedTheLoroXD(GitHub profile, opens in a new tab) opened this issue 3 comments

Before submitting

  • I searched existing reports, including #5002, #7110, #14815, and #15328.
  • I included the observed flow and environment. I have not established the exact Cloudflare discriminator.

Area

apps/server, collaborative browser opened through preview MCP tools on macOS Desktop.

Summary

The environment-hosted browser remains at OpenAI Platform's Cloudflare verification page on the local Mac. The same portal opens successfully in Microsoft Edge on that Mac, subsequently confirmed by the agent through the Browser Use extension. This blocks a publisher setup workflow inside the collaborative browser.

Steps to reproduce

  1. In T3 Code Desktop, start a local full-access/default thread.
  2. Call preview_status, then preview_open({open:true,show:true}).
  3. Navigate to https://platform.openai.com/settings/organization/general using preview_navigate.
  4. Inspect the browser snapshot and status. The title is Just a moment... and the page shows Verify you are human.
  5. Compare with Microsoft Edge on the same Mac. The user reported successful portal access there; the agent subsequently connected through the Browser Use extension to the existing Edge tab at the exact same URL and verified that organization settings loaded with the Personal organization selected. Exact egress parity has not been measured.

Expected behavior

The intended publisher workflow should be usable with a compatible browser. The integrated browser should not leave the user and agent treating a browser-compatibility challenge as evidence that the account or the host IP is blocked. No CAPTCHA bypass or browser-identity spoofing is requested.

Actual behavior

  • The top-level portal navigation receives HTTP 403 and displays the Cloudflare human-verification interstitial.
  • The collaborative tab reports runtime: server.
  • The browser is a T3-owned chrome-headless-shell process under the local T3 server. The recorded user agent contains HeadlessChrome/154.0.8037.92.
  • A later status confirms the tab is visible and under human control; the title remains Just a moment....
  • No CAPTCHA was solved by the agent, and no publisher credentials were entered.

Impact

Major degradation. The user must leave the collaborative browser to continue the affected publisher workflow.

Version or commit

T3 Code 0.0.46-nightly.20261006.2735.

Environment

macOS 26.5.1, Darwin, arm64. Local T3 desktop/server and browser process verified. Chrome headless shell 154.0.8037.92. Codex harness with GPT-6.1-Sol.

Logs or supporting evidence

Sanitized observations:

preview runtime: server
portal title: Just a moment...
portal navigation: HTTP 403
browser executable: .t3/tools/chrome-headless-shell/mac-arm64/154.0.8037.92/chrome-headless-shell
browser userAgent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/154.0.8037.92 Safari/537.36

Browser process ancestry and established HTTPS connections were inspected locally. This reproduction does not use a DevBox browser or a localhost tunnel. A separate DevBox attempt also stopped at Cloudflare; its IP was only a hypothesis, never a confirmed cause. Challenge tokens, cookies, session data, and account credentials are omitted. A screenshot is retained locally and has not been attached publicly.

  • #5002 was the older desktop preview's Turnstile loop, closed after #7110 preserved Electron's native User-Agent. This report uses the newer environment-server browser, so the older fix does not establish that this path works.
  • #15328, merged on 2026-10-06, introduced the environment-server browser. It is relevant context, but I have not bisected this failure or established a regression caused by that merge.
  • #14815 concerns Google's unsupported embedded-browser flow, a different site and failure.
  • Cloudflare documents that automated browsers are unsupported for production challenge solving: https://developers.cloudflare.com/cloudflare-challenges/reference/supported-browsers/

Please triage the failure and intended supported path before any substantial browser-routing change. A focused fix must preserve the browser's truthful identity and human ownership of verification.

Workaround

Use the user's existing Microsoft Edge session; the agent verified access to the exact organization settings URL through the Browser Use extension. T3 and Edge do not automatically share their browser profile or login state.

Prepared with GPT-6.1-Sol through the Codex harness in T3 Code.

Follow-up evidence

A separate DevBox navigation also returned HTTP 403 with the Cloudflare interstitial. The user reports that manually opening the same URL in T3’s local Mac browser remains blocked; that manual tab’s engine was not independently inspected.

Source tracing shows that runtime: server can control an owning desktop’s native Electron page and falls back to headless if attachment does not complete. The original Mac fallback remains unexplained. No fix is verified yet; broader host selection overlaps the existing discussion #15339.

Prepared with GPT-6.1-Sol through the Codex harness in T3 Code.

  1. Investigation at c9b21b28e2cebc4c9cbd80726e757df36309dea8 confirms that the observed page was Chrome headless shell, but runtime: server alone does not identify the renderer. The same server implementation can drive a native Electron page through the owning desktop's browser channel. It waits ten seconds for native attachment and otherwise launches headless. The installed macOS build includes that native path and its backend has the two browser channel descriptors.

    A separate navigation through T3's preview tools on Linux to https://platform.openai.com/settings/organization/general reproduced HTTP 403 and Just a moment... with the unmodified HeadlessChrome/154.0.8037.92 user agent. Cloudflare does not support automated browsers for production challenge solving. Visibility and human control of the stream do not change its engine.

    I have not established why the original Mac tab fell back to headless, the exact Cloudflare discriminator, an IP cause, or that the same flow succeeds in native Electron. The user's report of Edge access remains a workaround, not proof of an Electron fix. No CAPTCHA, account login, browser-identity patch or Edge storage transfer was performed.

    Lorenzo then manually opened the same URL from Browser in the Mac's local T3 environment and reported that it also remains at Cloudflare. I have not independently inspected that new tab's engine. There is no demonstrated native Electron access path, and changing routing alone has not been shown to solve this issue. General cross-host selection would need an agreed scope in the existing discussion.

    No fix or PR is claimed at this stage.

    Prepared with GPT-6.1-Sol through the Codex harness in T3 Code.

  2. TheLoroXD(GitHub profile, opens in a new tab)commented

    Prepared a focused fix in https://github.com/pingdotgg/t3code/pull/16620, now at 1722a7ae9060883d71d3ba06872c54076dec6bf1. The persistent Electron host depended on session synchronization in mounted chat/preview views. A background local agent tab could therefore miss native attachment and fall back to headless. The host now loads existing primary-environment tabs and follows live events, including startup, reconnect, and server restart. The same event is applied once when a chat is also mounted. The review correction refreshes separate thread queries on an epoch change and rejects late results from the retired primary server, while remote queries retain epoch adoption.

    Real verification used an isolated macOS desktop copy, fresh profiles, and separate T3 state. The shipped client reproduced HeadlessChrome 154, HTTP 403, and the verification checkbox. With the final client build and unchanged server bundle, a tab created before the renderer was ready attached to native Electron/Chrome 152 and reached the actual OpenAI Platform login form at /login. No credentials, CAPTCHA interaction, identity override, or cookie/token transfer were used. Before/after screenshots and sanitized results are linked in the PR; 96 focused tests and scoped typechecks/builds pass. Both added epoch regression cases failed on 92c1d426 before the correction.

    This establishes a local hosting defect and verifies anonymous access to the login page. It does not establish the exact fallback cause in the originally reported session or validate the authenticated organization portal. Remote headless challenge compatibility and entirely offscreen capture remain outside this fix.

    Prepared with GPT-6.1-Sol through the Codex harness in T3 Code.

  3. Fixed by #16939. When the desktop app draws a server tab, the CDP relay was swallowing the resume Playwright sends for paused child frames. Cross-site iframes, including Cloudflare Turnstile's, never started. With the fix, signing in to OpenAI through Turnstile works in a desktop tab. Tabs a remote server renders headlessly are tracked separately in #16638.

  4. juliusmarminge closed this

Sign in to join this conversation.