Skip to content

补齐 Codex 借用的原版 Cookie 与流完成契约 - #280

Merged
HTExplicit merged 1 commit into
mainfrom
codex/borrow-cookie-contract
Oct 10, 2026
Merged

HTExplicit merged 1 commit into
mainfrom
codex/borrow-cookie-contract

Conversation

@HTExplicit

Copy link
Copy Markdown
Owner

补齐 ranxi v2.10.3 / fd1b5ee 非轮换协议对照中的边界差异:来源 Cookie 必须具有明确期限,来源响应须为 SSE;目标返回替换/删除的 __oailb 时立即在响应头阶段拒绝,按原版选择首个可用 __cflb。目标两轮探针恢复读取有界正文到 EOF,并使用原版完成及事件分隔判据;业务和鹈鹕生成继续使用各自的流完成逻辑。

保留活动来源优先级:新备用来源不挤掉仍有效的主来源,刷新失败时仍可保留有效候选,不延长租期。等待者截止时间仍优先,不增加换票重试、续期定时器、普通路径回退或出口切换。

验证:针对性 unit 回归通过,覆盖 Cookie 寿命、响应头拒绝且不读取正文、__cflb 顺序、未完整终止/尾部失败的流、等待 EOF 的超时、来源刷新失败保留候选、取消及既有流式生成边界。新增 validator 直接取自固定版本,并注明 LGPL 来源。修正属于协议移植差异,不能单独证明线上借用或上游完成已经成功;真实验收随最终固定版本部署进行。鹈鹕工作台在独立 PR #279。

@HTExplicit
HTExplicit enabled auto-merge (squash) October 10, 2026 11:23
@HTExplicit
HTExplicit merged commit 0eb9b15 into main Oct 10, 2026
18 checks passed
@HTExplicit
HTExplicit deleted the codex/borrow-cookie-contract branch October 10, 2026 11:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant