Repository navigation
Conversation
|
No actionable comments were generated in the recent review.
|
| 层 / 文件 | 摘要 |
|---|---|
识别别名并准备兼容模式 packages/host-runtime/src/codex-runtime/native-voice-compatibility.ts, packages/host-runtime/src/native-account-host.ts, packages/host-runtime/package.json, packages/host-runtime/test/native-voice-compatibility.test.ts, docs/architecture/official-traffic-ownership.md, docs/product/codex-accounts.md, packages/host-runtime/scripts/build-release.mjs, tests/release/host-bundle.test.mjs |
新增官方共享历史别名识别和启动参数覆盖。显式路由、端点覆盖及不符合别名条件的配置保留原生路径。新增 smol-toml 依赖及对应测试和文档。 |
预处理请求并处理路由变化 packages/host-runtime/src/codex-runtime/official-runtime-owner.ts, packages/host-runtime/src/codex-runtime/official-runtime-scope.ts, packages/host-runtime/src/codex-runtime/native-voice-compatibility.ts, packages/host-runtime/src/app-server-host.ts, packages/host-runtime/test/native-account-host.test.ts, packages/host-runtime/test/native-voice-compatibility.test.ts, packages/host-runtime/test/official-runtime-owner.test.ts |
OfficialRuntimeOwner 在转发前调用可选预处理器。thread/list 会按规则合并 openai 与 custom 筛选条件;不兼容的项目路由或配置变更会阻止新的工作请求,并返回重启错误。测试覆盖请求转发、路由检查及错误处理。 |
Priority:
Estimated code review effort: 3 (Moderate) | ~25 minutes
Change: Bug fix
Sequence Diagram(s)
sequenceDiagram
participant NativeAccountHost
participant prepareNativeVoiceCompatibility
participant OfficialRuntimeScope
participant OfficialRuntimeOwner
NativeAccountHost->>prepareNativeVoiceCompatibility: prepare arguments and request preparer
prepareNativeVoiceCompatibility-->>NativeAccountHost: compatibility arguments and request preparer
NativeAccountHost->>OfficialRuntimeScope: pass arguments and request preparer
OfficialRuntimeScope->>OfficialRuntimeOwner: configure prepareRequest
OfficialRuntimeOwner->>prepareNativeVoiceCompatibility: prepare request method and params
prepareNativeVoiceCompatibility-->>OfficialRuntimeOwner: adjusted params or restart error
Suggested reviewers: bytepioneer-ai
Merge Risk: 
Minimal · up to d086a
-
No confirmed issue currently blocks merging. The untested audio round trips and other-platform behavior remain validation limits, not established failures.
Pre-merge checks: 
4
Finishing Touches
-
🧪 Generate unit tests (beta)
-
- Create a new PR
-
- Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
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.
Comment @coderabbitai help to get the list of available commands.
CC Switch 开启统一 Codex 会话历史后,会把官方账号配置为
customProvider。Desktop 26.1021.2667.0 按有效 Provider 是否为openai判断官方推理能力,导致听写和实时语音入口消失;登录、额度和语音开关正常时也会发生。本次只识别 CC Switch 的无地址官方历史别名(
name=OpenAI、requires_openai_auth=true、supports_websockets=true、wire_api=responses四个字段),以真正的原生启动参数-c model_provider="openai"运行本地后端。保留原生登录、能力判断和语音协议。openai和custom,旧 Thread 继续走原生 resume。验证:
这是独立的语音兼容修复,与 #589 的编辑 / 发送绑定修复分开提交。