fix: 保留 Chat Completions 转换中的 encrypted_content - #1749
Open
wengchengjian wants to merge 1 commit into
Open
Conversation
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.
摘要
encrypted_content内容Payload:agent_message中空input_text+encrypted_content的结构根因
responses_content_to_chat_content只处理:input_textoutput_texttextrefusalinput_imageCodex 多代理消息把真实任务放在
encrypted_content。当 relay 使用 Chat Completions 协议时该字段被丢弃,子代理只收到:改动
crates/codex-plus-core/src/protocol_proxy.rs:转换非空encrypted_content为文本crates/codex-plus-core/tests/encrypted_content_subagent.rs:新增回归测试验证
cargo test -p codex-plus-core --test encrypted_content_subagent:1 通过cargo test -p codex-plus-core --test protocol_proxy:48 通过cargo fmt --all:通过Windows 本地 1.2.44 构建实测:
PROBE-FIX-5C41PROBE-FIX-9F77并正确报告任务名范围
本 PR 只修复 Chat Completions 转换路径。第三方 Responses 直连透传时忽略
encrypted_content的情况不在本次范围。关联:#1706