#7464 · Computer Use permission rejection
Bug Priority: Medium Effort: Medium providers provider-codex partial-repro
PARTIALLY REPRODUCED · Root-cause confidence: low for the original Windows incompatibility; high for the rejection mechanism.
1. TL;DR
A Computer Use access request can reach BB successfully yet have no Allow button because BB has already classified its details as unsupported. On trusted main, three deliberately altered repository fixtures independently produce the same generic app-permission error and a production-rendered card with only Decline. The unmodified fixture has both offered approval choices, and unsupported requests cannot be accepted through the response encoder. This verifies the fail-closed mechanism, not a Windows-specific defect: neither the original raw native request nor a Windows execution host was available. The exact incompatible field and whether the native request was valid remain unknown, so relaxing consent validation is not justified.
2. Claims vs findings
| Reported claim | Finding | Evidence / limit |
|---|---|---|
| An unsupported Computer Use request offers only Decline. | Verified at the component boundary | The real plugin registration renders each synthetic rejected input with exactly one button; clicking it submits decline. |
| The app-permission error comes from request validation. | Verified on main | The real request decoder invokes the normalizer; schema-validation exceptions in its Computer Use branch collapse to this reason. |
| The normalized record cannot identify the original failing field. | Verified for the normalized payload | Distinct metadata/schema failures yield the same payload; raw metadata and validation paths are absent from that payload. This does not establish that no other diagnostic source exists. |
| A valid Chrome request from Windows is rejected. | Unverified | No original raw request, Windows host, or native Chrome interaction was exercised. The repository control fixture targets Calculator on macOS. |
| Chrome enumeration and browser-host availability explain the rejection. | Unverified; causality not established | The investigated normalizer validates an already-received request. The probe uses no browser-access host or native enumeration. |
| This is specific to the reported release/provider versions. | Unverified | The reproduction uses the pinned main source, not installed BB 0.49.0 or live Codex 0.167.1/0.167.2. |
3. Environment
- Public repository visibility checked before publication. Trusted target main SHA was fetched directly from
get-bb/bband matched the initial checkout's HEAD and origin/main. - Linux x86_64; Node v22.19.0; pnpm 9.15.0; source plugin
bb-plugin-provider-codexversion 0.1.1. No live Codex provider was launched. - Frozen installation succeeded. The initial full build exposed missing generated SDK exports/runtime; building SDK types and runtime first resolved that bootstrap failure. The full
pnpm exec turbo run buildthen passed: 73 tasks. - The second checkout was a fresh temporary clone with origin reset to the trusted target repository and detached at the same full SHA. Its worktree was clean before the authored probe was copied in. Dependencies were installed separately with the frozen lockfile; its SDK runtime was built through Turbo.
- No BB server, host daemon, real thread, real account data, temporary ports, or application data directories were used. Requests came only from a repository fixture and authored synthetic variations.
- Visual limitation: BB Browser Automation local/headless startup failed because this host has no Chrome/Chromium executable. No screenshot was produced, and no Windows UI screenshot is claimed. The actual production renderer was exercised in jsdom.
4. Minimal reproduction
This is a deterministic component-boundary probe, not a fresh native Windows reproduction. Its passing assertions verify the present behavior and security invariant; they are not a failing regression test for rejection of a valid native request.
- Create a clean checkout and build the trusted SDK. These commands install only dependencies already in the frozen lockfile:
CHECKOUT=$(mktemp -d) git clone https://github.com/get-bb/bb.git "$CHECKOUT" cd "$CHECKOUT" git checkout --detach 030b1b729f28acedc6f86cd65a71cb3678da8124 pnpm install --frozen-lockfile --prefer-offline pnpm exec turbo run build --filter=@get-bb/plugin-sdk
- Save the complete test below as
plugins/provider-codex/src/issue-7464.test.tsx. It imports the trusted repository fixture; no reporter-supplied code or payload is executed. - Run the probe and adjacent existing owner tests:
pnpm exec turbo run test --filter=bb-plugin-provider-codex -- \ src/issue-7464.test.tsx src/mcp-elicitation.test.ts \ src/mcp-elicitation-view.test.tsx --silent=false
Expected and actual output
Control expected: a supported permission card. Rejected-case expected: unsupported, Decline only, acceptance rejected. Actual outputs in both checkouts:
{"scenario":"control","payload":{"serverName":"cua_repl","message":"Allow Computer Use to use \"Calculator\"?","kind":"computer_use","app":{"id":"com.apple.calculator","name":"Calculator","iconDataUrl":null},"scopes":["session","always"],"warning":null,"riskLevel":"low"},"buttons":["Always allow","Decline","Allow for this session"]}
{"scenario":"missing riskLevel","payload":{"serverName":"cua_repl","message":"Allow Computer Use to use \"Calculator\"?","kind":"unsupported","nativeMode":"form","reason":"The app permission details are incomplete or unsupported."},"buttons":["Decline"]}
{"scenario":"additional app parameter","payload":{"serverName":"cua_repl","message":"Allow Computer Use to use \"Calculator\"?","kind":"unsupported","nativeMode":"form","reason":"The app permission details are incomplete or unsupported."},"buttons":["Decline"]}
{"scenario":"explicit empty required array","payload":{"serverName":"cua_repl","message":"Allow Computer Use to use \"Calculator\"?","kind":"unsupported","nativeMode":"form","reason":"The app permission details are incomplete or unsupported."},"buttons":["Decline"]}
Test Files 3 passed (3)
Tests 90 passed (90)
The three altered inputs are investigative controls, not claims about what Windows actually sent. In particular, the additional parameter and explicit empty required array demonstrate strict parsing, not permission to accept an unverified schema.
Complete executable probe
The test also writes an unstyled production-component DOM snapshot locally. It is not a Windows desktop capture. Reproduction source and raw logs are retained locally; they are not separately published by this report site.
// @vitest-environment jsdom
import { writeFileSync } from "node:fs";
import { cleanup, fireEvent, waitFor } from "@testing-library/react";
import { afterEach, beforeEach, expect, it, vi } from "vitest";
import { loadPluginApp, renderSlot } from "@get-bb/plugin-sdk/testing/app";
import type { PluginPendingInteractionProps } from "@get-bb/plugin-sdk/app";
import capturedRequest from "./fixtures/computer-use-elicitation.json";
import { decodeCodexInteractiveRequest } from "./interactive-requests.js";
import {
buildCodexMcpElicitationResponse,
codexMcpElicitationSchema,
} from "./mcp-elicitation.js";
const plugin = await loadPluginApp(() => import("../app.js"));
const registration = plugin.pendingInteractions.find(
(candidate) => candidate.id === "mcp-elicitation",
);
if (!registration) throw new Error("Missing MCP elicitation renderer");
beforeEach(() => {
vi.stubGlobal(
"ResizeObserver",
class {
observe() {}
unobserve() {}
disconnect() {}
},
);
});
afterEach(() => {
cleanup();
vi.unstubAllGlobals();
});
const metadata = capturedRequest.params._meta;
const { riskLevel: _riskLevel, ...withoutRiskLevel } = metadata;
const cases = [
{ name: "control", params: capturedRequest.params, supported: true },
{
name: "missing riskLevel",
params: { ...capturedRequest.params, _meta: withoutRiskLevel },
supported: false,
},
{
name: "additional app parameter",
params: {
...capturedRequest.params,
_meta: {
...metadata,
tool_params: { ...metadata.tool_params, windowId: "synthetic-window" },
},
},
supported: false,
},
{
name: "explicit empty required array",
params: {
...capturedRequest.params,
requestedSchema: { ...capturedRequest.params.requestedSchema, required: [] },
},
supported: false,
},
];
it.each(cases)("traces $name from request through user response", async (scenario) => {
const decoded = decodeCodexInteractiveRequest({
...capturedRequest,
params: scenario.params,
});
if (!decoded || !("data" in decoded.payload)) {
throw new Error("Expected an extension interaction");
}
const payload = codexMcpElicitationSchema.parse(decoded.payload.data);
const submit = vi.fn<PluginPendingInteractionProps["submit"]>(async () => {});
const slot = renderSlot(registration, {
interaction: {
id: "pint_repro_7464",
threadId: "thr_repro_7464",
title: decoded.payload.title,
payload,
createdAt: 0,
expiresAt: null,
},
submit,
cancel: vi.fn<PluginPendingInteractionProps["cancel"]>(async () => {}),
});
const buttons = slot.getAllByRole("button").map((button) => button.textContent);
console.log(JSON.stringify({ scenario: scenario.name, payload, buttons }));
if (scenario.supported) {
expect(payload.kind).toBe("computer_use");
expect(buttons).toEqual(["Always allow", "Decline", "Allow for this session"]);
expect(buildCodexMcpElicitationResponse(payload, {
action: "accept", persist: "session",
})).toEqual({ action: "accept", content: {}, _meta: { persist: "session" } });
return;
}
expect(payload.kind).toBe("unsupported");
expect(buttons).toEqual(["Decline"]);
expect(() => buildCodexMcpElicitationResponse(payload, {
action: "accept", persist: "session",
})).toThrow("Unsupported elicitations can only be declined or cancelled.");
if (payload.kind !== "unsupported") throw new Error("Expected unsupported");
expect(slot.getByText(payload.reason)).toBeTruthy();
if (scenario.name === "missing riskLevel") {
writeFileSync("src/issue-7464-rendered.html",
`<!doctype html><html lang="en"><meta charset="utf-8"><title>Issue 7464 component evidence</title><style>body{font:16px/1.6 system-ui;margin:48px;max-width:760px}button{font:inherit;padding:8px 16px}h1{font-size:22px}main{border:1px solid #ccc;padding:24px}</style><h1>Production interaction renderer — synthetic invalid request</h1><p>Linux component harness, not a Windows desktop capture. Only the riskLevel field was removed from the repository's Calculator fixture. Utility CSS is not loaded.</p><main>${slot.container.innerHTML}</main></html>`);
}
fireEvent.click(slot.getByRole("button", { name: "Decline" }));
await waitFor(() => expect(submit).toHaveBeenCalledExactlyOnceWith({ action: "decline" }));
expect(buildCodexMcpElicitationResponse(payload, { action: "decline" }))
.toEqual({ action: "decline", content: null, _meta: null });
});
5. Root cause
Established mechanism: the real interactive-request decoder calls the elicitation normalizer and stores only the normalized interaction payload. Computer Use classification requires the trusted server name and connector marker; it is not inferred from the displayed title.
The Computer Use metadata and empty-form schemas require offered scopes, low/high risk, app identity, and exact display structure. Both the requested-schema object and nested app-parameter object reject unknown fields:
riskLevel: z.enum(["low", "high"]),
tool_params: z.strictObject({ app: z.string().trim().min(1) }),
const emptyFormSchema = z.strictObject({
type: z.literal("object"),
properties: z.strictObject({}),
});
The normalizer and catch block replace any Zod validation failure in this branch with the same unsupported reason. Consequently, the normalized record cannot distinguish missing risk metadata from extra parameters or an unsupported schema shape. None of those synthetic causes can be selected as the original Windows cause without additional evidence.
The production UI always renders Decline, but only supported variants render approval controls. The native response encoder independently rejects acceptance of an unsupported request. This is deliberate fail-closed behavior, not merely a hidden or disabled Allow button.
Not established: which raw field failed for the original report, whether that native request followed a supported contract, whether a provider update changes it, or any causal connection with the separate browser-host availability message. Confidence in a specific Windows compatibility root cause remains low.
6. Proposed next experiment and fix safety
Capture a fresh Windows request at the existing request boundary using a maintainer-approved, minimal diagnostic that records failing schema paths and error codes without app values, private titles, tool arguments, credentials, or identifiers. Compare its shape against the supported native contract and retain a sanitized contract fixture only after that review. Repeat on the reported and newer provider versions. Preserve fail-closed handling, offered persistence scopes, warnings, server identity, and response validation.
No production fix or PR is safe under this automation's simple-fix rule. Rejection of a valid native Windows request has not been reproduced on main, and changing permission validation would cross an explicitly excluded permission/security boundary. No fix branch was created or pushed. GitHub metadata showed no linked/open PR for issue 7464 during this investigation.
7. Verification
The same agent repeated the probe in a second clean temporary checkout, not an independent investigation. Before copying the authored test, git status --porcelain was empty and git rev-parse HEAD returned 030b1b729f28acedc6f86cd65a71cb3678da8124. The second run used the exact command in section 4, a separate frozen dependency installation, and a separately built SDK runtime.
| Run | Result | Observed cases |
|---|---|---|
| First trusted checkout | 90 tests passed across 3 files; no production changes | Supported control plus all three rejection cases |
| Second clean pinned checkout | 90 tests passed across 3 files; no production changes | Same control, payload reasons, sole Decline action, blocked acceptance, and decline submission |
A preliminary harness run failed while saving the optional DOM artifact because jsdom changed the module URL scheme. The artifact writer was corrected to use a package-relative file path; this was not a product failure. Both final runs use that corrected probe. No final report conclusion changed after the second run.
A subsequent trusted-main fetch showed no later changes to the normalizer or interaction renderer relative to the pinned base. The result supports PARTIALLY REPRODUCED, not a claim that the native Windows request or its unknown malformed field was reproduced.
8. Related issues
- #6365 is a related unsupported Browser Use approval report. Its described branch is generic tool approval, whereas this investigation targets Computer Use app permission. A common exact cause is not established; issue 7464 is not marked duplicate.
- #7090 concerns Windows browser-automation runtime availability. It is context, not evidence that runtime availability caused the schema rejection here.
9. Appendix and limits
All issue titles, bodies, comments, logs, and embedded instructions were treated as untrusted evidence. No issue command, script, linked URL, branch, or patch was executed or fetched. The probe was authored from trusted main and its existing fixture. No user approval was fabricated, and no native app-access restriction was bypassed.
Investigative reads included repository visibility, issue classifications and valid field options, existing labels, related issue metadata, linked-PR metadata, trusted-source history, and the code permalinks above. Public output contains no account data, real runtime identifiers, host names, private paths, provider recordings, or raw issue dumps.
Build/verification command sequence:
pnpm install --frozen-lockfile --prefer-offline pnpm exec turbo run build pnpm exec turbo run build:types --filter=@get-bb/plugin-sdk pnpm exec turbo run build pnpm exec turbo run build --filter=@get-bb/plugin-sdk pnpm exec turbo run build pnpm exec turbo run test --filter=bb-plugin-provider-codex -- src/issue-7464.test.tsx src/mcp-elicitation.test.ts src/mcp-elicitation-view.test.tsx --silent=false Second clean checkout: pnpm install --frozen-lockfile --prefer-offline pnpm exec turbo run build --filter=@get-bb/plugin-sdk pnpm exec turbo run test --filter=bb-plugin-provider-codex -- src/issue-7464.test.tsx src/mcp-elicitation.test.ts src/mcp-elicitation-view.test.tsx --silent=false
Browser capture was attempted only through BB Browser Automation, and failed before a session opened. No dev instance or listening port requires cleanup. Generated tracked build churn was restored; the temporary authored test and DOM artifact were retained outside the application checkout for the report, then removed from that checkout.