Refresh Codex protocol bindings and adapter mappings #2590
main fromrefs/pull/2590/head·merged by juliusmarminge View on GitHubSummary#
- Regenerated the Codex app-server protocol bindings against the newer upstream ref, adding newly exposed requests, responses, and notifications.
- Updated the server adapter to map realtime start events from the upstream
realtimeSessionIdfield. - Expanded provider/runtime typing to accept the newer shared
serviceTierschema and added auth labeling for Amazon Bedrock accounts. - Added coverage for the new realtime mapping and Bedrock auth status.
Testing#
bun fmtbun lintbun typecheckbun run test
Note
Medium Risk Regenerates and expands Codex protocol bindings to a new upstream ref, which can subtly change request/notification shapes consumed across the server. Also tweaks adapter/provider mapping logic (realtime session id + auth labeling), so regressions would show up as missing/incorrect runtime events or status display.
Overview
Refreshes the generated effect-codex-app-server protocol bindings to a newer upstream ref, adding/removing various request/response/notification method constants and schema exports to match the updated Codex app-server protocol.
Fixes Codex realtime start event mapping to use the upstream realtimeSessionId field (instead of sessionId) and adds test coverage for this mapping.
Extends Codex provider status reporting to label amazonBedrock accounts as Amazon Bedrock, with a new registry test to verify the auth label/type, and updates runtime option typing to align serviceTier with the latest shared schema.
Note
Refresh Codex protocol bindings and fix realtimeSessionId mapping in adapter#
- Updates generated schema, namespace, and meta files in
effect-codex-app-serverto a new upstream protocol reference (07b6951), adding methods likethread/approveGuardianDeniedAction,hooks/list,marketplace/upgrade, and several plugin/process/remoteControl notifications, while removingdevice/key/*andthread/turns/list. - Fixes a bug in
CodexAdapter.tswherethread/realtime/startedevents were readingpayload.sessionIdinstead ofpayload.realtimeSessionId. - Adds
'Amazon Bedrock'label support inCodexProvider.tsforamazonBedrockaccount types, returningundefinedfor other unrecognized types. - Replaces scattered
V2ThreadStartParams__ServiceTier/V2TurnStartParams__ServiceTiertype references inCodexSessionRuntime.tswith a singleCodexServiceTieralias derived fromNonNullable<V2ThreadStartParams["serviceTier"]>. - Risk: The upstream schema churn removes and restructures several existing types (e.g.
SandboxPolicy,GhostCommit,V2ThreadTurnsList*), which may break callers not covered by the updated tests.
- 1
github-actions[bot](GitHub profile, opens in a new tab) added labelsvouch:trusted
github-actions[bot](GitHub profile, opens in a new tab) added labelssize:XXL
Approvability#
Verdict: Needs human review
Diff is too large for automated approval analysis. A human reviewer should evaluate this PR.
You can customize Macroscope's approvability policy. [Learn more](https://docs.macroscope.com/approvability#example-custom-eligibility-rules).juliusmarminge merged thisdd32f52
juliusmarminge closed this
Sign in to join this conversation.
Important
Review skipped#
Auto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the
.coderabbit.yamlfile in this repository. To trigger a single review, invoke the@coderabbitai reviewcommand.⚙️ Run configuration
Configuration used: Repository UI
Review profile: CHILL
Plan: Pro
Run ID:
ed860409-7a1c-4ec7-b562-c6e3da3474b8You can disable this status message by setting the
reviews.review_statustofalsein the CodeRabbit configuration file.Use the checkbox below for a quick retry:
✨ Finishing Touches
🧪 Generate unit tests (beta)
Comment `@coderabbitai help` to get the list of available commands and usage tips.