Repository navigation
fix: 修复恢复提示在错误终态中的序号与文本清理 - #1143
Merged
ranxi2001 merged 3 commits intoDec 2, 2026
Merged
Conversation
ranxi2001
marked this pull request as ready for review
December 2, 2026 05:31
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.
解决的问题与行为变化
Historical rea等相似前缀结束,done 释放补 delta 后形成 offset;随后逐行写出的 failed/incomplete/error 终态曾绕过序号调整。incomplete 的完整response.output也绕过展示清理,客户端用终态重建时技术标记重新出现。0f8ca9704152bdd94cafb65c8b34631594c23c9f;真实远端专用 RED/GREEN 已完成,完整 CI 已完成。独立静态审查确认原 F1/F2 修复;其发现的 B-W1(RED 判据误要求不存在的中间测试节点)已在本 head 改为七个真实叶子加两个真实顶层节点,本 head 专用远端复验已完成。HTTP failed 原有安全清理仍先删除 response.output/usage 等字段,本层不恢复它们;完整 failed output 的展示清理另由 writer 回归覆盖。关联记录与来源
管理员新功能提示
完整规则见贡献指南。新增管理员可见功能、菜单、页签或设置项时,必须在同一 PR 完成 ID 登记、标签接入和必要回归,不能留到 Release 发布后补录。
frontend/src/constants/newFeatureNotices.ts登记项(稳定且唯一):不适用,本次为后端 Bug 修复,无管理员新功能。NewFeatureBadge展示位置:不适用,无新增管理员入口或前端改动。复现与验收
ranxi2001/sub2api,baseproduction,起点bad0e63230f011b2447a9d8c8a5aa570a2d4237e;候选0f8ca9704152bdd94cafb65c8b34631594c23c9f。合成 Responses SSE、fake HTTPUpstream、localhost 假供应商及 httptest 客户端,不访问真实供应商。Historical rea;用 done 产生两个补 delta,或让两个 identity 的前缀直接 pending 到终态,也覆盖两者叠加。backend/internal/service/openai_recovery_notice_display_error_test.go中 ActualHTTPErrorSequence、ActualHTTPErrorTerminalOutput、ErrorLineFragments、ActualHTTPErrorWriteBoundaries;backend/internal/handler/openai_recovery_notice_display_test.go中 PendingErrorAttribution,均带TestOpenAIRecoveryDisplay前缀。既有 header/刷新/心跳/真实 WS 与 issue1085 物理交付回归同时被选择。真实外部客户端、外部工具恰好一次、超限/非标准协议的扩展行为及生产验证未覆盖。协议、调度或传输改动补充(相关时填写)
/v1/responses,OpenAI API key HTTP passthrough,stream=true;fixture 模型 gpt-5.1,无模型映射;沿用既有 JSON/native HTTP/WS 展示回归。实际验证
当前头
0f8ca9704152bdd94cafb65c8b34631594c23c9f的 Recovery notice display run46813403712 已完成 SUCCESS。parent 独立下载 artifact15572631083:旧基线bad0e6323与候选使用相同 oracle SHA2566fbe8940d02842a9344f5633189d841b388d135154e291aa267b098495a52059;RED exit1、七个预期行为叶子失败且各有指定 marker,failed sanitizer 控制 PASS;候选 GREEN exit0、113 个测试节点(含顶层及子测试,非113个独立顶层测试)均 PASS,service/handler 两包 PASS,无 skip/fail。完整 CI 已完成,合并另受独立源码、模板、当前 base 与精确头门槛约束。下表动态结果以本段当前头证据更新为准,保留本机/生产未运行边界。git diff --check、git diff --cached --check截图:N/A,无前端/UI/i18n 改动。动态验收清单保持未勾选;测试源码新增不代表通过。
兼容性与运行影响
文档与用户可见变化
已更新
docs/recovery-notice-display.md,说明错误终态逐行处理与 failed 既有安全清理。无前端改动;PR 合并、发版、部署和生产验收均未执行。Agent 使用声明
gpt-6.1-sol,parent 从此 writer 实际 rollout 的turn_context.model核实;Hermesgpt-6.1-sol。ultra,从实际turn_context.effort核实。fast 为 requested,实际 service tier 未返回、未知;Hermes 推理强度未知(运行时未提供)。独立审查补充:Codex 只读 reviewer,模型
gpt-6.1-sol、effortultra,parent 已核实际 turn_context;fast 仅 requested、实际 tier 未返回。参与生产/回归/CI 选择器独立静态审查。原70d5885的生产 F1/F2 静态关闭,但 workflow B-W1 曾阻塞;parent 复核9e8c6907的唯一 workflow delta 已移除两个虚构中间测试节点,保留严格七叶子+两根结果集合、每叶 marker、退出码及全部 GREEN gate。生产与 oracle 字节未变;当前头专用 RED/GREEN 与全部 CI 已完成。提交前自查
格式修复与证据更新(2026-12-02)
当前头
0f8ca9704152bdd94cafb65c8b34631594c23c9f仅追加gofmt字段空白对齐,修复上一头golangci-lint的确定失败;parent 核对忽略空白后零差量、git diff --check通过,普通 push 和远端 ref/head 已读回。本机/生产未运行边界保留,当前头远端门槛以下方最终验收为准。旧头9e8c69070ebb8713af66146aba23fcd6e0a30ea8的专用 Recovery notice display 已成功,原始产物已取得;旧头动态结果不冒充当前头验收,当前头的新 RED/GREEN 与完整 CI 已成功完成。新增格式 commit 仍由原唯一 Codex writergpt-6.1-sol/ultra完成,fast 仅 requested;没有本机测试、发版或部署。最终固定头验收
0f8ca9704152bdd94cafb65c8b34631594c23c9f:84 项全部完成,统计{'success': 72, 'skipped': 12};0 traditional statuses,31 workflow runs / attempt1 jobs 全部完成 success 或条件 skipped。独立源码审查 F1/F2/B-W1 均关闭;新增格式提交仅空白,忽略空白零差量。当前 live productiona1ab4781fc05dc67de6d99c090b33d251cc29136来自 #1142,其3文件差量不触及本PR,read-only merge-tree 无冲突。原始专用 artifact15572631083 / run46813403712 的同oracle RED七行为叶子和候选113测试节点 GREEN 已由 parent 独立读回;只证明隔离合成协议/handler范围,不替代真实供应商、生产或完整外部客户端恢复。未发版或部署。