Skip to content

chore(deps): upgrade Bifrost core to 1.15.2 and CPA to v8.0.77 - #982

Merged
tbphp merged 2 commits into
mainfrom
tbphp/upgrade-sdks-20261118
Nov 18, 2026
Merged

tbphp merged 2 commits into
mainfrom
tbphp/upgrade-sdks-20261118

Conversation

@tbphp

@tbphp tbphp commented Nov 18, 2026

Copy link
Copy Markdown
Owner

关联 Issue / Related Issue

Supersedes #974 and #975.

变更内容 / Change Content

  • Bug 修复 / Bug fix
  • 新功能 / New feature
  • 其他改动 / Other changes

Upgrade Bifrost core from 1.14.1 to 1.15.2, and CPA from 8.0.60 to 8.0.77 in both Go modules. Dependabot split these SDKs across #974 and #975, and neither builds alone: #974 misses the root go mod tidy and the new Claude baseline, and #975 fails to compile Bifrost.

Bifrost core 1.15.x replaces github.com/mark3labs/mcp-go with its fork github.com/maximhq/mcp-go (b7da3bc145a1). Replace directives in dependencies do not apply to consumers, so Bifrost's MCP code calls client.WithRequestClientCapabilities, which only exists in the fork. The root module now carries the same replace, matching the combination Bifrost builds and tests with. 1.15.2 fixes gateway crashes on chat requests with no messages, panics on null Gemini parts, and unrecovered panics in provider stream goroutines. Bifrost's CheckContextAndGetRequestBody is now generic, so one test converter returns the concrete *openai.OpenAIResponsesRequest.

Bifrost 1.15 now merges an assistant turn's narration and tool calls into one Chat message when converting Responses input. That message's reasoning keeps only the first reasoning fragment; later reasoning_text fragments survive only in reasoning_details. The compatible Chat path now builds the full turn reasoning from reasoning.text details when present, so OpenAI-compatible upstreams still receive every fragment (Full.\nMore.) in reasoning_content. Messages without text details keep using reasoning. The existing regression test caught this after the upgrade.

CPA 8.0.77 depends on github.com/MoeForge/moego v0.1.0-alpha.4 directly and no longer replaces it with router-for-me/moego. Both modules drop the old version-specific replace for v0.1.0-alpha.1, which no longer matches. The Go proxy commits for CPA v8.0.77 match the GitHub tag.

Update pinned client identities and snapshots:

  • Codex 0.167.0 → 0.169.1. The official codex-rs/models-manager/models.json adds gpt-6.2-sol and gpt-6.2-astra and updates metadata for existing models, including a 500000 context_window for gpt-6.1-sol (previously 272000).
  • Codex capability snapshot from router-for-me/models 829b3b7f. Only gpt-6.2-astra and gpt-6.2-sol are added, both with support_configuration_update. The snapshot is built with the same method, which still reproduces the previous file byte for byte.
  • Claude Code 2.1.319 → 2.1.327. CPA raised its fingerprint baseline to 2.1.321, which failed the baseline test.
  • Grok 1.0.77 → 1.0.88.
  • Antigravity stays at 2.29.0. Hub 2.32.2 is available, but CPA v8.0.77 has no changelist for it; the existing 2.29.0 changelist is unchanged in v8.0.77.
  • Muse Code stays at 1.0.2, matching CPA.

Other Go updates: brotli 1.3.0, klauspost/compress 1.20.4, pion/ice 4.4.9, gjson 1.20.4, sjson 1.2.10, x/crypto 0.59.0, x/sys 0.50.0, x/text 0.44.0.

Validation:

  • The updated identity, CPA marker and snapshot tests failed before the version changes and pass afterward. The Bifrost test failed to compile before the converter change. TestCompatibleAssistantToolTurnsKeepContentAndBoundaries/full_reasoning_across_fragments failed on Bifrost 1.15.2 before the reasoning fix and passes afterward.
  • make check passed.
  • Embedded module: go mod tidy -diff, go vet ./... and go test -count=1 ./... passed. go mod tidy -diff and go mod verify passed for both modules.
  • Live subscription and API accounts were not used.

No database schema change, data migration or public documentation update is required.

自查清单 / Checklist

  • 我已运行 make check,或在说明中写明无法运行的原因和未验证范围。 / I ran make check, or documented why it could not run and what remains unverified.
  • 本 PR 范围聚焦,未包含无关改动。 / This PR is focused and contains no unrelated changes.
  • 我已更新必要的公开文档或发布说明。 / I updated any required public documentation or release notes.
  • 我已确认提交、日志和测试数据不包含敏感信息。 / I confirmed that commits, logs, and fixtures contain no sensitive data.
  • 如适用,我已说明兼容性或数据迁移影响。 / Where applicable, I documented compatibility or data-migration impact.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 18, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-18T01:06:15.819178Z 51e1e2c New commits
🔒 Security Review ✅ Completed 2026-11-18T01:09:05.022233Z 51e1e2c New commits
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@tbphp tbphp self-assigned this Nov 18, 2026
@tbphp tbphp added the enhancement New feature or request label Nov 18, 2026
@tbphp tbphp added this to the v2.0.0 milestone Nov 18, 2026
@coderabbitai

coderabbitai Bot commented Nov 18, 2026

Copy link
Copy Markdown

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

本次更新升级了多个依赖和 CPA 客户端版本,更新 Codex 模型目录及相关测试,并调整助手工具调用回合的推理文本收集顺序。

Merge Risk: Minimal · up to f519a

This update upgrades dependencies, client versions and the Codex model catalog, and adjusts how reasoning text is collected for compatible tool-call turns. No concrete defect was found, and the reasoning-collection change preserves existing text. It looks ready to merge after the normal CI checks.

Pre-merge checks: Passed 4

Check name Status Explanation
Title check Passed 标题“chore(deps): upgrade Bifrost core to 1.15.2 and CPA to v8.0.77”与变更主体一致。变更包括 Bifrost core 从 1.14.1 升级到 1.15.2、CPA 从 8.0.60 升级到 8.0.77,并附带 Codex、Claude Code、Grok 等客户端版本和快照更新。标题覆盖主要变更,未涵盖全部细节,这在预期范围内。
Description check Passed 描述包含模板的主要章节:关联 Issue、变更内容(类型勾选)、详细说明、自查清单。描述详细说明了依赖升级原因、replace 指令调整、compatible.go 的推理合并逻辑、客户端版本更新及验证结果。缺口:“关联 Issue”仅写了 Supersedes #974 和 #975,未使用模板要求的 Closes 格式,也未关联本 PR 的 issue 编号;自查清单中“我已更新必要的公开文档…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Description check

Explanation

描述包含模板的主要章节:关联 Issue、变更内容(类型勾选)、详细说明、自查清单。描述详细说明了依赖升级原因、replace 指令调整、compatible.go 的推理合并逻辑、客户端版本更新及验证结果。缺口:“关联 Issue”仅写了 Supersedes #974 和 #975,未使用模板要求的 Closes 格式,也未关联本 PR 的 issue 编号;自查清单中“我已更新必要的公开文档或发布说明”未勾选,描述中说明无需文档更新,但与勾选状态不一致,需作出确认。

Resolution

建议补充:1) 在“关联 Issue”中说明是否存在对应 issue 编号;若无,保留 Supersedes 说明即可。2) 确认自查清单第三项“更新公开文档或发布说明”的状态:若无需更新,保留未勾选并在说明中注明原因(描述已写明无需公开文档更新);若已更新,请勾选。

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

Recent review info

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: QUIET
  • Plan: Advanced
  • Run ID: 6fc14814-9b79-42a6-9b15-d2ae9c0fef37
Commits

Reviewing files that changed from the base of the PR and between ae50d0b and f519abf.

Files ignored due to path filters: 2

  • go.sum is excluded by !**/*.sum
  • third_party/cpaembedded/go.sum is excluded by !**/*.sum
Files selected for processing: 16

  • go.mod
  • internal/catalog/client_model_test.go
  • internal/catalog/codex_client_models.go
  • internal/execution/bifrost/compatible.go
  • internal/execution/bifrost/parameter_overrides_test.go
  • internal/execution/cpa/codex_headers_test.go
  • third_party/cpaembedded/embedded/client_versions.go
  • third_party/cpaembedded/embedded/codex_headers_test.go
  • third_party/cpaembedded/embedded/codex_websocket_test.go
  • third_party/cpaembedded/embedded/embedded_test.go
  • third_party/cpaembedded/go.mod
  • third_party/cpaembedded/modelcatalog/catalog.go
  • third_party/cpaembedded/modelcatalog/catalog_test.go
  • third_party/cpaembedded/modelcatalog/client.go
  • third_party/cpaembedded/modelcatalog/codex.json
  • third_party/cpaembedded/modelcatalog/codex_client_models_0.169.1.json

Included review availability: This review used your included allowance. Your plan provides up to 8 included reviews per hour; 7 remain after this review.

@tbphp
tbphp merged commit 6562e38 into main Nov 18, 2026
12 checks passed
@tbphp
tbphp deleted the tbphp/upgrade-sdks-20261118 branch November 18, 2026 01:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants