Repository navigation
Conversation
Collaborator
|
Contributor
Author
|
Superseded by #5664 (rebased onto current main). |
SawyerHood
added a commit
that referenced
this pull request
Oct 19, 2026
…r Use perms, etc) (#5664) ## Human comments ## What was wrong BB did not handle Codex's `mcpServer/elicitation/request`, so Computer Use app-access requests were silently declined and other MCP elicitations could not collect answers. Revives #3113, which was auto-closed as stale, rebased onto current main. ## What changed - **Computer Use:** the card shows the app's native icon with a Computer Use badge, its name, and its bundle ID. It offers session or persistent approval, and Decline. Codex owns permission storage. The title reads "Allow Codex to use <App>?". - **Risk:** high-risk warnings appear first, in a destructive callout. - **Forms:** typed text, numbers, booleans, and choices with defaults and validation, checked in the UI and again at the bridge boundary. Actions stay pinned while fields scroll. Unsupported schemas offer only Decline. - **URLs:** show the destination and open only on user action. Acceptance means the URL opened, not that sign-in completed. - **Long prompts:** titles are capped at the 160-character interaction limit; the card shows the full message when the title truncates it. - **Provider-origin cards:** the core composer no longer adds "Asked by the agent through <provider>" above cards from the thread's own provider (Codex, Pi). Plugin-origin cards keep "Requested by <plugin>". - **Docs and stories:** CLI/SDK responses for every request kind are in the `codex-provider` skill. A Ladle story covers each card state. Changes from #3113 required by current main: - The `experimental_hideHeader` SDK API is dropped, along with the SDK version bump and the audit entry. Main's pending-interaction shell owns the title. - No host-daemon protocol bump: no server/daemon wire fields change. - Response encoding shares `providerInteractionOutcomeSchema` with main's Codex `user_question` path. - Tests use only public SDK imports, keeping the plugin forkable. ## Previews Live Computer Use request from Codex: <img src="https://raw.githubusercontent.com/smsunarto/bb/5e6e2996a7c45b4b5abd45f602eed4a8214d0eb1/computer-use-live.png" width="728" alt="Computer Use request for Calculator"> High-risk app access: <img src="https://raw.githubusercontent.com/smsunarto/bb/5e6e2996a7c45b4b5abd45f602eed4a8214d0eb1/computer-use-high-risk.png" width="736" alt="High-risk Computer Use request with warning callout"> Form, with actions pinned while fields scroll: <img src="https://raw.githubusercontent.com/smsunarto/bb/5e6e2996a7c45b4b5abd45f602eed4a8214d0eb1/form.png" width="736" alt="MCP form with team choice and text fields"> URL request: <img src="https://raw.githubusercontent.com/smsunarto/bb/5e6e2996a7c45b4b5abd45f602eed4a8214d0eb1/url.png" width="736" alt="MCP URL request for GitHub sign-in"> Unsupported schema: <img src="https://raw.githubusercontent.com/smsunarto/bb/5e6e2996a7c45b4b5abd45f602eed4a8214d0eb1/unsupported.png" width="736" alt="Unsupported MCP request with Decline only"> ## How you verified - `pnpm exec turbo run typecheck test lint --filter=bb-plugin-provider-codex`: 496 tests pass. `@bb/app` typecheck and lint pass; composer and banner tests pass. `@bb/agent-runtime` tests pass. - The long-prompt regression fails when the title cap is removed. - Live dev instance: a real Codex Computer Use request rendered the card with Calculator's native icon. Decline resolved as `{"action":"decline"}`, and Codex reported that access was not approved. - The form, URL, high-risk, and unsupported previews come from the Ladle story; no live MCP server sent those kinds. Fixes #4645 > AGENT GENERATED ## Maintainer follow-up (rebased on main) - **Computer Use card is no longer spoofable**: it now requires the `cua_repl` server plus `connector_id: "computer-use"`. The same `_meta` from any other server renders as a plain tool approval. Every card names the requesting MCP server. - **MCP tool-call approvals** (`codex_approval_kind: "mcp_tool_call"`) get a `tool_approval` card showing server, tool, description and (size-capped) arguments, with Allow / Decline, plus session/always scopes only when `_meta.persist` offers them. - **Core attribution restored**: the "Asked by the agent through …" byline change in `PluginPendingInteractionComposer.tsx` is reverted. - **Stop turn / disconnect** now answers Codex with `{action:"cancel"}` instead of a JSON-RPC error (Codex was turning that into a decline). - Titles reuse `PLUGIN_INTERACTION_MAX_TITLE_LENGTH` (re-exported from `@get-bb/plugin-sdk/provider-bridge`) and truncate without splitting surrogate pairs; fixed the card bundle's browser build. Plugin SDK → 0.6.57. - Verified end to end against codex-cli 0.163.0 with a throwaway MCP server: form, URL, tool approval (once/session/decline), spoofed Computer Use, and stop-turn cancel. --------- Co-authored-by: sms-yui <[email protected]> Co-authored-by: Sawyer Hood <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Human comments
What was wrong
BB did not handle Codex's
mcpServer/elicitation/request, so app-access requests were silently declined and other MCP elicitations could not collect answers.What changed
How you verified
Screenshots
Computer Use
Structured form
Validation
URL request