fix(codex): 避免终端缩放重复处理历史错误#280
Merged
Merged
Conversation
Codex TUI 在 PTY resize 后会重绘可见历史,已处理的重连或最终错误 可能再次进入输出扫描,导致重复通知、计时状态回退或重复自动继续。 最后一次重连结束后的 stream disconnected 历史行也需要明确落为最终失败。 - 将带历史标记的 stream disconnected 识别为明确最终错误 - 按 PTY 记录已处理错误,只在缩放重绘窗口内屏蔽同一错误 - 用户主动发起新任务时清空旧记录,避免误伤真实同类错误 - 在 PTY 关闭时清理历史,并限制记录容量 - 补充错误分类、缩放窗口和回放去重回归测试 验证: - npm run test(205 个测试文件,1279 项测试) - npm run build:web - npm run i18n:check - npm run i18n:report Signed-off-by: Lulu <58587930+lulu-sk@users.noreply.github.com>
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 TUI 在 PTY resize 后会重绘可见历史,已处理的重连或最终错误
可能再次进入输出扫描,导致重复通知、计时状态回退或重复自动继续。
最后一次重连结束后的 stream disconnected 历史行也需要明确落为最终失败。
验证: