--- name: codex-provider description: "Diagnose BB-specific Codex session controls, MCP elicitation and Computer Use app access, model acceptance, and durable goals." --- # Codex provider The provider requires Codex CLI 0.136.0 or newer. On Codex 0.145.0 and newer, `Disable provider subagents` disables native subagent tools through `agents.enabled` and overrides `features.multi_agent_v2` to false for BB sessions. Older versions retain the legacy subagent settings. Codex supports structured plan requests, editing and rerunning eligible messages, and compaction through the corresponding core `bb thread` commands. Stopping a running Codex thread pauses its active Goal, as Codex's own client does, so later messages and clearing do not restart it. Send `/goal resume` to make a paused, blocked, or usage-limited Goal active again; Codex starts working on it in that message's turn. `/goal pause` and `/goal clear` pause or remove the Goal without starting a turn, and any other `/goal` text goes to Codex as a normal prompt. `bb thread clear-goal ` also removes the thread's Goal, whatever its status, and waits for provider confirmation. Inspect the thread before recovery actions. When switching between local Codex and Account Pooler routing, bb checks the provider returned by a successful resume and handles Codex's structured provider-mismatch and missing-pool errors. When migration is needed, bb forks the complete native history into the selected provider before sending a turn. BB retains the thread, workspace, visible history, and original native session. A copied Goal waits for the next explicit turn. A failed migration stops the turn and reports the provider error. This recovery applies to BB sessions. The Codex app-server process receives the thread environment: machine and project variables, GitHub credentials, and plugin contributions such as the Account Pooler token. Codex's own `shell_environment_policy` decides which of them reach the agent's commands. Codex's default passes all of them, and an `exclude` such as `["*TOKEN*"]` removes the matching ones. bb always sets its non-secret context variables there, so the `bb` CLI works under any policy: `BB_THREAD_ID`, `BB_PROJECT_ID`, `BB_ENVIRONMENT_ID`, `BB_THREAD_STORAGE`, `BB_CLI`, `BB_SERVER_URL` and `BB_HOST_DAEMON_PORT`. Codex questions from `request_user_input` pause the turn until answered. Questions from `request_user_input_async` do not pause it: the plugin opens a question card for each one that stays open for up to an hour after the turn ends. Submitting sends the answer to the thread as a message (steering an active turn or starting a new one); dismissing sends nothing. From the CLI, find it with `bb thread interactions list ` and answer with `bb thread interactions respond --value '{"answers":{"question-1":{"selected":["option-2"]}}}'`. Questions and options are numbered from 1 in order; use `"freeText"` for a typed answer. Codex relays MCP elicitations (`mcpServer/elicitation/request`) as a `provider-codex/mcp-elicitation` interaction that pauses the turn. Every card names the requesting MCP server. Computer Use app access (only from Codex's `cua_repl` server; Computer Use metadata from any other server shows as a plain tool approval) shows the app name and native icon, keeps high-risk warnings visible, and offers Allow for this session or Always allow only when Codex offers that scope; Codex stores the grant. MCP tool-call approvals (`codex_approval_kind: "mcp_tool_call"`) show the tool and its arguments and offer Allow, plus Allow for this session or Always allow when Codex offers them. These are separate from macOS Accessibility and Screen Recording permissions. Standard forms accept text, numbers, integers, booleans, and single or multiple choices with defaults, required fields, and supported constraints; answers are validated in the UI and again before reaching Codex. URL requests show the destination and open only on user action; acceptance means the URL opened, not that the external flow finished. Unsupported schemas offer only Decline. Answer from the CLI with `bb thread interactions respond --value ''` (SDK: `threads.interactions.respond`), passing `{"action":"accept","persist":"session"}` (or `"always"` when `scopes` includes it) for app access, `{"action":"accept"}` or an offered `persist` for tool approvals, `{"action":"accept","content":{...}}` for forms, `{"action":"accept"}` for URLs after the user opens them, or `{"action":"decline"}` / `{"action":"cancel"}`. Invalid responses never grant access. Stopping the turn answers the request with `cancel`. Unlisted model IDs are accepted by this provider; acceptance does not establish account access. Inspect models on the actual execution host with `bb provider models codex` using the machine or environment selector. Service tiers are `default`, `fast`, and `ultrafast`. Codex reports the tiers each model accepts for the signed-in account, so the model picker and `bb provider models codex` (Service tiers column, `supportedServiceTiers` in `--json`) list Ultrafast only for eligible models and accounts. Pass the id to `--service-tier` on `bb thread spawn` or `bb thread tell`; bb sends an explicit tier to Codex as given. When the model does not list it, Codex runs the turn at its default tier and the thread shows its warning that the tier "is not advertised as supported" and was omitted. Daybreak is a session option with the id `daybreak`, offered only when the signed-in account's model list advertises a Daybreak program. Turn it on in the model picker, with `bb thread spawn --option daybreak=true`, or on an existing thread with `bb thread options --set daybreak=true`; it applies from the next turn and Codex stores the choice on its own thread. With it on, each turn asks for the selected model's Daybreak program (blue when the model lists it, otherwise red); once it has been turned off, each turn asks for the standard program. A thread where Daybreak was never set sends no program and leaves the choice to Codex. `bb provider models codex` lists the option, and `--json` shows per model whether it runs with Daybreak, without it, or both (`sessionOptions`, where `fixed: true` means only the listed value). A model that cannot run in the current state is disabled in the picker. The `gpt-daybreak-*-latest` alias models leave the main list when the switch is available and stay selectable only on threads that already use them. Use the core CLI skill for command syntax and official Codex guidance for upstream product behavior.