Skip to content

feat(core): add owned buffer states and document epoch isolation - #134

Merged
JavaZeroo merged 4 commits into
mainfrom
feat/cpp-buffer-state-r2
Oct 28, 2026
Merged

JavaZeroo merged 4 commits into
mainfrom
feat/cpp-buffer-state-r2

Conversation

@JavaZeroo

Copy link
Copy Markdown
Owner

问题与最终行为

为后续模式 handler 提供自主 C++ 双缓冲存储基础:两个缓冲独立拥有文本、光标、样式、wrap/combining 附件和有界历史;交换激活保留原 Parser::screen 对象及共享单调行 ID,双帧物理 resize 先准备后提交。文档 epoch 使旧位置、选择、搜索和 viewport 在切换返回后失效,新 epoch 下的新读者仍可正常使用。

验证

  • 固定运行源码 63589fa21b68c3029501772b7bb415e66aa99e97,已合入 main 337812bc27b10a8f4dee5e4e35ded21c90f4a151;最终文档提交不改运行源码。
  • Windows 11 x64、VS2022/MSVC 19.42、Release、Python 3.12.10,Qt/candidate adapter 均关闭;完整构建退出 0,完整 CTest 50/50、退出 0。既有 Windows 集成诊断使用系统 ConPTY。
  • 完整 LastTest 另有 12 条内部 skip:4 个可选参考整类、7 个真实系统剪贴板 UI 场景、1 个 opt-in 原版失败注入;不把这些跳过算作相应能力通过。
  • 公开模块测试覆盖状态往返、隔离历史、稳定 ID/version、宽字与软硬行、双帧 resize/隐藏失败回滚、旧读者失效及新 alt/main 读者有效。Standards/Spec 审查无未解决阻断;共享 swap helper 已复审。
  • 固定证据、命令及精选身份分列实际运行红、编译/构建准备失败、最终结果与内部 skip;FEATURES/EVIDENCE 已更新。Hosted checks 为独立运行,以本 PR 检查状态为准。

性能影响(如适用)

未做性能测量。激活使用容器 swap,不复制保留历史;这不是吞吐、延迟、内存或原版性能等价的验收结论。

来源与限制

独立编写 C++ 和合成字面测试;不包含 WindTerm 私有代码、资源、会话或原始提取。本项不接入 private CSI,不决定 1049 样式继承、重复进入清空或历史文档策略;备用存储零历史是工程界限。未验收 Qt/固定 ConPTY 产品组合、完整备用屏、原版一致性、#27 或 R2。

Closes #130

…ders

Add frame activation storage and shared row identities without private CSI wiring. Resize both frames transactionally and bind document handles, selections, searches, and history viewports to a switch epoch. Refs #130.
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 28, 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-28T16:38:55.400826Z 8350945 PR opened
ℹ️ 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.

Copy link
Copy Markdown
Owner Author

审查收敛:Spec 0 项发现;Standards 0 项硬违规,原唯一非阻断字段交换重复已由 e02b02b 统一,根代理复核为等价 swap/noexcept,无新阻断。固定源码63589fa完整本地50/50、12条内部skip与配置边界已公开。最终head8350945的六条独立workflow(PR/push各default、Qt、reference)首次均success;这不把它们相加成一次产品联合验收。仅关闭#130存储/epoch基础,CSI/原版模式由#27继续。

@JavaZeroo
JavaZeroo merged commit 4f34146 into main Oct 28, 2026
10 checks passed
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.

[R2][C++基础] 建立双缓冲状态与文档世代隔离

1 participant