Skip to content

fix: preserve native viewport coordinates during candidate resize - #89

Merged
JavaZeroo merged 5 commits into
fix/conpty-backend-r47from
diagnose/resize-native-r51
Oct 26, 2026
Merged

JavaZeroo merged 5 commits into
fix/conpty-backend-r47from
diagnose/resize-native-r51

Conversation

@JavaZeroo

@JavaZeroo JavaZeroo commented Oct 26, 2026 •

Copy link
Copy Markdown
Owner

连续 GUI resize 后,原生控制台的完整行是 TF_SIZE_100x28,候选却残留为 TF_SIZE_100x28OW。通用 reflow 拉回历史或移除底行,导致后续 ConPTY 绝对坐标覆盖作用于不同布局。

本变更增加显式 native_viewport 策略,仅由候选 × 显式官方后端窗口选择;增高在底部补空行、增宽不跨历史边界合并,并保留真实空格、历史身份及逻辑续行。默认 reflow_history 路径保持独立。候选补丁身份更新为 termforge.5,新增固定官方后端的六组合成原生快照探针与重放入口。

验证固定产品源码 92eac12d5cd2868b469e8b9a10e68f5e20ee2cb0、官方 ConPTY 1.25.260930003、flags24:

  • 原 .4 GUI stage43 真红、原运输/resize 重放,以及新 API 接旧算法的 Core 真红均保留。
  • 原 resize 两轮、resize-close、Unicode 两轮及原捕获重放通过,保持原精确断言、输入和期限;六组真实 native 行/光标全部匹配,同二进制默认策略对照六组均不匹配。
  • 审查发现的真实空格复制回归已补修前红/修后绿;双策略重复 resize 回归与 Rust 157+2+2+2 单测、1 doc test 通过。
  • 最终完整官方配置 CTest 54/56、411.59 秒,12 项内部 skip;失败为 Vim stage59([R2][Backend] 修复 Console-width Vim stage59 与 native new-buffer 失败 #52)和第二轮恢复 stage1([R2][回归] 定位官方后端第二轮工作区恢复 stage1 超时 #88)。本次 workflow_sessions 通过,但此前两次半行失败仍归 [R2][Workflow] 定位替换会话检查点的编号输出半行失败 #87,不能用这次绿回填原因。
  • Standards/Spec 对实现和最终公开证据均复核通过。30 个合成 capture 文件的 Git 字节与原件哈希一致;原 GUI transport/会话记录保持本地。首轮默认/system 构建 CI 40401307172 成功;独立候选 CI 40401307296 在 Windows/Ubuntu 均被测试中的旧 .4 版本断言阻断,259e036 已同步为精确 .5,本地相同真实 trace 的6方法从仅版本红变为6/6。该补充已双轴定点复核;最终验收 head259e036 的 Build 40402620914 和 Candidate 40402620642 均成功,Windows默认/system51/51、271.66s,实际checkout ccce9e2。默认/system 与独立候选配置不合并计算。

原因、复现与边界 · 固定验证与公开合成原件

Refs #51。目标为实验父分支 fix/conpty-backend-r47;父 PR #50 继续 Draft。#29/#34/#47/#52/#63/#87/#88、完整 R1/R2、实际呈现、性能和 WindTerm 运行时等价均不由本项宣告完成。

Refs #51. Add an explicit policy for the reviewed ConPTY candidate and synthetic native observations. Original resize and Unicode scenarios pass; full integration findings remain under investigation.
Refs #51. Preserve the default resize policy and actual whitespace across repeated resizes; invalidate explicit padding metadata on mutation. Keep original probe failures when evidence writes also fail.
@JavaZeroo
JavaZeroo marked this pull request as ready for review October 26, 2026 21:22
@JavaZeroo
JavaZeroo merged commit 2d69663 into fix/conpty-backend-r47 Oct 26, 2026
8 checks passed
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 26, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-26T21:24:13.044979Z 259e036 Draft marked ready
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

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