Repository navigation
Description
CUA tool disappears when resuming an existing desktop chat
Environment and observed behavior
- macOS arm64 desktop app 26.1029.61003, bundle build 24614.
- An existing chat previously completed native CUA calls.
- After desktop application startup and chat resume, its next tool update removed the CUA namespace.
- Re-selecting the browser through the official mention flow restored browser access. The chat successfully used
browser.user.openTabs()and returned seven real tab titles.
Timeline (2026-11-05, UTC+8)
- 11:40:47: desktop app starts.
- 11:41:11: existing chat resumes and initializes MCP connections.
- 11:41:16.673: installed CUA manifest is rewritten, enabled for browser and computer surfaces.
- 11:41:23: the chat receives removal of its CUA tool namespace.
These observations identify a startup/resume transition to investigate. The recorded logs do not contain the exact initialization state, eligibility inputs, or effective per-chat configuration snapshot used to generate that removal.
Relevant implementation
The browser runtime configuration builder waits for currently registered plugin reconciliation and browser synchronization promises. It returns a configuration explicitly disabling CUA when the synchronization result does not indicate CUA is enabled. Missing state and explicit ineligibility converge on the disabled configuration path.
Existing safeguards include stable-generation promise waiting, serialized browser configuration synchronization, atomic manifest replacement, and per-operation browser authorization scoped to the executor, account, session, and turn. Preserve these protections.
Requested engineering change
- Record explicit initialization states: unregistered, pending, ready, explicitly disabled, failed. Include safe generation and eligibility diagnostics.
- Register the initialization barrier before existing-chat resume can build its runtime configuration.
- Preserve explicit disabled decisions. Await pending initialization with bounded, actionable failure handling.
- Coordinate retry, cancellation, and shared initialization flights; prevent permanently hung flights from poisoning subsequent retries and prevent stale completion from writing configuration after cancellation.
- Refresh affected chat tool catalogs once initialization completes, coordinating with in-flight tool calls and preserving current authorization checks.
Local investigation and regression checks
An isolated copy of the actual compiled configuration function reproduces missing state becoming a disabled override. A prototype readiness helper passed controlled branch, explicit-disable, identity propagation, timeout, failure, and same-connection concurrency fixtures.
Review found the prototype is not ready to ship: its shared initialization flight can remain hung after waiter timeout; it does not address stale non-null disabled state; one isolation fixture used separate VMs instead of a shared module; dependency injection and late writes still require production lifecycle integration. This report does not claim the prototype fixes the observed production incident.
Required acceptance
- Resume a chat immediately during deliberately delayed initialization.
- Verify no unintended CUA removal and confirm a real read of an existing browser tab.
- Test explicit disable, revoked access, initialization failure, cancellation, timeout followed by successful retry, two connections in one process, concurrent windows, and active tool calls during refresh.
- Verify normal application code signature and archive integrity after installation.
The installed application was left unchanged. It has a vendor signature and sealed archive; the local machine reports zero valid signing identities. A distributable fix requires the maintained client source/build pipeline or a vendor-signed update.
This report omits account identifiers, chat identifiers, document URLs, page titles, credentials, and raw private logs.
Related maintainer report
Related: #49307 describes the same initialization-result-to-disabled-override propagation on an earlier macOS build. This report adds an observed startup/resume transition on 26.1029.61003 and successful recovery through the official browser mention flow. Please correlate the runtime eligibility/state-generation snapshot with the per-chat tool catalog update.
Activity
github-actions commentedon Nov 5, 2026
Potential duplicates detected. Please review them and close your issue if it is a duplicate.
Powered by Codex Action