Repository navigation
Make the Codex provider plugin forkable - #4203
Merged
SawyerHood merged 1 commit intoSep 23, 2026
Merged
SawyerHood merged 1 commit into
SawyerHood merged 1 commit into
Conversation
SawyerHood
force-pushed
the
bb/forkable-21-provider-codex
branch
from
September 23, 2026 17:53
a0c96af to
6504b6d
Compare
SawyerHood
force-pushed
the
bb/forkable-21-provider-codex
branch
2 times, most recently
from
September 23, 2026 20:40
7ce461d to
bf12d77
Compare
SawyerHood
marked this pull request as ready for review
September 23, 2026 21:07
SawyerHood
force-pushed
the
bb/forkable-21-provider-codex
branch
from
September 23, 2026 21:31
bf12d77 to
d44e4fd
Compare
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
force-pushed
the
bb/forkable-21-provider-codex
branch
from
September 23, 2026 22:10
d44e4fd to
34db963
Compare
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
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:@bb/domainand@bb/provider-bridge-protocol. Most of that vocabulary the SDK publishes; three helpers it doesn't, nor the protocol'sinteractionRequestParamsSchema, which the calibration test parsed every approval request with.vitest.shared.ts.What changed
/compactprompt become test-local.@get-bb/plugin-sdk/provider-bridgepublishes.@bb/provider-parity, beside Claude Code's, anddocs/provider-bridge-protocol.mdsays Codex's replay lives there too.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-codexpasses in a copy.@bb/provider-parity,@bb/scripts, andbb-plugin-plugin-api-docstests;@bb/apptypecheck.interactionRequestParamsSchema. DeletingproviderThreadIdfrom 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