Repository navigation
Description
Summary
A user reports that a Codex Computer Use session in bb does not terminate. Expected behavior is for Computer Use to release control and end its active session when the corresponding work is stopped or finished.
Not independently reproduced. The original report does not specify whether this happens after normal completion, Stop, or thread closure, or whether the lingering state is the Computer Use UI, a process, or the bb turn. Those distinctions still need to be captured; no root cause is established.
Versions and environment
Verified on the reporting machine on 2026-10-30:
- Installed macOS desktop app: bb 0.48.0;
bb --versionalso returns0.48.0. - macOS 26.5.2 (25F84), arm64.
- Provider: Codex; local
codex --version:codex-cli 0.166.0. - Local Mac execution host with a remote bb server.
These are the reporting environment's current versions, not a verified identification of the failing session's build. The affected thread ID, precise failure time, and original session's CLI build are not yet identified.
Steps to reproduce
Suggested diagnostic recipe, not a confirmed reproduction:
- Start a Codex thread in bb on macOS with Computer Use available.
- Ask it to inspect an app with Computer Use and then finish.
- Observe whether the active Computer Use session releases control after completion.
- In a separate attempt, stop the turn while Computer Use is active and observe whether the active session ends.
Capture the affected thread ID, the exact termination action, and which state remains active. Normal completion and explicit Stop should be checked separately; idle provider-process reuse alone does not establish this defect.
Expected vs actual
Expected: Computer Use ends its active session and releases control after the relevant termination action.
Actual, as reported verbatim:
codex computer use session doesnt terminate
No failing trace or screenshot has been captured, and no session was interrupted as part of filing this report.
Evidence
- Reporting conversation: bb thread
thr_bxjcitc958, projectproj_5vda5bh2f5(private instance; reference as@thread:thr_bxjcitc958inside bb). This is the reporting thread, not an identified failing session. - Versions were read from the installed app's
Info.plist,bb --version,codex --version,sw_vers, anduname -m. - A local process snapshot shows Codex and Computer Use-related processes, but they cannot be attributed to the reported failure. Their presence is not evidence of failed cleanup.
What you ruled out
- Searched open and closed issues using “computer use”, “cua”, “computer terminate”, and “codex session stop”; no matching Computer Use termination report found.
- macOS app lacks Apple Events entitlement, blocking Computer Use child tools #2368 concerns denied Apple Events access; Codex Browser Use CDP consent renders as unsupported with only Decline (bb 0.47.1) #6365 concerns a consent form rendered as unsupported. Neither describes termination.
- Processes started by an automation script keep running after the script ends, and after bb quits #6505 concerns automation-script descendants surviving script exit. No evidence currently connects that cause to this report.
- No clean-session comparison, latest-main reproduction, or fix verification performed.
AGENT GENERATED
Activity
bb-slop-cop commentedon Oct 30, 2026
🚨 SLOP COP 🚨 ·
new-issue-autopilotproviders,provider-codex.no-repro.smsunarto commentedon Nov 4, 2026
Follow-up investigation: cleanup notification blocked by macOS
The user reports that the Computer Use cursor remains after Codex stops using it in BB, while Codex Desktop clears it. Host logs now establish a failed turn-end cleanup path. Cursor disappearance has not been independently recorded, and I did not reproduce this on latest main.
Versions and environment
BB 0.48.1, macOS 26.5.2 (25F84), arm64, Codex CLI 0.166.0, Node v24.22.2. The affected host daemon is a launchd service running a dedicated Node copy installed by personal dotfiles, connected to a remote BB server. It is independent of the desktop app.
Evidence
On 2026-11-03, TCC rejected three cleanup attempts. In each case, the responsible process was the launchd Node daemon, and the accessing process was OpenAI's signed
SkyComputerUseClient. The helper subsequently logged a transport failure for the corresponding turn.Trimmed log excerpts, with the home directory and identifiers redacted:
Inspection with
codesign -d --entitlements - <node-path>confirmed that this hardened Node executable lacks the Automation entitlement. The installed Codex Desktop executable has it. Codex's existingnotifyconfiguration does invokeSkyComputerUseClient turn-ended; cleanup is attempted rather than omitted.The source also explains the scope: the machine installer selects caller-provided Node and launches that executable directly. Desktop signing cannot change this daemon's permissions.
Related fix and remaining work
#7000 addresses the desktop-app entitlement issue tracked by #2368, adds the permission usage description, and keeps Electron helper permissions unchanged. Its packaging regressions failed before the patch and all 25 focused packaging tests pass afterward, at
f83c11338f762fbe19b45012ee9db15b83db2b84. A signed packaged build and actual completion/interruption/reuse behavior remain unverified.This issue should remain open: #7000 does not repair the independently enrolled Node runtime. Its runtime signing/launch path needs a separate fix and verification that cleanup succeeds and the cursor clears after completion and interruption.
For a faithful reproduction, start a Codex thread on such an enrolled macOS host, ask it to inspect Calculator with Computer Use and finish, then correlate the remaining cursor with
log show --last 10m --style compact --predicate 'process == "tccd" OR process == "SkyComputerUseClient"'. This recipe is diagnostic, not an independently verified end-to-end reproduction.Investigation: BB thread
thr_rhj64f5cwa(private instance). No live daemon was restarted or re-signed.fix(desktop): allow desktop-launched Computer Use to send Apple Events (