Repository navigation
fix(openai): respect response exclusions when reusing WebSockets - #768
Merged
Merged
Conversation
Co-authored-by: Codex <noreply@openai.com>
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
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.
问题与改动
Codex 默认用
x-codex-exclude: tools,usage.attribution省略工具列表和逐项用量,开启experimentalRawEvents时发送tools以保留逐项用量。该头在 WebSocket 握手时发送。同一账号、同一会话切换设置后,CPR 原先会把请求交给按旧设置握手的连接,导致客户端可能收不到所需的逐项用量。官方变更 · Codex 请求头实现连接池现在按最终握手的全部
x-codex-exclude值匹配上游连接,保留缺省、显式空值和重复头。依赖原连接的previous_response_id也遵循同一条件,值相同时继续使用原连接,值变化时返回已有的previous_response_not_found,由客户端重放完整历史。自审与验证
-D warnings)、Rust workspace 格式和git diff --check均通过。AI 使用
OpenAI Codex(
gpt-6.2-astra)参与实现、测试、文档和自审。