Skip to content

Remove the ChatGPT extension route, the vendor browser service and cua login (#79) - #152

Merged
SSFSKIM merged 5 commits into
mainfrom
feat/79-remove-chatgpt-route
Oct 17, 2026
Merged

SSFSKIM merged 5 commits into
mainfrom
feat/79-remove-chatgpt-route

Conversation

@SSFSKIM

@SSFSKIM SSFSKIM commented Oct 17, 2026

Copy link
Copy Markdown
Owner

Removes the ChatGPT ("OpenAI") Chrome extension route now, per the owner's ruling of 2026-10-17: distribution stays internal, so the Chrome Web Store listing (#78) is no longer a precondition. No production path reaches the vendor extension or its host, @oai/browser-desktop, codex login or anything that starts codex app-server.

Removed

  • cua chrome register --vendor / unregister --vendor and the whole vendor registration (com.openai.codexextension manifests, its record writes and backups).
  • cua install's placement of OpenAI's Chrome host in a release (the chrome-plugin component and its config naming the codex CLI and CODEX_HOME); the pins lose chromePlugin.
  • cua login (src/runtime/login.mjs) and doctor's codex.login row; doctor's chrome.host.config, browser.service and OpenAI-extension rows.
  • The vendor browser service selection: CUA_BROWSER_SERVICE, CUA_BROWSER_VENDOR_SERVICE, the chatgpt_extension_route and vendor_browser_route reasons, and the browser-related repl_host_refused cases. The browser surface always runs cua's own service, on either REPL host.
  • The vendor socket-directory scan in discovery and in cua's service: every launch passes BROWSER_USE_BACKEND_PATHS, empty when there are no sockets.
  • scripts/accept/chrome-all*.mjs and the ChatGPT-route options of accept-chrome (--route, --all, --c6-slots), plus the probe's login-bound --with-tabs mode.

Stays for #115

CODEX_CLI_PATH and the CodexCLI.app relocation (still node_repl's sandbox launcher) and CODEX_HOME. The pin's browserVendorService layout key stays, read only by the test-only oracle below.

How a vendor-route home migrates

A home's route is cua while chrome/cua-registration.json exists. The old record (chrome/registration.json) is only read, by chromeMigration in src/chrome/route.mjs, which feeds doctor's new chrome.route row, a note: on stderr from every cua profiles command, and a note: (json leftover) from cua chrome register:

code chrome.route case
chrome_not_registered blocked no registration at all
chatgpt_route_removed blocked, or warn if cua's registration exists but is older the ChatGPT route's record is the only or newest one
chatgpt_route_leftover warn cua's registration is newer; the old record is still there
rebind_required warn cua's registration only, but profiles are still bound on the ChatGPT extension

The message names the steps in order, with this home's paths: cua chrome register, install or load the cua extension, cua profiles bind <key> for each profile bound on the ChatGPT extension (those read rebind_required), then the cleanup of each com.openai.codexextension manifest the old record lists that still names a host in the home (cp the backup back where cua had replaced the desktop app's, else rm), and finally rm -rf the record and its backups. Bindings without route: 'cua' stay readable; any other route value is invalid.

Test-only vendor oracle

The browser-route benchmark and the repl-parity browser lanes keep comparing against OpenAI's service through test/browser-parity/vendor-oracle.mjs. On the vendor REPL host it swaps the browser trusted service for the pinned runtime's module; it is wired into test/repl-parity/serve-production.mjs and the new test/browser-parity/serve-vendor-oracle.mjs. The harness keeps the lane name CUA_BROWSER_SERVICE, which committed evidence records. Production never reads it.

Tests

  • New test/chrome-migration.test.mjs: all four codes, mtime ordering, rebind naming, and the cleanup steps (rm, cp, a missing backup, a gone or foreign or unparsable or unreadable manifest).
  • test/doctor-cua-route.test.mjs: the chrome.route row in each state, and the removed rows are absent.
  • test/chrome-cli.test.mjs and test/chrome-cua-cli.test.mjs: --vendor is a usage error, cua login is unknown, the profile commands print the note, and chrome register --json carries leftover and rebindRequired.
  • test/runtime-launch.test.mjs: the collapsed selection on homes with no record, the old record, cua's record or both. There is no browser service variable in the launch, src/browser-service is trusted on both hosts, BROWSER_USE_BACKEND_PATHS is always set, an ambient CUA_BROWSER_SERVICE is ignored, and the REPL host defaults are browser_only and macos_native_peer_requires_vendor.
  • test/services-browser.test.mjs: the wrapper always delegates to cua's service.
  • test/browser-service/backend.test.mjs: an unset BROWSER_USE_BACKEND_PATHS means none.
  • test/browser-parity/vendor-oracle.test.mjs covers the oracle.
  • Registration, profile, install and manifest tests are rewritten for the cua route only; the vendor registration, login and chrome-component tests are deleted.

Locally I ran every touched test file (about 2,000 tests in small batches, --test-concurrency=1). They pass apart from one failure in test/deploy-cloud-vm.test.mjs ("create-hetzner.sh … space", a broken pipe in its hcloud stub), which also fails on main. I also ran claude plugin validate ., which passed with warnings. The full suite runs here in CI.

Docs: README (one route, plus a "Moving a home off the ChatGPT extension route (#79)" subsection); dated Decision Log entries (2026-10-17) in the own-chrome-extension, standalone, own-browser-service and own-REPL-host specs; CLAUDE.md; onboarding; the cua-remote skill; the tech-debt tracker. Plugin 0.12.1 → 0.13.0.

Closes #79

…ion and cua login (#79)

The cua extension and host are the only Chrome route: cua chrome register|unregister lose --vendor and the
vendor registration code; cua install no longer places OpenAI's Chrome host (pins lose chromePlugin); cua login,
doctor's codex.login, chrome.host.config and browser.service rows go. The browser surface always runs cua's own
service on either REPL host: CUA_BROWSER_SERVICE and CUA_BROWSER_VENDOR_SERVICE are gone, and every launch passes
BROWSER_USE_BACKEND_PATHS, so no service scans OpenAI's socket directory.

A home registered on the removed route, or not at all, gets chromeMigration (src/chrome/route.mjs): doctor's new
chrome.route row and a note from cua profiles and cua chrome register naming cua chrome register, the profiles to
bind again and the exact cleanup of the old manifests. CODEX_CLI_PATH, CodexCLI.app and CODEX_HOME stay for #115.
…est-only oracle

The ChatGPT route's acceptance variants (scripts/accept/chrome-all*, accept-chrome --route/--all/--c6-slots, the
probe's login-bound --with-tabs) are removed; the cua-route runners and the Linux runners need cua's registration.
The parity lanes keep comparing against OpenAI's service through test/browser-parity/vendor-oracle.mjs, which swaps
the browser trusted service for the pinned runtime's module on the vendor REPL host (serve-production.mjs, and
serve-vendor-oracle.mjs for the capability host); the harness keeps its CUA_BROWSER_SERVICE lane name, which the
committed evidence records. The REPL-host selection harness follows the collapsed rules.
…s off the ChatGPT route

README names one route and adds the migration subsection; Decision Log entries (2026-10-17) in the own-extension,
standalone, own-browser-service and own-REPL-host specs record the owner's ruling (internal distribution, so the
Store listing is no longer a precondition) and what was removed; CLAUDE.md, the onboarding note, the cua-remote
skill and the tech-debt tracker follow.
@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ⚠️ Failed 2026-10-17T07:35:24.190296Z be1f188 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, add credits to your account and enable them for code reviews in your settings.

…deleted while a manifest is unresolved (#79 review)
… no home defaults a listing to it (#79)

Before #79 a home with no Chrome registration was the ChatGPT route, so a browser-only connection or profile listing
chose the vendor REPL host (vendor_browser_route), which the fake release fakes. Without that reason, a Node 24 or
later runs cua's own host there. The serve-cli listing and bind tests, serve-lazy's profiles_list test (whose recorded
handshake is the vendor host's) and linux-sandbox-refusal's disabled-connection listing now set CUA_REPL_HOST=vendor.
serve-cli also stops any server a failed test left running when the file ends, so a failure no longer holds the run
open until the job's timeout.
@SSFSKIM
SSFSKIM merged commit 94366c1 into main Oct 17, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Remove the ChatGPT extension route, the vendor browser service and the Codex login (ahead of #115)

1 participant