Skip to content

Make the Codex provider plugin forkable - #4203

Merged
SawyerHood merged 1 commit into
bb/forkable-20-provider-claude-codefrom
bb/forkable-21-provider-codex
Sep 23, 2026
Merged

SawyerHood merged 1 commit into
bb/forkable-20-provider-claude-codefrom
bb/forkable-21-provider-codex

Conversation

@SawyerHood

@SawyerHood SawyerHood commented Sep 23, 2026 •

Copy link
Copy Markdown
Collaborator

Human comments

What was wrong

Last of four agent-provider PRs in the forkable built-ins stack; it builds on #4202. plugins/provider-codex's source already used only the public SDK. A copy still failed:

  • Tests imported @bb/domain and @bb/provider-bridge-protocol. Most of that vocabulary the SDK publishes; three helpers it doesn't, nor the protocol's interactionRequestParamsSchema, which the calibration test parsed every approval request with.
  • The recorded-conformance test needs the repository's recordings.
  • The vitest config used vitest.shared.ts.
  • The fake app server had 34 code comments.

What changed

  • Imports: tests use the public SDK. The scope helpers and the standalone /compact prompt become test-local.
  • Calibration test: it still parses every approval request with the full interaction-request schema, now built from the payload schemas @get-bb/plugin-sdk/provider-bridge publishes.
  • Recorded conformance: the test moves to @bb/provider-parity, beside Claude Code's, and docs/provider-bridge-protocol.md says Codex's replay lives there too.
  • Config: defineConfig, declared test peers, a lint script, and turbo entries. The fake app server's comments are removed.

How you verified

  • pnpm exec turbo run typecheck test lint --filter=bb-plugin-provider-codex.
  • pnpm check:plugin-forks plugins/provider-codex passes in a copy.
  • @bb/provider-parity, @bb/scripts, and bb-plugin-plugin-api-docs tests; @bb/app typecheck.
  • Calibration schema: its JSON Schema is deep-equal to the protocol's interactionRequestParamsSchema. Deleting providerThreadId from the bridge's interaction-request send fails the test with a ZodError; a version that parsed only the one command approval it checks passed with that mutation.

🤖 Generated with Claude Code

AGENT GENERATED

@SawyerHood
SawyerHood added this pull request to stack #4182 September 23, 2026 17:51
@SawyerHood
SawyerHood force-pushed the bb/forkable-21-provider-codex branch from a0c96af to 6504b6d Compare September 23, 2026 17:53
@SawyerHood
SawyerHood force-pushed the bb/forkable-21-provider-codex branch 2 times, most recently from 7ce461d to bf12d77 Compare September 23, 2026 20:40
@SawyerHood
SawyerHood marked this pull request as ready for review September 23, 2026 21:07
@SawyerHood
SawyerHood force-pushed the bb/forkable-21-provider-codex branch from bf12d77 to d44e4fd Compare September 23, 2026 21:31
@SawyerHood
SawyerHood removed this pull request from stack #4182 September 23, 2026 21:40
@SawyerHood
SawyerHood added this pull request to stack #4220 September 23, 2026 21:41
The plugin's source already used only the public SDK, but a copy failed
to typecheck and test:

- Tests imported @bb/domain and @bb/provider-bridge-protocol for
  vocabulary the SDK publishes: ThreadEvent from /provider-bridge/testing;
  PromptInput, RuntimePermissionPolicy, ProviderRequestDecodeError, and
  the BRIDGE_* constants from /provider-bridge. The scope helpers and the
  standalone /compact prompt become test-local. The calibration test
  parsed every approval request with the protocol's unpublished
  interactionRequestParamsSchema; it now builds the same schema from the
  payload schemas /provider-bridge publishes and still parses every
  request.
- The recorded-conformance test moves to @bb/provider-parity beside
  Claude Code's, because a copy has neither the committed recordings nor
  the protocol package's worker entry.
- The vitest config imported the repository's vitest.shared.ts. It now
  uses defineConfig directly, the test task depends on the SDK build, and
  the plugin declares the fake plugin host's peers.

The lint script surfaced code comments in the fake app server, now
removed.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
@SawyerHood
SawyerHood force-pushed the bb/forkable-21-provider-codex branch from d44e4fd to 34db963 Compare September 23, 2026 22:10
@SawyerHood
SawyerHood merged commit 0bb004a into main Sep 23, 2026
23 of 34 checks passed
@SawyerHood
SawyerHood deleted the bb/forkable-21-provider-codex branch September 23, 2026 22:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant